Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateConfig ¶
Types ¶
type BootstrapConfig ¶ added in v0.0.20
type CacheConfig ¶
type CleanupConfig ¶ added in v0.0.23
type Config ¶
type Config struct {
FileName string
Stages []string `yaml:"stages"`
Jobs []JobConfig `yaml:"-"`
GlobalVariables map[string]string `yaml:"variables,omitempty"`
RemoteProvider *RemoteProvider `yaml:"remote_provider,omitempty"`
CLIVariables map[string]string `yaml:"-"`
Bootstrap *BootstrapConfig `yaml:"bootstrap,omitempty"`
Cleanup *CleanupConfig `yaml:"cleanup,omitempty"`
Include []string `yaml:"include,omitempty"`
}
func (*Config) LoadConfig ¶
type ConfigValidator ¶ added in v0.0.23
type ConfigValidator struct {
// contains filtered or unexported fields
}
func NewConfigValidator ¶ added in v0.0.23
func NewConfigValidator(cfg *Config) *ConfigValidator
func (*ConfigValidator) Validate ¶ added in v0.0.23
func (v *ConfigValidator) Validate() error
type ExtendsList ¶ added in v0.1.2
type ExtendsList []string
func (*ExtendsList) UnmarshalYAML ¶ added in v0.1.2
func (e *ExtendsList) UnmarshalYAML(node *yaml.Node) error
type JobBootstrapConfig ¶ added in v0.0.23
type JobCleanupConfig ¶ added in v0.0.23
type JobConfig ¶
type JobConfig struct {
Name string `yaml:"-"`
Image string `yaml:"image"`
Script []string `yaml:"script"`
Stage string `yaml:"stage"`
Workdir string `yaml:"workdir,omitempty"`
Variables map[string]string `yaml:"variables,omitempty"`
Cache *CacheConfig `yaml:"cache,omitempty"`
Network *NetworkConfig `yaml:"network,omitempty"`
JobBootstrap *JobBootstrapConfig `yaml:"job_bootstrap,omitempty"`
JobCleanup *JobCleanupConfig `yaml:"job_cleanup,omitempty"`
Parallel *bool `yaml:"parallel,omitempty"`
Matrix []MatrixEntry `yaml:"matrix,omitempty"`
MatrixGroup string `yaml:"-"`
Extends ExtendsList `yaml:"extends,omitempty"`
}
func ExpandMatrix ¶ added in v0.1.1
ExpandMatrix returns the variants generated by a job's matrix definition. If the job has no matrix, it returns the job unchanged in a single-element slice. Each variant has a unique Name (suffixed with key.value pairs), a fresh Variables map containing the parent's variables plus the matrix values, and a MatrixGroup field set to the original job name.
func (*JobConfig) IsParallel ¶ added in v0.1.2
IsParallel returns true only when the job has explicitly opted into the per-job parallel mode (`parallel: true`). A nil pointer (no `parallel:` key in YAML) or an explicit `parallel: false` both report false.
type MatrixEntry ¶ added in v0.1.1
func (*MatrixEntry) UnmarshalYAML ¶ added in v0.1.1
func (m *MatrixEntry) UnmarshalYAML(node *yaml.Node) error
type NetworkConfig ¶ added in v0.0.8
type RemoteProvider ¶ added in v0.0.17
Click to show internal directories.
Click to hide internal directories.