Documentation
¶
Index ¶
Constants ¶
View Source
const ( INIT_RESERVED = iota INIT_STARTPOD INIT_GETPOD INIT_STOPPOD INIT_DESTROYPOD INIT_RESTARTCONTAINER INIT_EXECCMD INIT_FINISHCMD INIT_READY INIT_ACK INIT_ERROR INIT_WINSIZE INIT_PING INIT_FINISHPOD INIT_NEXT INIT_WRITEFILE INIT_READFILE INIT_NEWCONTAINER INIT_KILLCONTAINER INIT_ONLINECPUMEM INIT_SETUPINTERFACE )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { Id string `json:"id"` Rootfs string `json:"rootfs"` Fstype string `json:"fstype,omitempty"` Image string `json:"image"` Addr string `json:"addr,omitempty"` Volumes []VolumeDescriptor `json:"volumes,omitempty"` Fsmap []FsmapDescriptor `json:"fsmap,omitempty"` Sysctl map[string]string `json:"sysctl,omitempty"` Process Process `json:"process"` RestartPolicy string `json:"restartPolicy"` Initialize bool `json:"initialize"` }
type EnvironmentVar ¶
type ExecCommand ¶
type FileCommand ¶
type FsmapDescriptor ¶
type KillCommand ¶
type NetworkInf ¶
type Pod ¶
type Pod struct { Hostname string `json:"hostname"` Containers []Container `json:"containers"` Interfaces []NetworkInf `json:"interfaces,omitempty"` Dns []string `json:"dns,omitempty"` Routes []Route `json:"routes,omitempty"` }
type Process ¶
type Process struct { // User, Group, AdditionalGroups specify the user information User string `json:"user,omitempty"` Group string `json:"group,omitempty"` AdditionalGroups []string `json:"additionalGroups,omitempty"` // Terminal creates an interactive terminal for the process. Terminal bool `json:"terminal"` // Sequeue number for stdin and stdout Stdio uint64 `json:"stdio,omitempty"` // sequeue number for stderr if it is not shared with stdout Stderr uint64 `json:"stderr,omitempty"` // Args specifies the binary and arguments for the application to execute. Args []string `json:"args"` // Envs populates the process environment for the process. Envs []EnvironmentVar `json:"envs,omitempty"` // Workdir is the current working directory for the process and must be // relative to the container's root. Workdir string `json:"workdir"` }
type TtyMessage ¶
func (*TtyMessage) ToBuffer ¶
func (tm *TtyMessage) ToBuffer() []byte
Click to show internal directories.
Click to hide internal directories.