types

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuntimeContainerd         Runtime = "containerd"
	DefaultSocketContainerd           = "/run/containerd/containerd.sock"
	DefaultRuncRootContainerd         = "/run/containerd/runc/k8s.io"
	RuntimeDocker             Runtime = "docker"
	DefaultSocketDocker               = "/var/run/docker.sock"
	DefaultRuncRootDocker             = "/run/docker/runtime-runc/moby"
	RuntimeCrio               Runtime = "cri-o"
	DefaultSocketCrio                 = "/var/run/crio/crio.sock"
	DefaultRuncRootCrio               = "/run/runc"
)

Variables

Functions

This section is empty.

Types

type Client

type Client interface {
	List(ctx context.Context) ([]Container, error)
	Stop(ctx context.Context, id string, graceful bool) error
	Pause(ctx context.Context, id string) error
	Unpause(ctx context.Context, id string) error
	Version(ctx context.Context) (string, error)
	GetPid(ctx context.Context, id string) (int, error)
	Close() error
	Runtime() Runtime
	Socket() string
}

type Container

type Container interface {
	Id() string
	Names() []string
	ImageName() string
	Labels() map[string]string
}

type Runtime

type Runtime string

func (Runtime) DefaultRuncRoot

func (runtime Runtime) DefaultRuncRoot() string

func (Runtime) DefaultSocket

func (runtime Runtime) DefaultSocket() string

Jump to

Keyboard shortcuts

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