Documentation ¶
Index ¶
Constants ¶
View Source
const ( AnnotationNs structmeta.AnnotationNs = "overlay" AnnotationMerge structmeta.AnnotationName = "overlay/merge" // default AnnotationRemove structmeta.AnnotationName = "overlay/remove" AnnotationReplace structmeta.AnnotationName = "overlay/replace" AnnotationInsert structmeta.AnnotationName = "overlay/insert" // array only AnnotationAppend structmeta.AnnotationName = "overlay/append" // array only AnnotationMatch structmeta.AnnotationName = "overlay/match" )
Variables ¶
View Source
var ( API = starlark.StringDict{ "overlay": &starlarkstruct.Module{ Name: "overlay", Members: starlark.StringDict{ "apply": starlark.NewBuiltin("overlay.apply", core.ErrWrapper(overlayModule{}.Apply)), "index": starlark.NewBuiltin("overlay.index", core.ErrWrapper(overlayModule{}.Index)), "all": starlark.NewBuiltin("overlay.all", core.ErrWrapper(overlayModule{}.All)), "map_key": starlark.NewBuiltin("overlay.map_key", core.ErrWrapper(overlayModule{}.MapKey)), "subset": starlark.NewBuiltin("overlay.subset", core.ErrWrapper(overlayModule{}.Subset)), }, }, } )
Functions ¶
This section is empty.
Types ¶
type ArrayItemMatchAnnotation ¶
type ArrayItemMatchAnnotation struct {
// contains filtered or unexported fields
}
func (ArrayItemMatchAnnotation) Indexes ¶
func (a ArrayItemMatchAnnotation) Indexes(leftArray *yamlmeta.Array) ([]int, error)
func (ArrayItemMatchAnnotation) MatchNodes ¶
func (a ArrayItemMatchAnnotation) MatchNodes(leftArray *yamlmeta.Array) ([]int, error)
type DocumentMatchAnnotation ¶
type DocumentMatchAnnotation struct {
// contains filtered or unexported fields
}
func (DocumentMatchAnnotation) IndexTuples ¶
func (a DocumentMatchAnnotation) IndexTuples(leftDocSets []*yamlmeta.DocumentSet) ([][]int, error)
func (DocumentMatchAnnotation) MatchNodes ¶
func (a DocumentMatchAnnotation) MatchNodes(leftDocSets []*yamlmeta.DocumentSet) ([][]int, error)
type InsertAnnotation ¶
type InsertAnnotation struct {
// contains filtered or unexported fields
}
func NewInsertAnnotation ¶
func NewInsertAnnotation(newItem template.EvaluationNode) (InsertAnnotation, error)
func (InsertAnnotation) IsAfter ¶
func (a InsertAnnotation) IsAfter() bool
func (InsertAnnotation) IsBefore ¶
func (a InsertAnnotation) IsBefore() bool
type MapItemMatchAnnotation ¶
type MapItemMatchAnnotation struct {
// contains filtered or unexported fields
}
type MatchAnnotationExpectsKwarg ¶
type MatchAnnotationExpectsKwarg struct {
// contains filtered or unexported fields
}
func (MatchAnnotationExpectsKwarg) Check ¶
func (a MatchAnnotationExpectsKwarg) Check(num int) error
Click to show internal directories.
Click to hide internal directories.