Documentation
¶
Index ¶
- func DeletePid(path string) error
- func Exec(container *libcontainer.Container, term Terminal, rootfs, dataPath string, ...) (int, error)
- func GetNamespaceFlags(namespaces map[string]bool) (flag int)
- func Init(container *libcontainer.Container, uncleanRootfs, consolePath string, ...) error
- func InitializeNetworking(container *libcontainer.Container, nspid int, pipe *SyncPipe) error
- func SetupCgroups(container *libcontainer.Container, nspid int) (cgroups.ActiveCgroup, error)
- func WritePid(path string, pid int, startTime string) error
- type CreateCommand
- type StdTerminal
- type SyncPipe
- type Terminal
- type TtyTerminal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeletePid ¶ added in v1.0.0
DeletePid removes the pid and started file from disk when the container's process dies and the container is cleanly removed
func Exec ¶ added in v1.0.0
func Exec(container *libcontainer.Container, term Terminal, rootfs, dataPath string, args []string, createCommand CreateCommand, startCallback func()) (int, error)
func GetNamespaceFlags ¶ added in v1.0.0
func InitializeNetworking ¶ added in v1.0.0
func InitializeNetworking(container *libcontainer.Container, nspid int, pipe *SyncPipe) error
func SetupCgroups ¶ added in v1.0.0
func SetupCgroups(container *libcontainer.Container, nspid int) (cgroups.ActiveCgroup, error)
Types ¶
type CreateCommand ¶
type StdTerminal ¶ added in v1.0.0
type StdTerminal struct {
// contains filtered or unexported fields
}
func (*StdTerminal) Close ¶ added in v1.0.0
func (s *StdTerminal) Close() error
func (*StdTerminal) Resize ¶ added in v1.0.0
func (s *StdTerminal) Resize(h, w int) error
func (*StdTerminal) SetMaster ¶ added in v1.0.0
func (s *StdTerminal) SetMaster(*os.File)
type SyncPipe ¶ added in v1.0.0
type SyncPipe struct {
// contains filtered or unexported fields
}
SyncPipe allows communication to and from the child processes to it's parent and allows the two independent processes to syncronize their state.
func NewSyncPipe ¶ added in v1.0.0
func NewSyncPipeFromFd ¶ added in v1.0.0
func (*SyncPipe) ReadFromParent ¶ added in v1.0.0
func (s *SyncPipe) ReadFromParent() (libcontainer.Context, error)
func (*SyncPipe) SendToChild ¶ added in v1.0.0
func (s *SyncPipe) SendToChild(context libcontainer.Context) error
type Terminal ¶ added in v1.0.0
type TtyTerminal ¶ added in v1.0.0
type TtyTerminal struct {
// contains filtered or unexported fields
}
func (*TtyTerminal) Close ¶ added in v1.0.0
func (t *TtyTerminal) Close() error
func (*TtyTerminal) Resize ¶ added in v1.0.0
func (t *TtyTerminal) Resize(h, w int) error
func (*TtyTerminal) SetMaster ¶ added in v1.0.0
func (t *TtyTerminal) SetMaster(master *os.File)
Click to show internal directories.
Click to hide internal directories.