containerd

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 30 Imported by: 66

Documentation

Overview

This code has been taken from containerd repo to avoid large library import

Handler for containerd containers.

Index

Constants

This section is empty.

Variables

View Source
var ArgContainerdEndpoint = flag.String("containerd", "/run/containerd/containerd.sock", "containerd endpoint")
View Source
var ArgContainerdNamespace = flag.String("containerd-namespace", "k8s.io", "containerd namespace")

Functions

func Client

func Client(address, namespace string) (containerdClient, error)

Client creates a containerd client

func ContainerNameToContainerdID

func ContainerNameToContainerdID(name string) string

Returns the containerd ID from the full container name.

func NewPlugin added in v0.34.0

func NewPlugin() container.Plugin

NewPlugin returns an implementation of container.Plugin suitable for passing to container.RegisterPlugin()

func Register

func Register(factory info.MachineInfoFactory, fsInfo fs.FsInfo, includedMetrics container.MetricSet) error

Register root container before running this function!

Types

This section is empty.

Directories

Path Synopsis
The install package registers containerd.NewPlugin() as the "containerd" container provider when imported
The install package registers containerd.NewPlugin() as the "containerd" container provider when imported

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL