docker

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: ISC Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunnerParameters

func NewRunnerParameters() eventline.RunnerParameters

func RunnerDef

func RunnerDef() *eventline.RunnerDef

Types

type Runner

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

func (*Runner) DirPath

func (r *Runner) DirPath() string

func (*Runner) ExecuteStep

func (r *Runner) ExecuteStep(ctx context.Context, se *eventline.StepExecution, step *eventline.Step, stdout, stderr io.WriteCloser) error

func (*Runner) Init

func (r *Runner) Init(ctx context.Context) error

func (*Runner) Terminate

func (r *Runner) Terminate()

type RunnerCfg

type RunnerCfg struct {
	URI               string                `json:"uri,omitempty"`
	CACertificatePath string                `json:"ca_certificate_path,omitempty"`
	CertificatePath   string                `json:"certificate_path,omitempty"`
	PrivateKeyPath    string                `json:"private_key_path,omitempty"`
	MountPoints       []RunnerCfgMountPoint `json:"mount_points,omitempty"`
}

func (*RunnerCfg) ValidateJSON added in v1.1.0

func (cfg *RunnerCfg) ValidateJSON(v *ejson.Validator)

type RunnerCfgMountPoint added in v1.0.0

type RunnerCfgMountPoint struct {
	Source   string `json:"source"`
	Target   string `json:"target"`
	ReadOnly bool   `json:"read_only,omitempty"`
}

func (*RunnerCfgMountPoint) ValidateJSON added in v1.1.0

func (cfg *RunnerCfgMountPoint) ValidateJSON(v *ejson.Validator)

type RunnerParameters

type RunnerParameters struct {
	Image       string  `json:"image"`
	CPULimit    float64 `json:"cpu_limit,omitempty"`
	MemoryLimit int     `json:"memory_limit,omitempty"` // megabytes
}

func (*RunnerParameters) ValidateJSON added in v1.1.0

func (r *RunnerParameters) ValidateJSON(v *ejson.Validator)

Jump to

Keyboard shortcuts

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