Documentation ¶
Index ¶
- func CueDiff(sorig, snew string) (string, error)
- func CueMask(sorig, smask string) (string, error)
- func CueMerge(sorig, snew string) (string, error)
- func CueQuery(squery, sdata string) (string, error)
- func Diff(theirs, ours interface{}) (interface{}, error)
- func DiffCue(theirs, ours cue.Value) (cue.Value, error)
- func DiffGo(theirs, ours interface{}) (interface{}, error)
- func DiffValues(orig, next cue.Value) (cue.Value, error)
- func ExprFromValue(v cue.Value) *pvExpr
- func FindByAttrs(s cue.Value, attrs []string, attrsK map[string][]string, ...) ([]cue.Value, error)
- func FindByAttrsAny(s cue.Value, attrs []string, attrsK map[string][]string, ...) ([]cue.Value, error)
- func MaskValues(orig, mask cue.Value) (cue.Value, error)
- func Merge(orig, last interface{}) (cue.Value, error)
- func MergeValues(orig, update cue.Value) (cue.Value, error)
- func NewpvList() *pvList
- func NewpvStruct() *pvStruct
- func Pick(orig, pick interface{}) (cue.Value, error)
- func PickValues(orig, pick cue.Value) (val cue.Value, err error)
- func QueryValues(orig, query cue.Value) (cue.Value, error)
- func RunDiffFromArgs(orig, next string, entrypoints []string) error
- func RunMaskFromArgs(orig, mask string, entrypoints []string) error
- func RunMergeFromArgs(orig, update string, entrypoints []string) error
- func RunPickFromArgs(orig, pick string, entrypoints []string) error
- func RunQueryFromArgs(orig, expr string, entrypoints []string) error
- type DiffOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExprFromValue ¶
func FindByAttrs ¶
func FindByAttrs(s cue.Value, attrs []string, attrsK map[string][]string, attrsKV map[string]map[string]string) ([]cue.Value, error)
FindByAttrs finds values in s if 1) attrs : it has @attr(...) 2) attrsK : it has @attr(key,...) [it must have all keys in the passed list, not just one] 3) attrsKV : it has @attr(key=value,...) [it must have all key=value in the passed map, not just one of them]
func FindByAttrsAny ¶ added in v0.5.7
func FindByAttrsAny(s cue.Value, attrs []string, attrsK map[string][]string, attrsKV map[string]map[string]string) ([]cue.Value, error)
FindByAttrsAll finds values in s like FindByAttrs, but any instead of all
func NewpvStruct ¶
func NewpvStruct() *pvStruct
func RunDiffFromArgs ¶ added in v0.5.4
func RunMaskFromArgs ¶ added in v0.5.4
func RunMergeFromArgs ¶ added in v0.5.4
func RunPickFromArgs ¶ added in v0.5.4
func RunQueryFromArgs ¶ added in v0.5.4
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.