Documentation
¶
Index ¶
- func CueKindOf(v cue.Value, path string) cue.Kind
- func CueKuestaTagOf(v cue.Value, path string) (string, error)
- func FormatCue(v cue.Value, opts ...cue.Option) ([]byte, error)
- func GetKuestaTag(v cue.Value) (string, error)
- func NewAstExpr(value any) ast.Expr
- func NewValueFromBytes(cctx *cue.Context, buf []byte) (cue.Value, error)
- func NewValueFromJson(cctx *cue.Context, buf []byte) (cue.Value, error)deprecated
- func NewValueWithInstance(cctx *cue.Context, entrypoints []string, loadcfg *load.Config) (cue.Value, error)
- type StrConvFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CueKuestaTagOf ¶
CueKuestaTagOf returns the tag written in comment.
func GetKuestaTag ¶
GetKuestaTag extracts the value tagged with 'kuesta' key from ast.CommentGroup.
func NewAstExpr ¶
NewAstExpr returns CUE AST Expression for the given value.
func NewValueFromBytes ¶
NewValueFromBytes creates cue.Value from given []byte.
Types ¶
type StrConvFunc ¶
func NewStrConvFunc ¶
func NewStrConvFunc(kind cue.Kind) (StrConvFunc, error)
NewStrConvFunc returns StrConvFunc to convert string to the corresponding type of the given cue.Kind.
Click to show internal directories.
Click to hide internal directories.