Documentation
¶
Index ¶
- func Diff(a, b cue.Value)
- func Extract(v cue.Value, s interface{}) error
- func FromStrings(ss ...string) cue.Value
- func FromStruct(name string, s interface{}) (cue.Value, error)
- func Interfaces(kvs map[string]interface{}) cue.Value
- func LogError(logger logr.Logger, err error)
- func StringSlices(kvs map[string][]string) cue.Value
- func Strings(kvs map[string]string) cue.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extract ¶ added in v0.3.2
Extract pulls values out of CUE and encodes them into a Go struct with JSON tags.
func FromStrings ¶
FromStrings creates a cue.Value from string arguments.
func FromStruct ¶
FromStruct creates a nested cue.Value from a Go struct. The new cue.Value will have a single field from name, which will contain the struct.
func Interfaces ¶
StringSlices creates a cue.Value from fields defined in a map[string]interface{}. Supported Cue builtin types are bool, number, and struct.
func LogError ¶
LogError logs errors that may or may not contain a list of cue/errors.Error. If the error provided is not a cue/errors.Error, a plain error is logged.
func StringSlices ¶
StringSlices creates a cue.Value from fields defined in a map[string][]string.
Types ¶
This section is empty.