Documentation ¶
Overview ¶
Package cri is used to get running sandboxes from the CRI socket
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIs ¶
type APIs interface {
GetRunningPodSandboxes(log logger.Logger) ([]SandboxInfo, error)
}
APIs is the CRI interface
type Client ¶
type Client struct{}
Client is an empty struct
func (*Client) GetRunningPodSandboxes ¶
func (c *Client) GetRunningPodSandboxes(log logger.Logger) ([]SandboxInfo, error)
GetRunningPodSandboxes get running sandboxIDs
type PodSandboxMetadata ¶ added in v1.11.0
PodSandboxMetadata contains metadata about pod sandboxes.
type SandboxInfo ¶
type SandboxInfo struct { // Pod sandbox's ID. ID string // Pod sandbox's IP addresses IPs []string // Timestamp(in nanoSec) when sandbox was created CreationTimestamp int64 // Pod sandbox's metadata if any. Metadata *PodSandboxMetadata }
SandboxInfo provides container information
Click to show internal directories.
Click to hide internal directories.