leafref

package
v0.4.68 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeafRef

type LeafRef struct {
	LocalPath  *config.Path `json:"localPath,omitempty"`
	RemotePath *config.Path `json:"remotePath,omitempty"`
}

func NewLeafReaf

func NewLeafReaf(lPath, rPath *config.Path) *LeafRef

func (*LeafRef) ResolveLeafRefWithJSONObject

func (l *LeafRef) ResolveLeafRefWithJSONObject(x1 interface{}, idx int, lridx int, resolvedLeafRefs []*ResolvedLeafRef) []*ResolvedLeafRef

ResolveLeafRefWithJSONObject resolved the leafref in the data/object supplied via the path and returns the leafref values and leafref path augmnted with the data of the leaf reference we can have multiple leafrefs in an object and hence we return a list with the leafref values and the leafref path (witht the Populateed data of the object)

type ResolvedLeafRef

type ResolvedLeafRef struct {
	LocalPath  *config.Path `json:"localPath,omitempty"`
	RemotePath *config.Path `json:"remotePath,omitempty"`
	Value      string       `json:"value,omitempty"`
	Resolved   bool         `json:"resolved,omitempty"`
}

func NewResolvedLeafRefCopy added in v0.4.46

func NewResolvedLeafRefCopy(in *ResolvedLeafRef) (out *ResolvedLeafRef)

func (*ResolvedLeafRef) FindRemoteLeafRef

func (rlref *ResolvedLeafRef) FindRemoteLeafRef(x1 interface{}, idx int) (found bool)

func (*ResolvedLeafRef) PopulateLocalLeafRefKey

func (rlref *ResolvedLeafRef) PopulateLocalLeafRefKey(x interface{}, idx int)

func (*ResolvedLeafRef) PopulateLocalLeafRefValue

func (rlref *ResolvedLeafRef) PopulateLocalLeafRefValue(x interface{}, idx int)

PopulateLeafRefWithValue fills out the keys in the path and Populateed the Values if the leafRefValues is not nil

func (*ResolvedLeafRef) PopulateRemoteLeafRefKey

func (rlref *ResolvedLeafRef) PopulateRemoteLeafRefKey()

Jump to

Keyboard shortcuts

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