Documentation
¶
Index ¶
- type DockerRuntime
- func (d *DockerRuntime) Create(ctx context.Context, spec *types.ContainerSpec) (string, error)
- func (d *DockerRuntime) Delete(ctx context.Context, id string) error
- func (d *DockerRuntime) EnsureImage(ctx context.Context, imageName string, pullPolicy string) error
- func (d *DockerRuntime) Exec(ctx context.Context, id string, cmd []string) (string, error)
- func (d *DockerRuntime) Inspect(ctx context.Context, id string) (*containerruntime.RuntimeInspection, error)
- func (d *DockerRuntime) Logs(ctx context.Context, id string, tail int) (string, error)
- func (d *DockerRuntime) Monitor(ctx context.Context, runtimeID string) error
- func (d *DockerRuntime) Name() string
- func (d *DockerRuntime) Pause(ctx context.Context, id string) error
- func (d *DockerRuntime) Resume(ctx context.Context, id string) error
- func (d *DockerRuntime) SetEventHandler(h containerruntime.RuntimeEventHandler)
- func (d *DockerRuntime) Start(ctx context.Context, id string) error
- func (d *DockerRuntime) Stop(ctx context.Context, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerRuntime ¶
type DockerRuntime struct {
// contains filtered or unexported fields
}
func NewDockerRuntime ¶
func NewDockerRuntime() *DockerRuntime
func (*DockerRuntime) Create ¶
func (d *DockerRuntime) Create(ctx context.Context, spec *types.ContainerSpec) (string, error)
func (*DockerRuntime) EnsureImage ¶
func (*DockerRuntime) Inspect ¶
func (d *DockerRuntime) Inspect(ctx context.Context, id string) (*containerruntime.RuntimeInspection, error)
func (*DockerRuntime) Monitor ¶
func (d *DockerRuntime) Monitor(ctx context.Context, runtimeID string) error
func (*DockerRuntime) Name ¶
func (d *DockerRuntime) Name() string
func (*DockerRuntime) SetEventHandler ¶
func (d *DockerRuntime) SetEventHandler(h containerruntime.RuntimeEventHandler)
Click to show internal directories.
Click to hide internal directories.