Documentation
¶
Index ¶
- type Constraint
- type List
- type Map
- type Path
- type When
- func (when *When) IncludesStatusFailure() bool
- func (when *When) IncludesStatusSuccess() bool
- func (when *When) IsEmpty() bool
- func (when *When) IsLocal() bool
- func (when *When) Match(metadata metadata.Metadata, global bool, env map[string]string) (bool, error)
- func (when *When) UnmarshalYAML(value *yaml.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constraint ¶
type Constraint struct {
Ref List
Repo List
Instance List
Platform List
Branch List
Cron List
Status List
Matrix Map
Local yamlBaseTypes.BoolTrue
Path Path
Evaluate string `yaml:"evaluate,omitempty"`
Event yamlBaseTypes.StringOrSlice
}
type List ¶
List defines a runtime constraint for exclude & include string slices.
type Map ¶
Map defines a runtime constraint for exclude & include map strings.
type Path ¶
type Path struct {
Include []string
Exclude []string
IgnoreMessage string `yaml:"ignore_message,omitempty"`
OnEmpty yamlBaseTypes.BoolTrue `yaml:"on_empty,omitempty"`
}
Path defines a runtime constrain for exclude & include paths.
func (*Path) Excludes ¶
Excludes returns true if all of the strings match any of the exclude patterns.
type When ¶
type When struct {
// If true then read from a list of constraint
Constraints []Constraint
}
When defines a set of runtime constraints.
func (*When) IncludesStatusFailure ¶
func (*When) IncludesStatusSuccess ¶
Click to show internal directories.
Click to hide internal directories.