Documentation ¶
Index ¶
- type Spec
- type Yaml
- func (y *Yaml) Changelog() string
- func (y *Yaml) Condition(source string) (bool, error)
- func (y *Yaml) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)
- func (y *Yaml) Read() error
- func (y *Yaml) Source(workingDir string) (string, error)
- func (y *Yaml) Target(source string, dryRun bool) (bool, error)
- func (y *Yaml) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (bool, []string, string, error)
- func (y *Yaml) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spec ¶
type Spec struct { // Specifies the YAML file File string `yaml:",omitempty"` // Specifies the YAML key Key string `yaml:",omitempty"` // Specifies the YAML value Value string `yaml:",omitempty"` // [condition] allow checking for only the existence of a key (not its value) KeyOnly bool `yaml:",omitempty"` }
Spec defines a specification for a "yaml" resource parsed from an updatecli manifest file
type Yaml ¶
type Yaml struct {
// contains filtered or unexported fields
}
Yaml defines a resource of kind "yaml"
func New ¶
New returns a reference to a newly initialized Yaml object from a Spec or an error if the provided YamlSpec triggers a validation error.
func (*Yaml) Changelog ¶
Changelog returns the changelog for this resource, or an empty string if not supported
func (*Yaml) ConditionFromSCM ¶
ConditionFromSCM checks if a key exists in a yaml file
func (*Yaml) Read ¶
Read defines CurrentContent to the content of the file which path is specified in Spec.File
Click to show internal directories.
Click to hide internal directories.