Documentation
¶
Index ¶
- type LeafRef
- type ResolvedLeafRef
- func (rlref *ResolvedLeafRef) FindRemoteLeafRef(x1 interface{}, idx int) (found bool)
- func (rlref *ResolvedLeafRef) PopulateLocalLeafRefKey(x interface{}, idx int)
- func (rlref *ResolvedLeafRef) PopulateLocalLeafRefValue(x interface{}, idx int)
- func (rlref *ResolvedLeafRef) PopulateRemoteLeafRefKey()
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 (*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 (*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()
Click to show internal directories.
Click to hide internal directories.