Documentation ¶
Index ¶
- func WithSysctls(sysctls map[string]string) oci.SpecOpts
- type ContainerdRuntime
- func (c *ContainerdRuntime) Config() runtime.RuntimeConfig
- func (c *ContainerdRuntime) CreateContainer(_ context.Context, _ *types.NodeConfig) (string, error)
- func (*ContainerdRuntime) CreateNet(_ context.Context) error
- func (c *ContainerdRuntime) DeleteContainer(ctx context.Context, containerID string) error
- func (c *ContainerdRuntime) DeleteNet(context.Context) error
- func (c *ContainerdRuntime) Exec(ctx context.Context, containername string, exec *exec.ExecCmd) (*exec.ExecResult, error)
- func (c *ContainerdRuntime) ExecNotWait(ctx context.Context, containername string, exec *exec.ExecCmd) error
- func (c *ContainerdRuntime) GetContainer(ctx context.Context, containerID string) (*runtime.GenericContainer, error)
- func (c *ContainerdRuntime) GetContainerStatus(ctx context.Context, cID string) runtime.ContainerStatus
- func (c *ContainerdRuntime) GetHostsPath(context.Context, string) (string, error)
- func (c *ContainerdRuntime) GetNSPath(ctx context.Context, containername string) (string, error)
- func (*ContainerdRuntime) GetName() string
- func (c *ContainerdRuntime) Init(opts ...runtime.RuntimeOption) error
- func (c *ContainerdRuntime) ListContainers(ctx context.Context, filter []*types.GenericFilter) ([]runtime.GenericContainer, error)
- func (c *ContainerdRuntime) Mgmt() *types.MgmtNet
- func (c *ContainerdRuntime) PauseContainer(ctx context.Context, cID string) error
- func (c *ContainerdRuntime) PullImage(ctx context.Context, imageName string, pullPolicy types.PullPolicyValue) error
- func (c *ContainerdRuntime) StartContainer(ctx context.Context, _ string, node *types.NodeConfig) (interface{}, error)
- func (c *ContainerdRuntime) StopContainer(ctx context.Context, containername string) error
- func (c *ContainerdRuntime) UnpauseContainer(ctx context.Context, cID string) error
- func (c *ContainerdRuntime) WithConfig(cfg *runtime.RuntimeConfig)
- func (c *ContainerdRuntime) WithKeepMgmtNet()
- func (c *ContainerdRuntime) WithMgmtNet(n *types.MgmtNet)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContainerdRuntime ¶
type ContainerdRuntime struct {
// contains filtered or unexported fields
}
func (*ContainerdRuntime) Config ¶
func (c *ContainerdRuntime) Config() runtime.RuntimeConfig
func (*ContainerdRuntime) CreateContainer ¶
func (c *ContainerdRuntime) CreateContainer(_ context.Context, _ *types.NodeConfig) (string, error)
func (*ContainerdRuntime) DeleteContainer ¶
func (c *ContainerdRuntime) DeleteContainer(ctx context.Context, containerID string) error
func (*ContainerdRuntime) Exec ¶
func (c *ContainerdRuntime) Exec(ctx context.Context, containername string, exec *exec.ExecCmd) (*exec.ExecResult, error)
func (*ContainerdRuntime) ExecNotWait ¶
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
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) 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) PullImage ¶ added in v0.36.0
func (c *ContainerdRuntime) PullImage(ctx context.Context, imageName string, pullPolicy types.PullPolicyValue) 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)
Click to show internal directories.
Click to hide internal directories.