Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSAuth ¶ added in v0.3.0
type AWSAuth struct { AccessKey string `yaml:"access-key"` SecretKey string `yaml:"secret-key"` OIDCRole string `yaml:"oidc-role"` }
func (*AWSAuth) GetAuthData ¶ added in v0.3.0
func (a *AWSAuth) GetAuthData(image string) (*ecr.AuthorizationData, error)
type Action ¶
type Action struct { Step *Step `yaml:"step"` Parallel *Parallel `yaml:"parallel"` Stage *Stage `yaml:"stage"` }
func (*Action) IsParallel ¶
type Artifact ¶
func (*Artifact) UnmarshalYAML ¶
type CmdScript ¶
type CmdScript struct {
Cmd string
}
func (*CmdScript) Type ¶
func (c *CmdScript) Type() ScriptType
type Definition ¶
type Image ¶ added in v0.3.0
type Image struct { Name string `yaml:"name"` Username string `yaml:"username"` Password string `yaml:"password"` RunAsUser int `yaml:"run-as-user"` AWS *AWSAuth `yaml:"aws"` }
func (*Image) UnmarshalYAML ¶ added in v0.3.0
type Parallel ¶
func (*Parallel) UnmarshalYAML ¶ added in v0.3.0
type Pipe ¶
type Pipe struct { Name string `yaml:"name"` Pipe string `yaml:"pipe"` Variables map[string]string `yaml:"variables"` }
func (*Pipe) Type ¶
func (p *Pipe) Type() ScriptType
type Plan ¶
type Plan struct { DefaultImage *Image `yaml:"image"` Pipelines *Pipeline `yaml:"pipelines"` Definitions *Definition `yaml:"definitions"` }
func (*Plan) GetPipeline ¶
func (*Plan) GetPipelineNames ¶ added in v0.4.0
type ScriptItem ¶
type ScriptItem interface {
Type() ScriptType
}
type ScriptType ¶
type ScriptType string
const ScriptTypeCmd ScriptType = "cmd"
const ScriptTypePipe ScriptType = "pipe"
type Service ¶ added in v0.3.0
type Service struct { Image *Image `yaml:"image"` Memory int `yaml:"memory"` Variables map[string]string `yaml:"variables"` Type string `yaml:"type"` }
func (*Service) IsDockerService ¶ added in v0.5.0
type Stage ¶ added in v0.6.0
type Stage struct { Name string `yaml:"name"` Actions []*Action `yaml:"steps"` Condition *Condition `yaml:"condition"` Trigger *StepTrigger `yaml:"trigger"` Deployment string `yaml:"deployment"` }
func (*Stage) MatchCondition ¶ added in v0.6.0
type Step ¶
type Step struct { Name string `yaml:"name"` Image *Image `yaml:"image"` Script StepScript `yaml:"script"` AfterScript []string `yaml:"after-script"` Environment map[string]string `yaml:"environment"` MaxTime int `yaml:"max-time"` Size string `yaml:"size"` Deployment string `yaml:"deployment"` Trigger StepTrigger `yaml:"trigger"` Artifacts *Artifact `yaml:"artifacts"` Caches []string `yaml:"caches"` Services []string `yaml:"services"` RunsOn []string `yaml:"runs-on"` Condition *Condition `yaml:"condition"` }
func (*Step) MatchCondition ¶ added in v0.5.0
type StepScript ¶
type StepScript []ScriptItem
func (*StepScript) HasPipe ¶
func (s *StepScript) HasPipe() bool
func (*StepScript) UnmarshalYAML ¶
func (s *StepScript) UnmarshalYAML(value *yaml.Node) error
type StepTrigger ¶
type StepTrigger string
const StepTriggerAutomatic StepTrigger = "automatic"
const StepTriggerManual StepTrigger = "manual"
Click to show internal directories.
Click to hide internal directories.