summaryrefslogtreecommitdiff
path: root/vendor/src/github.com/docker/libcontainer/namespaces/unsupported.go
blob: a0653ee8ad25b32b99e16df91732e2160be44e62 (plain)
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
// +build !linux

package namespaces

import (
	"github.com/docker/libcontainer"
	"github.com/docker/libcontainer/cgroups"
)

func Exec(container *libcontainer.Container, term Terminal, rootfs, dataPath string, args []string, createCommand CreateCommand, startCallback func()) (int, error) {
	return -1, libcontainer.ErrUnsupported
}

func Init(container *libcontainer.Container, uncleanRootfs, consolePath string, syncPipe *SyncPipe, args []string) error {
	return libcontainer.ErrUnsupported
}

func InitializeNetworking(container *libcontainer.Container, nspid int, pipe *SyncPipe) error {
	return libcontainer.ErrUnsupported
}

func SetupCgroups(container *libcontainer.Container, nspid int) (cgroups.ActiveCgroup, error) {
	return nil, libcontainer.ErrUnsupported
}

func GetNamespaceFlags(namespaces map[string]bool) (flag int) {
	return 0
}