Documentation ¶
Index ¶
- Constants
- func ListOpen(expr ast.Node) ast.Node
- func OpenBaiscLit(s string) (string, error)
- func OptBytesToString(node ast.Node) ast.Node
- func PreprocessBuiltinFunc(root ast.Node, name string, process func(values []ast.Node) (ast.Expr, error)) error
- func StrategyUnify(base, patch string) (string, error)
- func ToFile(n ast.Node) (*ast.File, error)
- func ToString(v cue.Value, opts ...func(node ast.Node) ast.Node) (string, error)
Constants ¶
View Source
const ( // TagPatchKey specify the primary key of the list items TagPatchKey = "patchKey" // TagPatchStrategy specify a strategy of the strategic merge patch TagPatchStrategy = "patchStrategy" // StrategyRetainKeys notes on the strategic merge patch using the retainKeys strategy StrategyRetainKeys = "retainKeys" )
Variables ¶
This section is empty.
Functions ¶
func OpenBaiscLit ¶ added in v1.1.1
OpenBaiscLit make that the basicLit can be modified.
func OptBytesToString ¶
OptBytesToString convert cue bytes to string.
func PreprocessBuiltinFunc ¶
func PreprocessBuiltinFunc(root ast.Node, name string, process func(values []ast.Node) (ast.Expr, error)) error
PreprocessBuiltinFunc preprocess builtin function in cue file.
func StrategyUnify ¶
StrategyUnify unify the objects by the strategy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.