sets

package
v0.0.0-...-2c539bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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"
	// StrategyOpen notes on the strategic merge patch will allow any merge
	StrategyOpen = "open"
	// StrategyReplace notes on the strategic merge patch will allow replacing list
	StrategyReplace = "replace"
)

Variables

This section is empty.

Functions

func IsOpenPatch

func IsOpenPatch(patcher cue.Value) bool

IsOpenPatch check if patcher has open annotation

func ListOpen

func ListOpen(expr ast.Node) ast.Node

ListOpen enable the cue list can add elements.

func OpenBaiscLit

func OpenBaiscLit(s string) (string, error)

OpenBaiscLit make that the basicLit can be modified.

func OptBytesToString

func OptBytesToString(node ast.Node) ast.Node

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

func StrategyUnify(base, patch string) (string, error)

StrategyUnify unify the objects by the strategy

func ToFile

func ToFile(n ast.Node) (*ast.File, error)

ToFile convert ast.Node to ast.File

func ToString

func ToString(v cue.Value, opts ...func(node ast.Node) ast.Node) (string, error)

ToString convert cue.Value to string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL