MCPcopy
hub / github.com/nektos/act / Container

Interface Container

pkg/container/container_types.go:43–58  ·  view source on GitHub ↗

Container for managing docker run containers

Source from the content-addressed store, hash-verified

41
42// Container for managing docker run containers
43type Container interface {
44 Create(capAdd []string, capDrop []string) common.Executor
45 Copy(destPath string, files ...*FileEntry) common.Executor
46 CopyTarStream(ctx context.Context, destPath string, tarStream io.Reader) error
47 CopyDir(destPath string, srcPath string, useGitIgnore bool) common.Executor
48 GetContainerArchive(ctx context.Context, srcPath string) (io.ReadCloser, error)
49 Pull(forcePull bool) common.Executor
50 Start(attach bool) common.Executor
51 Exec(command []string, env map[string]string, user, workdir string) common.Executor
52 UpdateFromEnv(srcPath string, env *map[string]string) common.Executor
53 UpdateFromImageEnv(env *map[string]string) common.Executor
54 Remove() common.Executor
55 Close() common.Executor
56 ReplaceLogWriter(io.Writer, io.Writer) (io.Writer, io.Writer)
57 GetHealth(ctx context.Context) Health
58}
59
60// NewDockerBuildExecutorInput the input for the NewDockerBuildExecutor function
61type NewDockerBuildExecutorInput struct {

Callers 61

runUsesContainerMethod · 0.65
updateTestIfWorkflowFunction · 0.65
startJobContainerMethod · 0.65
execAsDockerFunction · 0.65
WriteMethod · 0.65
CommitMethod · 0.65
waitForCommandMethod · 0.65
attachMethod · 0.65
copyPtyOutputFunction · 0.65
getHashFilesFunctionFunction · 0.65

Implementers 2

containerReferencepkg/container/docker_run.go
HostEnvironmentpkg/container/host_environment.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…