Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerConfig ¶
type ContainerConfig struct {
Name string `json:"name" yaml:"name"`
Image string `json:"image" yaml:"image"`
Args []string `json:"args,omitempty" yaml:"args,omitempty"`
Entrypoint []string `json:"entrypoint,omitempty" yaml:"entrypoint,omitempty"`
Ports []PortMap `json:"ports,omitempty" yaml:"ports,omitempty"`
Mounts []Mount `json:"mounts,omitempty" yaml:"mounts,omitempty"`
Privileged bool `json:"privileged,omitempty" yaml:"privileged,omitempty"`
NetworkMode string `json:"networkMode,omitempty" yaml:"networkMode,omitempty"`
PidMode string `json:"pidMode,omitempty" yaml:"pidMode,omitempty"`
IpcMode string `json:"ipcMode,omitempty" yaml:"ipcMode,omitempty"`
}
ContainerConfig stores runtime-agnostic information how to run the container
type ContainerStatus ¶
type ContainerStatus struct {
Image string `json:"image" yaml:"image"`
ID string `json:"id" yaml:"id"`
Name string `json:"name" yaml:"name"`
Status string `json:"status" yaml:"status"`
}
ContainerStatus stores status information received from the runtime TODO this should cover all fields which are defined in ContainerConfig, so we can read and compare if actual configuration matches our expectations.
type File ¶
type File struct {
Path string `json:"path" yaml:"path"`
Content string `json:"content" yaml:"content"`
Mode int64 `json:"mode" yaml:"mode"`
}
File describes file, which can be either copied to or from container.
type Mount ¶
type Mount struct {
Source string `json:"source" yaml:"source"`
Target string `json:"target" yaml:"target"`
Propagation string `json:"propagation,omitempty" yaml:"propagation,omitempty"`
}
Mount describe host bind mount TODO Same as PortMap
type PortMap ¶
type PortMap struct {
IP string `json:"ip" yaml:"ip"`
Port int `json:"port" yaml:"port"`
Protocol string `json:"protocol" yaml:"protocol"`
}
PortMap is basically a github.com/docker/go-connections/nat.PortMap TODO Once we introduce Kubelet runtime, we need to figure out how to structure it
Click to show internal directories.
Click to hide internal directories.