Documentation
¶
Index ¶
- func Map(m map[string]interface{}) (map[string]interface{}, error)
- func MatchingReleases(allReleases []interface{}, since interface{}, until interface{}) []interface{}
- func ReleaseMatches(rel interface{}, since interface{}, until interface{}) bool
- type Config
- type ConfigSet
- type FromTo
- type InheritedConfigs
- type Job
- type RenderConfig
- type Repo
- type TemplateConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchingReleases ¶
func MatchingReleases(allReleases []interface{}, since interface{}, until interface{}) []interface{}
MatchingReleases filters releases list against since and until releases
func ReleaseMatches ¶
func ReleaseMatches(rel interface{}, since interface{}, until interface{}) bool
ReleaseMatches checks if the release falls between since and until releases
Types ¶
type Config ¶
type Config struct {
Templates []*TemplateConfig
Global map[string]interface{}
GlobalSets map[string]ConfigSet `yaml:"globalSets,omitempty"`
}
Config represents configuration of all templates to render along with global values
type ConfigSet ¶
type ConfigSet map[string]interface{}
ConfigSet hold set of data for generating prowjob from template
type InheritedConfigs ¶
type InheritedConfigs struct {
Global []string `yaml:"global,omitempty"`
Local []string `yaml:"local,omitempty"`
PreConfigs []string `yaml:"preConfigs,omitempty"`
PostConfigs []string `yaml:"postConfigs,omitempty"`
}
InheritedConfigs specify named configs to use for generating prowjob from template
type Job ¶
type Job struct {
InheritedConfigs InheritedConfigs `yaml:"inheritedConfigs,omitempty"`
JobConfig ConfigSet `yaml:"jobConfig,omitempty"`
// contains filtered or unexported fields
}
Job holds data for generating prowjob from template
type RenderConfig ¶
type RenderConfig struct {
To string
Values map[string]interface{}
LocalSets map[string]ConfigSet `yaml:"localSets,omitempty"`
JobConfigs []Repo `yaml:"jobConfigs,omitempty"`
}
RenderConfig specifies where to render template and values to use
func (*RenderConfig) GenerateComponentJobs ¶
func (r *RenderConfig) GenerateComponentJobs(global map[string]interface{})
GenerateComponentJobs generates jobs for components
type TemplateConfig ¶
type TemplateConfig struct {
FromTo []FromTo `yaml:"fromTo,omitempty"`
From string
Render []*RenderConfig
}
TemplateConfig specifies template to use and files to render
Click to show internal directories.
Click to hide internal directories.