job

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 7 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     *[]string          `hcl:"exec" json:"exec"`
	Inputs   *[]string          `hcl:"inputs" json:"inputs"`
	Outputs  *[]string          `hcl:"outputs" json:"outputs"`
	Env      *map[string]string `hcl:"env" json:"-"`
	Deps     *[]string          `hcl:"deps" json:"deps"`

	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

Jump to

Keyboard shortcuts

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