docker

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package docker - docker impl package for runtime

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(runtimeURL string) runtime.Runtime

New constructs a Docker-based runtime.

Types

type Runtime

type Runtime struct {
	RuntimeURL string
}

Runtime - docker impl runtime

func (*Runtime) Create

func (d *Runtime) Create(
	ctx context.Context,
	spec domain.ContainerSpec,
) (domain.ContainerID, error)

Create - docker impl

func (*Runtime) EnsureImage

func (d *Runtime) EnsureImage(
	ctx context.Context,
	ref domain.ImageRef,
) error

EnsureImage - docker impl

func (*Runtime) Exec

func (d *Runtime) Exec(
	id domain.ContainerID,
) (runtime.Execution, error)

Exec - docker impl

func (*Runtime) ListImage

func (d *Runtime) ListImage(
	ctx context.Context,
) ([]domain.ImageInfo, error)

ListImage - docker impl

func (*Runtime) Remove

func (d *Runtime) Remove(
	ctx context.Context,
	id domain.ContainerID,
) error

Remove - docker impl

func (*Runtime) RemoveImage

func (d *Runtime) RemoveImage(
	ctx context.Context,
	ref domain.ImageRef,
) error

RemoveImage - docker impl

func (*Runtime) Start

func (d *Runtime) Start(
	ctx context.Context,
	id domain.ContainerID,
) error

Start - docker impl

func (*Runtime) Stop

func (d *Runtime) Stop(
	ctx context.Context,
	id domain.ContainerID,
) error

Stop - docker impl

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL