2022-04-21 22:15:40 +08:00
|
|
|
//go:build !linux && !darwin && !freebsd
|
2019-04-26 03:39:49 +08:00
|
|
|
|
|
|
|
package buildah
|
|
|
|
|
|
|
|
import (
|
2022-07-06 17:14:06 +08:00
|
|
|
"errors"
|
|
|
|
|
2022-01-06 04:36:49 +08:00
|
|
|
nettypes "github.com/containers/common/libnetwork/types"
|
|
|
|
"github.com/containers/storage"
|
2019-04-26 03:39:49 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func setChildProcess() error {
|
|
|
|
return errors.New("function not supported on non-linux systems")
|
|
|
|
}
|
|
|
|
|
|
|
|
func runUsingRuntimeMain() {}
|
|
|
|
|
|
|
|
func (b *Builder) Run(command []string, options RunOptions) error {
|
|
|
|
return errors.New("function not supported on non-linux systems")
|
|
|
|
}
|
2024-08-16 00:50:07 +08:00
|
|
|
|
2019-04-26 03:39:49 +08:00
|
|
|
func DefaultNamespaceOptions() (NamespaceOptions, error) {
|
|
|
|
return NamespaceOptions{}, errors.New("function not supported on non-linux systems")
|
|
|
|
}
|
2022-01-06 04:36:49 +08:00
|
|
|
|
|
|
|
// getNetworkInterface creates the network interface
|
|
|
|
func getNetworkInterface(store storage.Store, cniConfDir, cniPluginPath string) (nettypes.ContainerNetwork, error) {
|
|
|
|
return nil, errors.New("function not supported on non-linux systems")
|
|
|
|
}
|