containerd

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: BSD-3-Clause Imports: 29 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, exec *exec.ExecCmd) (*exec.ExecResult, error)

func (*ContainerdRuntime) ExecNotWait

func (c *ContainerdRuntime) ExecNotWait(ctx context.Context, containername string, exec *exec.ExecCmd) error

func (*ContainerdRuntime) GetContainer

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

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

func (*ContainerdRuntime) GetContainerStatus added in v0.32.0

func (c *ContainerdRuntime) GetContainerStatus(ctx context.Context, cID string) runtime.ContainerStatus

GetContainerStatus retrieves the ContainerStatus of the named container.

func (*ContainerdRuntime) GetHostsPath added in v0.27.0

func (c *ContainerdRuntime) GetHostsPath(context.Context, string) (string, error)

GetHostsPath returns fs path to a file which is mounted as /etc/hosts into a given container TODO: do we need it here? currently no-op.

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) ([]runtime.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