job

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Name      string             `hcl:"name,label"`
	Template  *string            `hcl:"template" hash:"-"`
	Image     *string            `hcl:"image"`
	Shell     *string            `hcl:"shell"`
	Exec      *[]string          `hcl:"exec"`
	Inputs    *[]string          `hcl:"inputs"`
	Input     *string            `hcl:"input"`
	Outputs   *[]string          `hcl:"outputs"`
	Output    *string            `hcl:"output"`
	Env       *map[string]string `hcl:"env"`
	Deps      *[]string          `hcl:"deps"`
	Engine    *string            `hcl:"engine" hash:"-"`
	Condition *string            `hcl:"condition"`
	Error     error              `hash:"-"`
}

func (*Job) Default added in v0.0.2

func (j *Job) Default(def Job)

func (Job) GetEngine

func (j Job) GetEngine() string

func (Job) GetEnv

func (j Job) GetEnv() map[string]string

func (Job) GetImage

func (j Job) GetImage() string

func (Job) GetInputs

func (j Job) GetInputs() []string

func (Job) GetName added in v0.0.2

func (j Job) GetName() string

func (Job) GetOutputs

func (j Job) GetOutputs() []string

func (Job) GetShell

func (j Job) GetShell() []string

func (Job) ID

func (j Job) ID() int64

func (Job) Validate

func (j Job) Validate(engine string) error

Jump to

Keyboard shortcuts

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