docker

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: ISC Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdentityAuthenticationKey

func IdentityAuthenticationKey(identity *eventline.Identity) (key string, err error)

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"`
}

func (*RunnerCfg) Check

func (cfg *RunnerCfg) Check(c *check.Checker)

type RunnerParameters

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

func (*RunnerParameters) Check

func (r *RunnerParameters) Check(c *check.Checker)

Jump to

Keyboard shortcuts

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