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.Source // **Deprecated** 2021/02/18 Is replaced by Sources, this setting will be deleted in a future release
Sources map[string]source.Source
Conditions map[string]condition.Condition
Targets map[string]target.Target
}
Config contains cli configuration
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.