Documentation ¶
Overview ¶
Handler for CRI-O containers.
Index ¶
Constants ¶
View Source
const CrioNamespace = "crio"
The namespace under which crio aliases are unique.
View Source
const (
CrioSocket = "/var/run/crio/crio.sock"
)
View Source
const SystemdNamespace = "system-systemd"
The namespace systemd runs components under.
Variables ¶
This section is empty.
Functions ¶
func ContainerNameToCrioId ¶
Returns the CRIO ID from the full container name.
Types ¶
type ContainerInfo ¶
type ContainerInfo struct { Name string `json:"name"` Pid int `json:"pid"` Image string `json:"image"` CreatedTime int64 `json:"created_time"` Labels map[string]string `json:"labels"` Annotations map[string]string `json:"annotations"` LogPath string `json:"log_path"` Root string `json:"root"` IP string `json:"ip_address"` IPs []string `json:"ip_addresses"` }
ContainerInfo represents a given container information
type CrioClient ¶ added in v0.44.1
type CrioClient interface { Info() (Info, error) ContainerInfo(string) (*ContainerInfo, error) }
Click to show internal directories.
Click to hide internal directories.