builder

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker struct {
	// contains filtered or unexported fields
}

Docker is a docker image builder.

func NewDocker

func NewDocker(logger *slog.Logger, cli *client.Client) *Docker

NewDocker returns new Docker instance.

func (Docker) ContainerCreate added in v0.0.2

func (d Docker) ContainerCreate(ctx context.Context, image string, port int) (string, error)

ContainerCreate creates Docker container.

func (Docker) ContainerInspect added in v0.1.0

func (d Docker) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)

ContainerInspect inspects Docker container.

func (Docker) ContainerStart added in v0.0.2

func (d Docker) ContainerStart(ctx context.Context, imageID string) error

ContainerStart starts Docker container.

func (Docker) ContainerStop added in v0.0.2

func (d Docker) ContainerStop(ctx context.Context, imageID string) error

ContainerStop stops Docker container.

func (Docker) ContainersList added in v0.1.0

func (d Docker) ContainersList(ctx context.Context) ([]types.Container, error)

ContainersList lists all Docker containers.

func (Docker) ImageBuild added in v0.0.2

func (d Docker) ImageBuild(ctx context.Context, dst, name string) (string, error)

ImageBuild builds docker image.

type ErrorDetail

type ErrorDetail struct {
	Message string `json:"message"`
}

type ErrorLine

type ErrorLine struct {
	Error       string      `json:"error"`
	ErrorDetail ErrorDetail `json:"errorDetail"`
}

Jump to

Keyboard shortcuts

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