job

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 8 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" json:"name"`
	Template     *string            `hcl:"template" hash:"-" json:"-"`
	Image        *string            `hcl:"image" json:"image"`
	Shell        *string            `hcl:"shell" json:"shell"`
	Exec         *StringSet         `hcl:"exec" json:"exec" hash:"method:Strings"`
	Inputs       *StringSet         `hcl:"inputs" json:"inputs" hash:"method:Strings"`
	Outputs      *StringSet         `hcl:"outputs" json:"outputs" hash:"method:Strings"`
	Env          *map[string]string `hcl:"env" json:"-"`
	Deps         *StringSet         `hcl:"deps" json:"deps" hash:"method:Strings"`
	Engine       *string            `hcl:"engine" json:"engine" hash:"-"`
	Condition    *string            `hcl:"condition" json:"condition"`
	Privileged   *bool              `hcl:"privileged" json:"privileged"`
	Workdir      *string            `hcl:"workdir" json:"workdir"`
	Service      *bool              `hcl:"service" json:"service" hash:"-"`
	Cached       bool               `hash:"-" json:"cached"`
	Hash         string             `hash:"-" json:"hash"`
	OutputHashes map[string]string  `hash:"-" json:"outputHashes"`
	Detach       chan bool          `hash:"-" json:"-"`
	Stop         chan bool          `hash:"-" json:"-"`
	Error        error              `hash:"-" json:"error"`
	// contains filtered or unexported fields
}

func (*Job) AddDep added in v0.3.0

func (j *Job) AddDep(dep string)

func (*Job) Default added in v0.0.2

func (j *Job) Default(def Job)

func (Job) GetDeps added in v0.3.0

func (j Job) GetDeps() []string

func (*Job) GetDone added in v0.3.0

func (j *Job) GetDone() chan bool

func (Job) GetEngine

func (j Job) GetEngine() string

func (Job) GetEnv

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

func (Job) GetError added in v0.3.0

func (j Job) GetError() error

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) GetWorkdir added in v0.3.0

func (j Job) GetWorkdir() string

func (*Job) ID

func (j *Job) ID() int64

func (Job) IsPrivileged added in v0.1.0

func (j Job) IsPrivileged() bool

func (*Job) IsService added in v0.3.0

func (j *Job) IsService() bool

func (Job) MarshalJSON added in v0.2.0

func (j Job) MarshalJSON() ([]byte, error)

func (*Job) SetDetach added in v0.3.0

func (j *Job) SetDetach(detachCh chan bool)

func (*Job) SetError added in v0.3.0

func (j *Job) SetError(err error)

func (*Job) SetStop added in v0.3.0

func (j *Job) SetStop(stopCh chan bool)

func (*Job) ToCty added in v0.3.0

func (j *Job) ToCty() (cty.Value, error)

func (Job) Validate

func (j Job) Validate(engine string) error

type StringSet added in v0.5.0

type StringSet []string

func (StringSet) Strings added in v0.5.0

func (s StringSet) Strings() []string

Jump to

Keyboard shortcuts

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