docker

package
v0.0.0-...-0c22c03 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

GitOps: failure-indicator containers for ConfigMap/Secret validation errors (spawn/delete via IndicatorWorkflow).

Index

Constants

View Source
const (
	DockerPullTimeout       = 2 * time.Minute
	DockerHeartbeatInterval = 5 * time.Second
)

Variables

This section is empty.

Functions

func NewContainerLogCollector

func NewContainerLogCollector(ctx context.Context, d *DockerExecutor, containerID, workDir string) (*utils.ConnectorLogCollector, error)

func RecoverWorkerLogs

func RecoverWorkerLogs(ctx context.Context, d *DockerExecutor) error

Types

type ContainerState

type ContainerState struct {
	Exists   bool
	Running  bool
	ExitCode *int
}

type DockerExecutor

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

func NewDockerExecutor

func NewDockerExecutor() (*DockerExecutor, error)

func (*DockerExecutor) Cleanup

func (d *DockerExecutor) Cleanup(ctx context.Context, req *types.ExecutionRequest) error

func (*DockerExecutor) Close

func (d *DockerExecutor) Close() error

func (*DockerExecutor) Execute

func (d *DockerExecutor) Execute(ctx context.Context, req *types.ExecutionRequest, workdir string) (string, error)

func (*DockerExecutor) Indicator

func (d *DockerExecutor) Indicator(ctx context.Context, req *types.IndicatorRequest) error

func (*DockerExecutor) PullImage

func (d *DockerExecutor) PullImage(ctx context.Context, imageName, version string, heartbeatFunc func(context.Context, ...interface{})) error

func (*DockerExecutor) StopContainer

func (d *DockerExecutor) StopContainer(ctx context.Context, workflowID string) error

StopContainer stops a container by name, falling back to kill if needed (for cleanup activity)

Jump to

Keyboard shortcuts

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