runscript

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScratchEnv string = "SCRATCH_DIR=/scratch"
)

Variables

This section is empty.

Functions

func Make

func Make(t *v2alpha2.TaskSpec) (core.Task, error)

Make converts an run spec into a run.

Types

type EnhancedExperiment

type EnhancedExperiment struct {
	*core.Experiment
	// contains filtered or unexported fields
}

EnhancedExperiment supports enhanced interpolation behaviors

func (*EnhancedExperiment) Secret

func (ee *EnhancedExperiment) Secret(key string) (string, error)

Secret returns a value (of type string) for a key. This uses the secret embedded in the enhanced experiment. If the key is absent, an error will be returned. If the value is not a string, an error will be returned.

type Inputs

type Inputs struct {
	Secret *string `json:"secret" yaml:"secret"`
	// contains filtered or unexported fields
}

Inputs for the run task may contain a secret reference

type Task

type Task struct {
	core.TaskMeta `json:",inline" yaml:",inline"`
	With          Inputs `json:"with" yaml:"with"`
}

Task encapsulates a command that can be executed.

func (*Task) Interpolate

func (t *Task) Interpolate(ctx context.Context) error

Interpolate the script.

func (*Task) Run

func (t *Task) Run(ctx context.Context) error

Run the command.

Jump to

Keyboard shortcuts

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