Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.New("unsupported pipeline")
Functions ¶
func FormatWoodpeckerYAML ¶ added in v0.1.0
FormatWoodpeckerYAML add newlines so that the pipeline YAML is easier to read.
Types ¶
type Conditions ¶ added in v0.1.0
type Conditions struct {
Conditions []string `yaml:"-" json:"-"`
Include []string `yaml:"include,omitempty" json:"include,omitempty"`
Exclude []string `yaml:"exclude,omitempty" json:"exclude,omitempty"`
}
func (*Conditions) IsEmpty ¶ added in v0.1.0
func (c *Conditions) IsEmpty() bool
func (Conditions) MarshalYAML ¶ added in v0.1.0
func (c Conditions) MarshalYAML() (interface{}, error)
type PathConditions ¶ added in v0.1.0
type PathConditions struct {
Conditions []string `yaml:"-" json:"-"`
Include []string `yaml:"include,omitempty" json:"include,omitempty"`
Exclude []string `yaml:"exclude,omitempty" json:"exclude,omitempty"`
IgnoreMessage string `yaml:"ignore_message,omitempty" json:"ignore_message,omitempty"`
}
func (*PathConditions) IsEmpty ¶ added in v0.1.0
func (c *PathConditions) IsEmpty() bool
func (PathConditions) MarshalYAML ¶ added in v0.1.0
func (c PathConditions) MarshalYAML() (interface{}, error)
type Pipeline ¶
type Pipeline struct {
Name string `yaml:"-" json:"-"`
Platform string `yaml:"platform,omitempty" json:"platform,omitempty"`
Labels map[string]string `yaml:"labels,omitempty" json:"labels,omitempty"`
RunsOn []string `yaml:"runs_on,omitempty" json:"runs_on,omitempty"`
DependsOn []string `yaml:"depends_on,omitempty" json:"depends_on,omitempty"`
Services Services `yaml:"services,omitempty" json:"services,omitempty"`
Workspace *Workspace `yaml:"workspace,omitempty" json:"workspace,omitempty"`
SkipClone bool `yaml:"skip_clone,omitempty" json:"skip_clone,omitempty"`
Clone *Clone `yaml:"clone,omitempty" json:"clone,omitempty"`
Steps Steps `yaml:"steps" json:"steps"`
When *When `yaml:"when,omitempty" json:"when,omitempty"`
}
type Service ¶ added in v0.1.0
type Service struct {
Name string `yaml:"-" json:"-"`
Image string `yaml:"image" json:"image"`
Pull bool `yaml:"pull,omitempty" json:"pull,omitempty"`
Environment []string `yaml:"environment,omitempty" json:"environment,omitempty"`
Secrets Secrets `yaml:"secrets,omitempty" json:"secrets,omitempty"`
Commands []string `yaml:"commands,omitempty" json:"commands,omitempty"`
Settings Settings `yaml:"settings,omitempty" json:"settings,omitempty"`
Privileged bool `yaml:"privileged,omitempty" json:"privileged,omitempty"`
Volumes []string `yaml:"volumes,omitempty" json:"volumes,omitempty"`
When *When `yaml:"when,omitempty" json:"when,omitempty"`
}
type Services ¶ added in v0.1.0
type Services []*Service
func (Services) MarshalYAML ¶ added in v0.1.0
type Settings ¶ added in v0.1.0
type Settings []Setting
func (Settings) MarshalYAML ¶ added in v0.1.0
func (*Settings) UnmarshalYAML ¶ added in v0.1.0
type Step ¶
type Step struct {
Name string `yaml:"name"`
Image string `yaml:"image,omitempty" json:"image,omitempty"`
Pull bool `yaml:"pull,omitempty" json:"pull,omitempty"`
Environment []string `yaml:"environment,omitempty" json:"environment,omitempty"`
Secrets Secrets `yaml:"secrets,omitempty" json:"secrets,omitempty"`
Commands []string `yaml:"commands,omitempty" json:"commands,omitempty"`
Settings Settings `yaml:"settings,omitempty" json:"settings,omitempty"`
Detach bool `yaml:"detach,omitempty" json:"detach,omitempty"`
Privileged bool `yaml:"privileged,omitempty" json:"privileged,omitempty"`
Volumes []string `yaml:"volumes,omitempty" json:"volumes,omitempty"`
When *When `yaml:"when,omitempty" json:"when,omitempty"`
}
type Transformer ¶
type When ¶ added in v0.1.0
type When struct {
Repo *Conditions `yaml:"repo,omitempty" json:"repo,omitempty"`
Branch *Conditions `yaml:"branch,omitempty" json:"branch,omitempty"`
Event *Conditions `yaml:"event,omitempty" json:"event,omitempty"`
Ref *Conditions `yaml:"ref,omitempty" json:"ref,omitempty"`
Status []string `yaml:"status,omitempty" json:"status,omitempty"`
Platform core.Strings `yaml:"platform,omitempty" json:"platform,omitempty"`
Environment string `yaml:"environment,omitempty" json:"environment,omitempty"`
Matrix map[string]string `yaml:"matrix,omitempty" json:"matrix,omitempty"`
Instance string `yaml:"instance,omitempty" json:"instance,omitempty"`
Path *PathConditions `yaml:"path,omitempty" json:"path,omitempty"`
Cron *Conditions `yaml:"cron,omitempty" json:"cron,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.