containerd

package
v0.0.0-0.18.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: BSD-3-Clause Imports: 25 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 {
	Mgmt *types.MgmtNet
	// contains filtered or unexported fields
}

func (*ContainerdRuntime) Config

func (*ContainerdRuntime) CreateContainer

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

func (*ContainerdRuntime) CreateNet

func (c *ContainerdRuntime) CreateNet(ctx 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 (c *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) PullImageIfRequired

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

func (*ContainerdRuntime) StartContainer

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

func (*ContainerdRuntime) StopContainer

func (c *ContainerdRuntime) StopContainer(ctx context.Context, containername 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