Documentation ¶
Index ¶
- Variables
- type Spec
- type XML
- func (x *XML) Changelog() string
- func (x *XML) Condition(source string, scm scm.ScmHandler, resultCondition *result.Condition) error
- func (x *XML) Read(filename string) error
- func (x *XML) Source(workingDir string, resultSource *result.Source) error
- func (x *XML) Target(source string, scm scm.ScmHandler, dryRun bool, resultTarget *result.Target) (err error)
- func (x *XML) Validate() (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSpecFileUndefined = errors.New("xml file not specified") ErrSpecKeyUndefined = errors.New("xml key undefined") )
View Source
var ( // ErrWrongSpec is returned when the Spec has wrong content ErrWrongSpec error = errors.New("wrong spec content") )
Functions ¶
This section is empty.
Types ¶
type Spec ¶
type Spec struct { // [s][c][t] File defines the xml path to interact with File string `yaml:",omitempty"` // [s][c][t] Path defines the xmlPAth used for doing the query Path string `yaml:",omitempty"` // [s][c][t] Value specifies the value for a specific Path. Default value fetch from source input Value string `yaml:",omitempty"` }
type XML ¶
type XML struct {
// contains filtered or unexported fields
}
XML stores configuration about the file and the key value which needs to be updated.
func (*XML) Changelog ¶
Changelog returns the changelog for this resource, or an empty string if not supported
func (*XML) Condition ¶
Condition checks that a specific xml path contains the correct value at the specified path
Click to show internal directories.
Click to hide internal directories.