Documentation ¶
Index ¶
- func Normalize(config *Config)
- type AWS
- type Artifacts
- type Cache
- type CacheKey
- type Changesets
- type Clone
- type Condition
- type Config
- type Definitions
- type Depth
- type Image
- type Options
- type Parallel
- type Pipe
- type Pipelines
- type Script
- type Service
- type Size
- type Stage
- type Step
- type Steps
- type Stringorslice
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Artifacts ¶
func (*Artifacts) MarshalYAML ¶
MarshalYAML implements the marshal interface.
func (*Artifacts) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Cache ¶
Cache configures a cache path.
func (*Cache) MarshalYAML ¶
MarshalYAML implements the marshal interface.
func (*Cache) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Changesets ¶
type Changesets struct {
IncludePaths []string `yaml:"includePaths,omitempty"`
}
type Condition ¶
type Condition struct {
Changesets *Changesets `yaml:"changesets,omitempty"`
}
type Config ¶
type Config struct { Clone *Clone `yaml:"clone,omitempty"` Definitions *Definitions `yaml:"definitions,omitempty"` Image *Image `yaml:"image,omitempty"` Options *Options `yaml:"options,omitempty"` Pipelines Pipelines `yaml:"pipelines,omitempty"` }
func ParseBytes ¶
ParseBytes parses the configuration from bytes b.
func ParseString ¶
ParseString parses the configuration from string s.
type Definitions ¶
type Depth ¶
Depth configures the clone depth.
func (*Depth) MarshalYAML ¶
MarshalYAML implements the marshal interface.
func (*Depth) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Image ¶
type Image struct { Name string Username string Password string Email string RunAsUser int AWS *AWS }
Image configures the container image.
func (*Image) MarshalYAML ¶
MarshalYAML implements the marshal interface.
func (*Image) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Script ¶
func (*Script) MarshalYAML ¶
MarshalYAML implements the marshal interface.
func (*Script) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Size ¶
type Size int
List of machine sizes.
func (Size) MarshalYAML ¶
MarshalJSON marshals the enum as a quoted json string
func (*Size) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Step ¶
type Step struct { Artifacts *Artifacts `yaml:"artifacts,omitempty"` Caches []string `yaml:"caches,omitempty"` Clone *Clone `yaml:"clone,omitempty"` Condition *Condition `yaml:"condition,omitempty"` Deployment string `yaml:"deployment,omitempty"` // test, staging, production FailFast bool `yaml:"fail-fast,omitempty"` Image *Image `yaml:"image,omitempty"` MaxTime int `yaml:"max-time,omitempty"` Name string `yaml:"name,omitempty"` Oidc bool `yaml:"oidc,omitempty"` RunsOn Stringorslice `yaml:"runs-on,omitempty"` Script []*Script `yaml:"script"` ScriptAfter []*Script `yaml:"after-script,omitempty"` Services []string `yaml:"services,omitempty"` Size Size `yaml:"size,omitempty"` Trigger string `yaml:"trigger,omitempty"` // automatic, manual }
type Stringorslice ¶
type Stringorslice []string
Stringorslice represents a string or an array of strings.
func (*Stringorslice) UnmarshalYAML ¶
func (s *Stringorslice) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the unmarshal interface.