Documentation ¶
Index ¶
- Constants
- type Pipeline
- func (p *Pipeline) GetDependsOn() []string
- func (p *Pipeline) GetKind() string
- func (p *Pipeline) GetName() string
- func (p *Pipeline) GetPlatform() manifest.Platform
- func (p *Pipeline) GetStep(name string) *Step
- func (p *Pipeline) GetTrigger() manifest.Conditions
- func (p *Pipeline) GetType() string
- func (p *Pipeline) GetVersion() string
- type Step
Constants ¶
View Source
const ( Kind = "pipeline" Type = "virtualbox" )
Defines the Resource Kind and Type.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pipeline ¶
type Pipeline struct { Version string `json:"version,omitempty"` Kind string `json:"kind,omitempty"` Type string `json:"type,omitempty"` Name string `json:"name,omitempty"` Deps []string `json:"depends_on,omitempty"` Clone manifest.Clone `json:"clone,omitempty"` Platform manifest.Platform `json:"platform,omitempty"` Trigger manifest.Conditions `json:"conditions,omitempty"` Workspace manifest.Workspace `json:"workspace,omitempty"` Steps []*Step `json:"steps,omitempty"` }
Pipeline is a pipeline resource that executes pipelines on the host machine without any virtualization.
func (*Pipeline) GetDependsOn ¶
GetDependsOn returns the resource dependencies.
func (*Pipeline) GetPlatform ¶
GetPlatform returns the resource platform.
func (*Pipeline) GetStep ¶
GetStep returns the named step. If no step exists with the given name, a nil value is returned.
func (*Pipeline) GetTrigger ¶
func (p *Pipeline) GetTrigger() manifest.Conditions
GetTrigger returns the resource triggers.
func (*Pipeline) GetVersion ¶
GetVersion returns the resource version.
type Step ¶
type Step struct { Name string `json:"name,omitempty"` Shell string `json:"shell,omitempty"` DependsOn []string `json:"depends_on,omitempty" yaml:"depends_on"` Detach bool `json:"detach,omitempty"` Environment map[string]*manifest.Variable `json:"environment,omitempty"` Failure string `json:"failure,omitempty"` Commands []string `json:"commands,omitempty"` When manifest.Conditions `json:"when,omitempty"` }
Step defines a Pipeline step.
Click to show internal directories.
Click to hide internal directories.