forked from containers/buildah
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_unsupported.go
29 lines (22 loc) · 865 Bytes
/
run_unsupported.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//go:build !linux && !darwin && !freebsd
// +build !linux,!darwin,!freebsd
package buildah
import (
"errors"
nettypes "github.com/containers/common/libnetwork/types"
"github.com/containers/storage"
)
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) {
return NamespaceOptions{}, errors.New("function not supported on non-linux systems")
}
// 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")
}