Documentation ¶
Index ¶
Constants ¶
View Source
const ( JobStateRunning JobState = "running" JobStatePending = "pending" JobStateComplete = "complete" JobStateFailed = "failed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Docker ¶
type Docker struct {
Client DockerClient
}
type DockerClient ¶ added in v1.10.1
type DockerClient interface { ImagePull(ctx context.Context, refStr string, options image.PullOptions) (io.ReadCloser, error) ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *ocispec.Platform, containerName string) (container.CreateResponse, error) ContainerStart(ctx context.Context, containerID string, options container.StartOptions) error ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error) ContainerLogs(ctx context.Context, container string, options container.LogsOptions) (io.ReadCloser, error) ContainerRemove(ctx context.Context, containerID string, options container.RemoveOptions) error }
type Inline ¶
func NewInlineRunner ¶ added in v1.10.1
type Kubernetes ¶
type Kubernetes struct {
Client *kubernetes.Clientset
}
func (Kubernetes) Cleanup ¶
func (k Kubernetes) Cleanup(job *Job) error
Click to show internal directories.
Click to hide internal directories.