Documentation ¶
Index ¶
- type Job
- func (j *Job) AddDep(dep string)
- func (j *Job) Default(def Job)
- func (j Job) GetDeps() []string
- func (j *Job) GetDone() chan bool
- func (j Job) GetEngine() string
- func (j Job) GetEnv() map[string]string
- func (j Job) GetError() error
- func (j Job) GetImage() string
- func (j Job) GetInputs() []string
- func (j Job) GetName() string
- func (j Job) GetOutputs() []string
- func (j Job) GetShell() []string
- func (j Job) GetWorkdir() string
- func (j *Job) ID() int64
- func (j Job) IsPrivileged() bool
- func (j *Job) IsService() bool
- func (j Job) MarshalJSON() ([]byte, error)
- func (j *Job) SetDetach(detachCh chan bool)
- func (j *Job) SetError(err error)
- func (j *Job) SetStop(stopCh chan bool)
- func (j *Job) ToCty() (cty.Value, error)
- func (j Job) Validate(engine string) error
- type StringSet
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) GetOutputs ¶
func (Job) GetWorkdir ¶ added in v0.3.0
func (Job) IsPrivileged ¶ added in v0.1.0
func (Job) MarshalJSON ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.