Documentation ¶
Index ¶
- Constants
- func GetBridgeFromIndex(idx int) (string, error)
- type Container
- type Event
- type HyperPod
- type InterfaceInfo
- type NetlinkUpdate
- type NetlinkUpdateType
- type Process
- type Supervisor
- func (sv *Supervisor) AddProcess(container, processId, stdin, stdout, stderr string, spec *specs.Process) (*Process, error)
- func (sv *Supervisor) CloseStdin(container, processId string) error
- func (sv *Supervisor) CreateContainer(container, bundlePath, stdin, stdout, stderr string, spec *specs.Spec) (*Container, *Process, error)
- func (sv *Supervisor) Signal(container, processId string, sig int) error
- func (sv *Supervisor) TtyResize(container, processId string, width, height int) error
- type SvEvents
Constants ¶
View Source
const ( EventExit = "exit" EventContainerStart = "start-container" EventProcessStart = "start-process" )
Variables ¶
This section is empty.
Functions ¶
func GetBridgeFromIndex ¶
Types ¶
type InterfaceInfo ¶
type NetlinkUpdate ¶ added in v0.6.2
type NetlinkUpdate struct { // AddrUpdate is used to pass information back from AddrSubscribe() Addr netlink.AddrUpdate // RouteUpdate is used to pass information back from RouteSubscribe() Route netlink.RouteUpdate // Veth is used to pass information back from LinkSubscribe(). // We only support veth link at present. Veth *netlink.Veth // UpdateType indicates which part of the netlink information has been changed. UpdateType NetlinkUpdateType }
NetlinkUpdate tracks the change of network namespace.
type NetlinkUpdateType ¶ added in v0.6.2
type NetlinkUpdateType string
const ( UpdateTypeLink NetlinkUpdateType = "link" UpdateTypeAddr NetlinkUpdateType = "addr" UpdateTypeRoute NetlinkUpdateType = "route" )
type Supervisor ¶
type Supervisor struct { StateDir string Factory factory.Factory Events SvEvents sync.RWMutex // Protects Supervisor.Containers, HyperPod.Containers, HyperPod.Processes, Container.Processes Containers map[string]*Container // contains filtered or unexported fields }
func (*Supervisor) AddProcess ¶
func (sv *Supervisor) AddProcess(container, processId, stdin, stdout, stderr string, spec *specs.Process) (*Process, error)
func (*Supervisor) CloseStdin ¶
func (sv *Supervisor) CloseStdin(container, processId string) error
func (*Supervisor) CreateContainer ¶
func (sv *Supervisor) CreateContainer(container, bundlePath, stdin, stdout, stderr string, spec *specs.Spec) (*Container, *Process, error)
Click to show internal directories.
Click to hide internal directories.