container

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrContainerIsNotStarted = errors.New("container is not started")
)

Functions

This section is empty.

Types

type IContainer

type IContainer interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
	RemoveContainer(ctx context.Context) error
	GetContainerID() (string, bool)
	GetContainerName() string
	GetImageUrl() string
	ExportLog(ctx context.Context) error
}

func ProvideContainer

func ProvideContainer(dockerClient *client.Client, imageURL string, imagePullOptions types.ImagePullOptions, config config.WorkerConfigModel) IContainer

Jump to

Keyboard shortcuts

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