package containerd
import "github.com/google/cadvisor/container/containerd"
This code has been taken from containerd repo to avoid large library import
Handler for containerd containers.
Index ¶
- Variables
- func Client() (containerdClient, error)
- func ContainerNameToContainerdID(name string) string
- func Register(factory info.MachineInfoFactory, fsInfo fs.FsInfo, includedMetrics container.MetricSet) error
Variables ¶
var ArgContainerdEndpoint = flag.String("containerd", "unix:///var/run/containerd.sock", "containerd endpoint")
Functions ¶
func Client ¶
func Client() (containerdClient, error)
Client creates a containerd client
func ContainerNameToContainerdID ¶
Returns the containerd ID from the full container name.
func Register ¶
func Register(factory info.MachineInfoFactory, fsInfo fs.FsInfo, includedMetrics container.MetricSet) error
Register root container before running this function!
Source Files ¶
client.go factory.go grpc.go handler.go
- Version
- v0.32.0
- Published
- Nov 12, 2018
- Platform
- darwin/amd64
- Imports
- 30 packages
- Last checked
- 17 hours ago –
Tools for package owners.