container

package
v0.0.0-...-1f2438a Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	CgroupPath() (string, error)
}

Container is an interface to abstract container related needed methods

func New

func New(runtime Runtime, socket, id string) (Container, error)

type Runtime

type Runtime string

Runtime represents a container runtime like docker or containerd

const (
	// DockerRuntime is the docker runtime
	DockerRuntime Runtime = "docker"

	// ContainerdRuntime is the containerd runtime
	ContainerdRuntime Runtime = "containerd"
)

Jump to

Keyboard shortcuts

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