Documentation
¶
Overview ¶
Package evaluator implements the HCL processing need to create resource definitions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscardItem ¶
type DiscardItem struct {
Type DiscardType `json:"type"` // the kind of thing that is discarded
Reason DiscardReason `json:"reason"` // the reason for the discard
Name string `json:"name,omitempty"` // used only for things that are named
SourceRange string `json:"sourceRange,omitempty"` // source range where the discard happened
Context []string `json:"context,omitempty"` // relevant messages with more details
}
DiscardItem is an instance of a resource, resource list, group, connection detail or a composite status being discarded from the output either based on user conditions or an incomplete definition of the object in question.
func (DiscardItem) MessageString ¶
func (di DiscardItem) MessageString() string
type DiscardType ¶
type DiscardType string
DiscardType describes what was discarded by the function.
type DynamicObject ¶
type Evaluator ¶
type Evaluator struct {
// contains filtered or unexported fields
}
Evaluator evaluates the HCL DSL created for the purposes of producing crossplane resources. Evaluators have mutable state and must not be re-used, nor are they safe for concurrent use.
func (*Evaluator) Analyze ¶
func (e *Evaluator) Analyze(files ...File) hcl.Diagnostics
Analyze runs static checks on the supplied HCL files that implement a composition. It returns errors and warnings in the process.
func (*Evaluator) Eval ¶
func (e *Evaluator) Eval(in *fnv1.RunFunctionRequest, files ...File) (*fnv1.RunFunctionResponse, error)
Eval evaluates the supplied HCL files. Ordering of these files are not important for evaluation. Internally they are just processed as though all the files were concatenated into a single file.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal/funcs/ipaddr
Package ipaddr is a fork of a subset of the Go standard "net" package which retains parsing behaviors from Go 1.16 or earlier.
|
Package ipaddr is a fork of a subset of the Go standard "net" package which retains parsing behaviors from Go 1.16 or earlier. |