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

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

func ContainerNameToContainerdID(name string) string

Returns the containerd 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!

Source Files

client.go factory.go grpc.go handler.go

Version
v0.28.5
Published
Jun 21, 2018
Platform
darwin/amd64
Imports
29 packages
Last checked
17 hours ago

Tools for package owners.