Documentation
¶
Index ¶
- type Instance
- func (i *Instance) GetDefinition(path string) (*Value, error)
- func (i *Instance) GetNode(def string) (ast.Node, error)
- func (i *Instance) GetValidatedValue() (*Value, error)
- func (i *Instance) GetValue() (*Value, error)
- func (i *Instance) LoadDefinitions() error
- func (i *Instance) String() string
- func (i *Instance) Validate() error
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
Instance is a wrapper around Cue instance to implement additional methods It also caches various data to improve performances and data fetching
func NewInstance ¶
NewInstance is a constructor around Instance to correctly initialize cache fields
func (*Instance) GetDefinition ¶
GetDefinition return a definition if found or an error
func (*Instance) GetValidatedValue ¶
GetValidatedValue return a value if it's validated
func (*Instance) LoadDefinitions ¶
LoadDefinitions list and store all definitions of an instance
type Value ¶
Value is a wrapper around cue.Value to implement additional utility methods
func (*Value) IsDefinition ¶
IsDefinition return true if the current value is a definition. It checks it through path name.
func (*Value) ListDefinitions ¶
ListDefinitions recursively walk through cue Value to retrieve all definition defines in it.
func (*Value) ListFieldDoc ¶
ListFieldDoc builds a text that contains all fields of a CUE value with their associated documentation. It also walks through children until find primitive dagger task.
TODO (TomChv): Implement special handling for primitive type like `dagger.#FS`