Documentation
¶
Index ¶
- Constants
- type Container
- type DecodedMessage
- type EnvironmentVar
- type ExecCommand
- type FileCommand
- type FsmapDescriptor
- type IpAddress
- type KillCommand
- type NetworkInf
- type Pod
- type Port
- type PortmappingWhiteList
- type Process
- type ProcessAsyncEvent
- type Rlimit
- type Route
- type Routes
- type SignalCommand
- type TtyMessage
- type VolumeDescriptor
- type WindowSizeMessage
Constants ¶
View Source
const ( INIT_VERSION = iota // 0 INIT_STARTPOD INIT_GETPOD_DEPRECATED INIT_STOPPOD_DEPRECATED INIT_DESTROYPOD INIT_RESTARTCONTAINER_DEPRECATED // 5 INIT_EXECCMD INIT_FINISHCMD_DEPRECATED INIT_READY INIT_ACK INIT_ERROR // 10 INIT_WINSIZE INIT_PING INIT_FINISHPOD_DEPRECATED INIT_NEXT INIT_WRITEFILE // 15 INIT_READFILE INIT_NEWCONTAINER INIT_KILLCONTAINER INIT_ONLINECPUMEM INIT_SETUPINTERFACE // 20 INIT_SETUPROUTE INIT_REMOVECONTAINER INIT_PROCESSASYNCEVENT INIT_SIGNALPROCESS )
View Source
const HYPERSTART_EXEC_CONTAINER = "hyperstart"
"hyperstart" is the special container ID for adding processes.
View Source
const HYPER_P9_USE_XEN = "hyper_p9_xen"
View Source
const HYPER_USE_SERIAL = "hyper_use_serial"
View Source
const HYPER_VSOCK_CTL_PORT = 2718
View Source
const HYPER_VSOCK_MSG_PORT = 2719
View Source
const VERSION = 4244
when APIVERSION < 1000000, the version MUST be exactly matched on both sides
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"` ReadOnly bool `json:"readOnly"` Ports []Port `json:"ports,omitempty"` //deprecated }
type EnvironmentVar ¶
type ExecCommand ¶
type FileCommand ¶
type FsmapDescriptor ¶
type KillCommand ¶
type NetworkInf ¶
type Pod ¶
type Pod struct { Hostname string `json:"hostname"` DeprecatedContainers []Container `json:"containers,omitempty"` DeprecatedInterfaces []NetworkInf `json:"interfaces,omitempty"` Dns []string `json:"dns,omitempty"` DnsOptions []string `json:"dnsOptions,omitempty"` DnsSearch []string `json:"dnsSearch,omitempty"` DeprecatedRoutes []Route `json:"routes,omitempty"` PortmappingWhiteLists *PortmappingWhiteList `json:"portmappingWhiteLists,omitempty"` }
type PortmappingWhiteList ¶ added in v0.6.2
type Process ¶
type Process struct { // Process Id Id string `json:"id"` // 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"` // Rlimits specifies rlimit options to apply to the process. Rlimits []Rlimit `json:"rlimits,omitempty"` }
type ProcessAsyncEvent ¶ added in v0.8.0
type Rlimit ¶ added in v0.8.0
type Rlimit struct { // Type of the rlimit to set Type string `json:"type"` // Hard is the hard limit for the specified type Hard uint64 `json:"hard"` // Soft is the soft limit for the specified type Soft uint64 `json:"soft"` }
Rlimit type and restrictions
type SignalCommand ¶ added in v0.8.0
type TtyMessage ¶
func (*TtyMessage) ToBuffer ¶
func (tm *TtyMessage) ToBuffer() []byte
type VolumeDescriptor ¶
Click to show internal directories.
Click to hide internal directories.