mirror of
https://github.com/containers/buildah.git
synced 2025-04-18 07:04:05 +03:00
44 lines
1.3 KiB
Go
44 lines
1.3 KiB
Go
//go:build darwin
|
|
|
|
package buildah
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/containers/buildah/define"
|
|
nettypes "github.com/containers/common/libnetwork/types"
|
|
"github.com/containers/storage"
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
|
)
|
|
|
|
// ContainerDevices is an alias for a slice of github.com/opencontainers/runc/libcontainer/configs.Device structures.
|
|
type ContainerDevices define.ContainerDevices
|
|
|
|
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")
|
|
}
|
|
|
|
func DefaultNamespaceOptions() (NamespaceOptions, error) {
|
|
options := NamespaceOptions{
|
|
{Name: string(specs.CgroupNamespace), Host: false},
|
|
{Name: string(specs.IPCNamespace), Host: false},
|
|
{Name: string(specs.MountNamespace), Host: false},
|
|
{Name: string(specs.NetworkNamespace), Host: false},
|
|
{Name: string(specs.PIDNamespace), Host: false},
|
|
{Name: string(specs.UserNamespace), Host: false},
|
|
{Name: string(specs.UTSNamespace), Host: false},
|
|
}
|
|
return options, nil
|
|
}
|
|
|
|
// getNetworkInterface creates the network interface
|
|
func getNetworkInterface(store storage.Store, cniConfDir, cniPluginPath string) (nettypes.ContainerNetwork, error) {
|
|
return nil, nil
|
|
}
|