Documentation ¶
Index ¶
- func CueDiff(sorig, snew string) (string, error)
- func CueMask(sorig, smask string) (string, error)
- func CueMerge(sorig, snew string) (string, error)
- func CuePick(sorig, spick 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 ExprFromValue(v cue.Value) *pvExpr
- func FindByAttrs(s cue.Value, attrs []string, attrsK map[string][]string, ...) ([]cue.Value, error)
- func Merge(orig, last interface{}) (cue.Value, error)
- func MergeValues(orig, last cue.Value) (cue.Value, error)
- func NewpvList() *pvList
- func NewpvStruct() *pvStruct
- func Pick(orig, pick interface{}) (interface{}, error)
- func PickCue(orig, pick cue.Value) (cue.Value, error)
- func PickGo(orig, pick interface{}) (interface{}, error)
- func PrintCueValue(val cue.Value) error
- type CueRuntime
- 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 NewpvStruct ¶
func NewpvStruct() *pvStruct
func PrintCueValue ¶
Types ¶
type CueRuntime ¶
type CueRuntime struct { Entrypoints []string CueRT *cue.Runtime BIS []*build.Instance FieldOpts []cue.Option CueInstance *cue.Instance TopLevelValue cue.Value TopLevelStruct *cue.Struct }
func NewCueRuntime ¶
func NewCueRuntime() *CueRuntime
func (*CueRuntime) LoadCue ¶
func (CR *CueRuntime) LoadCue(entrypoints []string) []error
func (*CueRuntime) PrintValue ¶
func (CR *CueRuntime) PrintValue() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.