namespaces

package
v1.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CgroupMode added in v1.5.0

type CgroupMode string

CgroupMode represents cgroup mode in the container.

func (CgroupMode) Container added in v1.5.0

func (n CgroupMode) Container() string

Container returns the name of the container whose cgroup namespace is going to be used.

func (CgroupMode) IsContainer added in v1.5.0

func (n CgroupMode) IsContainer() bool

IsContainer indicates whether the container uses a new cgroup namespace.

func (CgroupMode) IsDefaultValue added in v1.7.0

func (n CgroupMode) IsDefaultValue() bool

IsDefaultValue indicates whether the cgroup namespace has the default value.

func (CgroupMode) IsHost added in v1.5.0

func (n CgroupMode) IsHost() bool

IsHost indicates whether the container uses the host's cgroup.

func (CgroupMode) IsNS added in v1.5.0

func (n CgroupMode) IsNS() bool

IsNS indicates a cgroup namespace passed in by path (ns:<path>)

func (CgroupMode) IsPrivate added in v1.5.0

func (n CgroupMode) IsPrivate() bool

IsPrivate indicates whether the container uses the a private cgroup.

func (CgroupMode) NS added in v1.5.0

func (n CgroupMode) NS() string

NS gets the path associated with a ns:<path> cgroup ns

func (CgroupMode) Valid added in v1.5.0

func (n CgroupMode) Valid() bool

Valid indicates whether the Cgroup namespace is valid.

type IpcMode

type IpcMode string

IpcMode represents the container ipc stack.

func (IpcMode) Container

func (n IpcMode) Container() string

Container returns the name of the container ipc stack is going to be used.

func (IpcMode) IsContainer

func (n IpcMode) IsContainer() bool

IsContainer indicates whether the container uses another container's ipc namespace.

func (IpcMode) IsEmpty

func (n IpcMode) IsEmpty() bool

IsEmpty indicates whether container IpcMode is empty

func (IpcMode) IsHost

func (n IpcMode) IsHost() bool

IsHost indicates whether the container shares the host's ipc namespace.

func (IpcMode) IsNone

func (n IpcMode) IsNone() bool

IsNone indicates whether container IpcMode is set to "none".

func (IpcMode) IsPrivate

func (n IpcMode) IsPrivate() bool

IsPrivate indicates whether the container uses its own private ipc namespace which cannot be shared.

func (IpcMode) IsShareable

func (n IpcMode) IsShareable() bool

IsShareable indicates whether the container's ipc namespace can be shared with another container.

func (IpcMode) Valid

func (n IpcMode) Valid() bool

Valid indicates whether the ipc mode is valid.

type NetworkMode

type NetworkMode string

NetworkMode represents the container network stack.

func (NetworkMode) Container added in v0.9.3

func (n NetworkMode) Container() string

Container is the id of the container which network this container is connected to.

func (NetworkMode) IsBridge

func (n NetworkMode) IsBridge() bool

IsBridge indicates whether container uses the bridge network stack

func (NetworkMode) IsContainer

func (n NetworkMode) IsContainer() bool

IsContainer indicates whether container uses a container network stack.

func (NetworkMode) IsDefault

func (n NetworkMode) IsDefault() bool

IsDefault indicates whether container uses the default network stack.

func (NetworkMode) IsHost

func (n NetworkMode) IsHost() bool

IsHost indicates whether the container uses the host's network stack.

func (NetworkMode) IsNS added in v1.2.0

func (n NetworkMode) IsNS() bool

IsNS indicates a network namespace passed in by path (ns:<path>)

func (NetworkMode) IsNone

func (n NetworkMode) IsNone() bool

IsNone indicates whether container isn't using a network stack.

func (NetworkMode) IsPod added in v1.2.0

func (n NetworkMode) IsPod() bool

IsPod returns whether the network refers to pod networking

func (NetworkMode) IsPrivate

func (n NetworkMode) IsPrivate() bool

IsPrivate indicates whether container uses its private network stack.

func (NetworkMode) IsSlirp4netns added in v0.12.1

func (n NetworkMode) IsSlirp4netns() bool

IsSlirp4netns indicates if we are running a rootless network stack

func (NetworkMode) IsUserDefined

func (n NetworkMode) IsUserDefined() bool

IsUserDefined indicates user-created network

func (NetworkMode) NS added in v1.2.0

func (n NetworkMode) NS() string

NS gets the path associated with a ns:<path> network ns

func (NetworkMode) UserDefined

func (n NetworkMode) UserDefined() string

UserDefined indicates user-created network

type PidMode

type PidMode string

PidMode represents the pid namespace of the container.

func (PidMode) Container

func (n PidMode) Container() string

Container returns the name of the container whose pid namespace is going to be used.

func (PidMode) IsContainer

func (n PidMode) IsContainer() bool

IsContainer indicates whether the container uses a container's pid namespace.

func (PidMode) IsHost

func (n PidMode) IsHost() bool

IsHost indicates whether the container uses the host's pid namespace.

func (PidMode) IsPrivate

func (n PidMode) IsPrivate() bool

IsPrivate indicates whether the container uses its own new pid namespace.

func (PidMode) Valid

func (n PidMode) Valid() bool

Valid indicates whether the pid namespace is valid.

type UTSMode

type UTSMode string

UTSMode represents the UTS namespace of the container.

func (UTSMode) Container

func (n UTSMode) Container() string

Container returns the name of the container whose uts namespace is going to be used.

func (UTSMode) IsContainer

func (n UTSMode) IsContainer() bool

IsContainer indicates whether the container uses a container's UTS namespace.

func (UTSMode) IsHost

func (n UTSMode) IsHost() bool

IsHost indicates whether the container uses the host's UTS namespace.

func (UTSMode) IsPrivate

func (n UTSMode) IsPrivate() bool

IsPrivate indicates whether the container uses its private UTS namespace.

func (UTSMode) Valid

func (n UTSMode) Valid() bool

Valid indicates whether the UTS namespace is valid.

type UsernsMode

type UsernsMode string

UsernsMode represents userns mode in the container.

func (UsernsMode) Container added in v0.9.3

func (n UsernsMode) Container() string

Container is the id of the container which network this container is connected to.

func (UsernsMode) GetAutoOptions added in v1.9.0

func (n UsernsMode) GetAutoOptions() (*storage.AutoUserNsOptions, error)

GetAutoOptions returns a AutoUserNsOptions with the settings to setup automatically a user namespace.

func (UsernsMode) IsAuto added in v1.9.0

func (n UsernsMode) IsAuto() bool

IsAuto indicates whether container uses the "auto" userns mode.

func (UsernsMode) IsContainer added in v0.9.3

func (n UsernsMode) IsContainer() bool

IsContainer indicates whether container uses a container userns.

func (UsernsMode) IsHost

func (n UsernsMode) IsHost() bool

IsHost indicates whether the container uses the host's userns.

func (UsernsMode) IsKeepID added in v1.4.0

func (n UsernsMode) IsKeepID() bool

IsKeepID indicates whether container uses a mapping where the (uid, gid) on the host is lept inside of the namespace.

func (UsernsMode) IsNS added in v1.5.0

func (n UsernsMode) IsNS() bool

IsNS indicates a userns namespace passed in by path (ns:<path>)

func (UsernsMode) IsPrivate

func (n UsernsMode) IsPrivate() bool

IsPrivate indicates whether the container uses the a private userns.

func (UsernsMode) NS added in v1.5.0

func (n UsernsMode) NS() string

NS gets the path associated with a ns:<path> userns ns

func (UsernsMode) Valid

func (n UsernsMode) Valid() bool

Valid indicates whether the userns is valid.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL