runner

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ARTIFACTS_DIR = ".artifacts"
	WORKING_DIR   = "/app"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerRunner

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

func NewDockerRunner

func NewDockerRunner(name string, artifactManager artifacts.ArtifactManager, dockerOptions DockerRunnerOptions) *DockerRunner

func (*DockerRunner) CreatesArtifacts

func (d *DockerRunner) CreatesArtifacts(artifacts []string) *DockerRunner

func (*DockerRunner) Run

func (d *DockerRunner) Run(ctx context.Context) error

func (*DockerRunner) WithCmd

func (d *DockerRunner) WithCmd(cmd []string) *DockerRunner

func (*DockerRunner) WithCredentials

func (d *DockerRunner) WithCredentials(username, password string) *DockerRunner

func (*DockerRunner) WithEntrypoint

func (d *DockerRunner) WithEntrypoint(entrypoint []string) *DockerRunner

func (*DockerRunner) WithEnv

func (d *DockerRunner) WithEnv(env []models.Variable) *DockerRunner

func (*DockerRunner) WithImage

func (d *DockerRunner) WithImage(image string) *DockerRunner

func (*DockerRunner) WithSrc

func (d *DockerRunner) WithSrc(src string) *DockerRunner

type DockerRunnerOptions

type DockerRunnerOptions struct {
	ShowImagePull     bool
	Stdout            io.Writer
	Stderr            io.Writer
	MountDockerSocket bool
}

Jump to

Keyboard shortcuts

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