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, cmd []string) ([]byte, []byte, error)
- func (c *ContainerdRuntime) ExecNotWait(ctx context.Context, containername string, cmd []string) error
- func (c *ContainerdRuntime) GetContainer(ctx context.Context, containerID string) (*types.GenericContainer, 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) ([]types.GenericContainer, error)
- func (c *ContainerdRuntime) Mgmt() *types.MgmtNet
- func (c *ContainerdRuntime) PauseContainer(ctx context.Context, cID string) error
- func (c *ContainerdRuntime) PullImageIfRequired(ctx context.Context, imagename string) 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) ExecNotWait ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.