inlinecompdesc

package
v0.104.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InlineCompDesc

type InlineCompDesc struct {
	ComponentDescriptor            *compdesc.ComponentDescriptor
	ReferencedComponentDescriptors []*InlineCompDesc
	// contains filtered or unexported fields
}

func New

func New(raw []byte) (*InlineCompDesc, error)

func (*InlineCompDesc) Expand

func (c *InlineCompDesc) Expand() error

Expand takes an Inline Component Descriptor as input. Inline Component Descriptors may have Component References to other Inline Component Descriptors. One may wish to also define those referenced Component Descriptors inline. Therefore, it is possible to define the referenced Component Descriptors within the Label of the referencing Component Descriptor. This function evaluates the label to expand all Component Descriptors contained in the Inline Component Descriptor.

func (*InlineCompDesc) GetFlatList

func (c *InlineCompDesc) GetFlatList() ([]*compdesc.ComponentDescriptor, error)

GetFlatList returns a flat list of all the Component Descriptors aggregated by the top level Component Descriptors (thus, the Component References are recursively resolved), including itself.

Jump to

Keyboard shortcuts

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