Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrConfigFileTypeNotSupported is returned when updatecli try to read // an unsupported file type. ErrConfigFileTypeNotSupported = errors.New("file extension not supported") // ErrBadConfig is returned when updatecli try to read // a wrong configuration. ErrBadConfig = errors.New("wrong updatecli configuration") // ErrNoEnvironmentVariableSet is returned when during the templating process, // it tries to access en environment variable not set. ErrNoEnvironmentVariableSet = errors.New("environment variable doesn't exist") // ErrNoKeyDefined is returned when during the templating process, it tries to // retrieve a key value which is not defined in the configuration ErrNoKeyDefined = errors.New("key not defined in configuration") // ErrNotAllowedTemplatedKey is returned when // we are planning to template at runtime unauthorized keys such map key ErrNotAllowedTemplatedKey = errors.New("not allowed templated key") )
Functions ¶
func IsTemplatedString ¶
IsTemplatedString test if a string contains go template information
Types ¶
type Config ¶
type Config struct { Name string PipelineID string // PipelineID allows to identify a full pipeline run, this value is propagated into each target if not defined at that level Title string // Title is used for the full pipeline Source source.Config // **Deprecated** 2021/02/18 Is replaced by Sources, this setting will be deleted in a future release PullRequests map[string]pullrequest.Config // PullRequests defines the list of Pull Request configuration which need to be managed SCMs map[string]scm.Config `yaml:"scms"` // SCMs defines the list of repository configuration used to fetch content from. Sources map[string]source.Config // Sources defines the list of source configuration Conditions map[string]condition.Config // Conditions defines the list of condition configuration Targets map[string]target.Config // Targets defines the list of target configuration }
Config contains cli configuration
func (*Config) GetChangelogTitle ¶ added in v0.10.0
GetChangelogTitle try to guess a specific target based on various information available for a specific job
type Template ¶
type Template struct { CfgFile string // Specify updatecli configuration file ValuesFiles []string // Specify value filename SecretsFiles []string // Specify sops secrets filename Values map[string]interface{} `yaml:"-,inline"` // Contains key/value extracted from a yaml file Secrets map[string]interface{} `yaml:"-,inline"` // Contains mozilla/sops information using yaml format }
Template contains template information used to generate updatecli configuration struct
Click to show internal directories.
Click to hide internal directories.