Documentation
¶
Index ¶
- func GetCtrInspectInfo(ctr *libpod.Container, ctrInspectData *inspect.ContainerInspectData) (*inspect.ContainerData, error)
- func GetNamespaceOptions(ns []string) ([]libpod.PodCreateOption, error)
- func GetPodStatus(pod *libpod.Pod) (string, error)
- type BatchContainerStruct
- type ContainerSize
- type Namespace
- type PsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCtrInspectInfo ¶
func GetCtrInspectInfo(ctr *libpod.Container, ctrInspectData *inspect.ContainerInspectData) (*inspect.ContainerData, error)
GetCtrInspectInfo takes container inspect data and collects all its info into a ContainerData structure for inspection related methods
func GetNamespaceOptions ¶ added in v0.8.4
func GetNamespaceOptions(ns []string) ([]libpod.PodCreateOption, error)
GetNamespaceOptions transforms a slice of kernel namespaces into a slice of pod create options. Currently, not all kernel namespaces are supported, and they will be returned in an error
Types ¶
type BatchContainerStruct ¶
type BatchContainerStruct struct { ConConfig *libpod.ContainerConfig ConState libpod.ContainerStatus ExitCode int32 Exited bool Pid int StartedTime time.Time ExitedTime time.Time Size *ContainerSize }
BatchContainerStruct is the return obkect from BatchContainer and contains container related information
func BatchContainerOp ¶
func BatchContainerOp(ctr *libpod.Container, opts PsOptions) (BatchContainerStruct, error)
BatchContainer is used in ps to reduce performance hits by "batching" locks.
type ContainerSize ¶
ContainerSize holds the size of the container's root filesystem and top read-write layer
type Namespace ¶
type Namespace struct { PID string `json:"pid,omitempty"` Cgroup string `json:"cgroup,omitempty"` IPC string `json:"ipc,omitempty"` MNT string `json:"mnt,omitempty"` NET string `json:"net,omitempty"` PIDNS string `json:"pidns,omitempty"` User string `json:"user,omitempty"` UTS string `json:"uts,omitempty"` }
Namespace describes output for ps namespace
func GetNamespaces ¶
GetNamespaces returns a populated namespace struct