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 defines a pipeline name
Name string
// PipelineID allows to identify a full pipeline run, this value is propagated into each target if not defined at that level
PipelineID string
// Title is used for the full pipeline
Title string
// PullRequests defines the list of Pull Request configuration which need to be managed
PullRequests map[string]pullrequest.Config
// SCMs defines the list of repository configuration used to fetch content from.
SCMs map[string]scm.Config `yaml:"scms"`
// Sources defines the list of source configuration
Sources map[string]source.Config
// Conditions defines the list of condition configuration
Conditions map[string]condition.Config
// Targets defines the list of target configuration
Targets map[string]target.Config
}
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.