Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrWrongConfig is returned when a target spec has missing attributes which are mandatory ErrWrongConfig = errors.New("wrong target configuration") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
resource.ResourceConfig `yaml:",inline"`
// ReportTitle contains the updatecli reports title for sources and conditions run
ReportTitle string `yaml:",omitempty"`
// ReportBody contains the updatecli reports body for sources and conditions run
ReportBody string `yaml:",omitempty"`
// ! Deprecated - please use all lowercase `sourceid`
DeprecatedSourceID string `yaml:"sourceID,omitempty" jsonschema:"-"`
// disablesourceinput disables the mechanism to retrieve a default value from a source.
DisableSourceInput bool `yaml:",omitempty"`
// sourceid specifies where retrieving the default value
SourceID string `yaml:",omitempty"`
}
Config defines target parameters
func (Config) JSONSchema ¶ added in v0.23.0
JSONSchema implements the json schema interface to generate the "target" jsonschema.
type Target ¶
type Target struct {
// Result store the condition result after a target run.
Result string
Config Config
Commit bool
Push bool
Clean bool
DryRun bool
Scm *scm.ScmHandler
}
Target defines which file needs to be updated based on source output
Click to show internal directories.
Click to hide internal directories.