containerd

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSysctls

func WithSysctls(sysctls map[string]string) oci.SpecOpts

Types

type ContainerdRuntime

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

func (*ContainerdRuntime) Config

func (*ContainerdRuntime) CreateContainer

func (c *ContainerdRuntime) CreateContainer(_ context.Context, _ *types.NodeConfig) (string, error)

func (*ContainerdRuntime) CreateNet

func (*ContainerdRuntime) CreateNet(_ context.Context) error

func (*ContainerdRuntime) DeleteContainer

func (c *ContainerdRuntime) DeleteContainer(ctx context.Context, containerID string) error

func (*ContainerdRuntime) DeleteNet

func (c *ContainerdRuntime) DeleteNet(context.Context) error

func (*ContainerdRuntime) Exec

func (c *ContainerdRuntime) Exec(ctx context.Context, containername string, cmd []string) ([]byte, []byte, error)

func (*ContainerdRuntime) ExecNotWait

func (c *ContainerdRuntime) ExecNotWait(ctx context.Context, containername string, cmd []string) error

func (*ContainerdRuntime) GetContainer

func (c *ContainerdRuntime) GetContainer(ctx context.Context, containerID string) (*types.GenericContainer, error)

TODO this will probably not work. need to work out the exact filter format

func (*ContainerdRuntime) GetNSPath

func (c *ContainerdRuntime) GetNSPath(ctx context.Context, containername string) (string, error)

func (*ContainerdRuntime) GetName

func (*ContainerdRuntime) GetName() string

func (*ContainerdRuntime) Init

func (c *ContainerdRuntime) Init(opts ...runtime.RuntimeOption) error

func (*ContainerdRuntime) ListContainers

func (c *ContainerdRuntime) ListContainers(ctx context.Context, filter []*types.GenericFilter) ([]types.GenericContainer, error)

func (*ContainerdRuntime) Mgmt

func (c *ContainerdRuntime) Mgmt() *types.MgmtNet

func (*ContainerdRuntime) PauseContainer added in v0.26.0

func (c *ContainerdRuntime) PauseContainer(ctx context.Context, cID string) error

func (*ContainerdRuntime) PullImageIfRequired

func (c *ContainerdRuntime) PullImageIfRequired(ctx context.Context, imagename string) error

func (*ContainerdRuntime) StartContainer

func (c *ContainerdRuntime) StartContainer(ctx context.Context, _ string, node *types.NodeConfig) (interface{}, error)

func (*ContainerdRuntime) StopContainer

func (c *ContainerdRuntime) StopContainer(ctx context.Context, containername string) error

func (*ContainerdRuntime) UnpauseContainer added in v0.26.0

func (c *ContainerdRuntime) UnpauseContainer(ctx context.Context, cID string) error

func (*ContainerdRuntime) WithConfig

func (c *ContainerdRuntime) WithConfig(cfg *runtime.RuntimeConfig)

func (*ContainerdRuntime) WithKeepMgmtNet

func (c *ContainerdRuntime) WithKeepMgmtNet()

func (*ContainerdRuntime) WithMgmtNet

func (c *ContainerdRuntime) WithMgmtNet(n *types.MgmtNet)

Jump to

Keyboard shortcuts

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