Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChildDriver ¶
func NewChildDriver() network.ChildDriver
func NewParentDriver ¶
func NewParentDriver(binary string, mtu int, ipnet *net.IPNet, disableHostLoopback bool, apiSocketPath string, enableSandbox, enableSeccomp bool) network.ParentDriver
NewParentDriver instantiates new parent driver. ipnet is supported only for slirp4netns v0.3.0+. ipnet MUST be nil for slirp4netns < v0.3.0.
disableHostLoopback is supported only for slirp4netns v0.3.0+ apiSocketPath is supported only for slirp4netns v0.3.0+ enableSandbox is supported only for slirp4netns v0.4.0+ enableSeccomp is supported only for slirp4netns v0.4.0+
Types ¶
type Features ¶ added in v0.7.0
type Features struct { // SupportsCIDR --cidr (v0.3.0) SupportsCIDR bool // SupportsDisableHostLoopback --disable-host-loopback (v0.3.0) SupportsDisableHostLoopback bool // SupportsAPISocket --api-socket (v0.3.0) SupportsAPISocket bool // SupportsEnableSandbox --enable-sandbox (v0.4.0) SupportsEnableSandbox bool // SupportsEnableSeccomp --enable-seccomp (v0.4.0) SupportsEnableSeccomp bool }
func DetectFeatures ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.