Documentation ¶
Overview ¶
Package engine manages the acquisition and compilation of Timoni's CUE modules.
Index ¶
- type Builder
- func (b *Builder) Build() (cue.Value, error)
- func (b *Builder) GetDefaultValues() (string, error)
- func (b *Builder) GetModuleName() (string, error)
- func (b *Builder) GetObjects(value cue.Value) ([]*unstructured.Unstructured, error)
- func (b *Builder) GetValues(value cue.Value) (string, error)
- func (b *Builder) MergeValuesFile(overlays []string) error
- type Fetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder compiles CUE definitions to Kubernetes objects.
func NewBuilder ¶
NewBuilder creates a Builder for the given module and package.
func (*Builder) Build ¶
Build builds a CUE instances for the specified package and returns the CUE value.
func (*Builder) GetDefaultValues ¶
GetDefaultValues extracts the default values from the module.
func (*Builder) GetModuleName ¶
GetModuleName returns the module name as defined in 'cue.mod/module.cue'.
func (*Builder) GetObjects ¶
func (b *Builder) GetObjects(value cue.Value) ([]*unstructured.Unstructured, error)
GetObjects coverts the CUE value to Kubernetes unstructured objects.
func (*Builder) MergeValuesFile ¶
MergeValuesFile merges the given values overlays into values.cue.
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
Fetcher downloads a module and extracts it locally.
func NewFetcher ¶
NewFetcher creates a Fetcher for the given module.
func (*Fetcher) Fetch ¶
func (f *Fetcher) Fetch() (*apiv1.ModuleReference, error)
Fetch downloads a remote module locally into tmp.