Documentation ¶
Index ¶
- Variables
- type Json
- func (j *Json) Changelog() string
- func (j *Json) Condition(source string) (bool, error)
- func (j *Json) ConditionFromSCM(source string, scm scm.ScmHandler) (bool, error)
- func (j *Json) Read() error
- func (j *Json) Source(workingDir string) (string, error)
- func (j *Json) Target(source string, dryRun bool) (changed bool, err error)
- func (j *Json) TargetFromSCM(source string, scm scm.ScmHandler, dryRun bool) (changed bool, files []string, message string, err error)
- func (j *Json) Validate() (err error)
- type Spec
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDaselFailedParsingJSONByteFormat is returned if dasel couldn't parse the byteData ErrDaselFailedParsingJSONByteFormat error = errors.New("fail to parse Json data") // ErrWrongSpec is returned when the Spec has wrong content ErrWrongSpec error = errors.New("wrong spec content") )
View Source
var ( ErrSpecFileUndefined = errors.New("json file not specified") ErrSpecKeyUndefined = errors.New("json key undefined") )
Functions ¶
This section is empty.
Types ¶
type Json ¶
type Json struct {
// contains filtered or unexported fields
}
Json stores configuration about the file and the key value which needs to be updated.
func (*Json) Changelog ¶
Changelog returns the changelog for this resource, or an empty string if not supported
func (*Json) ConditionFromSCM ¶
type Spec ¶
type Spec struct { // [s][c][t] File specifies the Json file to manipuate File string `yaml:",omitempty"` // [s][c][t] Key specifies the Jsonpath key to manipuate Key string `yaml:",omitempty"` // [s][c][t] Value specifies the Jsonpath key to manipuate. Default to source output Value string `yaml:",omitempty"` // [c][t] Multiple allows to query multiple values at once Multiple bool `yaml:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.