package crio
import "github.com/google/cadvisor/container/crio"
Handler for CRI-O containers.
Index ¶
- Constants
- func Client() (crioClient, error)
- func ContainerNameToCrioId(name string) string
- func Register(factory info.MachineInfoFactory, fsInfo fs.FsInfo, ignoreMetrics container.MetricSet) error
- type ContainerInfo
- type Info
Constants ¶
const CrioNamespace = "crio"
The namespace under which crio aliases are unique.
const (
CrioSocket = "/var/run/crio/crio.sock"
)
Functions ¶
func Client ¶
func Client() (crioClient, error)
Client returns a new configured CRI-O client
func ContainerNameToCrioId ¶
Returns the CRIO ID from the full container name.
func Register ¶
func Register(factory info.MachineInfoFactory, fsInfo fs.FsInfo, ignoreMetrics container.MetricSet) error
Register root container before running this function!
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"` }
ContainerInfo represents a given container information
type Info ¶
type Info struct { StorageDriver string `json:"storage_driver"` StorageRoot string `json:"storage_root"` }
Info represents CRI-O information as sent by the CRI-O server
Source Files ¶
client.go factory.go handler.go
- Version
- v0.28.4
- Published
- May 23, 2018
- Platform
- darwin/amd64
- Imports
- 21 packages
- Last checked
- 18 hours ago –
Tools for package owners.