containerd

package
v0.0.0-...-1262050 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Containerd

type Containerd struct {
	// contains filtered or unexported fields
}

Containerd freezes and unfreezes containers via containerd.

func New

func New() (*Containerd, error)

New return a FreezeThawer based on Containerd. Requires /var/run/containerd/containerd.sock to be mounted.

func (*Containerd) Freeze

func (f *Containerd) Freeze(ctx context.Context, podName, containerName string) error

Freeze freezes the user container via the freezer cgroup.

func (*Containerd) Thaw

func (f *Containerd) Thaw(ctx context.Context, podName, containerName string) error

Thaw thats a container which was freezed via the Freeze method.

Jump to

Keyboard shortcuts

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