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
Click to show internal directories.
Click to hide internal directories.