Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultResourcesPath is the default path to the directory containing the CUE resources.
DefaultResourcesPath = "/cue-resources"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CUEstomizeFuncBuilder ¶
type CUEstomizeFuncBuilder struct {
// contains filtered or unexported fields
}
CUEstomizeFuncBuilder is a builder for the CUEstomize KRM function.
func NewBuilder ¶
func NewBuilder() *CUEstomizeFuncBuilder
NewBuilder creates a new CUEstomizeFuncBuilder with the default resources path.
func (*CUEstomizeFuncBuilder) Build ¶
func (b *CUEstomizeFuncBuilder) Build(ctx context.Context) (func([]*kyaml.RNode) ([]*kyaml.RNode, error), error)
Build returns a function that can be used to generate resources from a CUE configuration and some input resources.
func (*CUEstomizeFuncBuilder) SetConfig ¶
func (b *CUEstomizeFuncBuilder) SetConfig(config *api.KRMInput) *CUEstomizeFuncBuilder
SetConfig sets the reference to the configuration object that the KRM function will receive in input.
func (*CUEstomizeFuncBuilder) SetResourcesPath ¶
func (b *CUEstomizeFuncBuilder) SetResourcesPath(resourcesPath string) *CUEstomizeFuncBuilder
SetResourcesPath sets the path to the directory containing the CUE resources.
Click to show internal directories.
Click to hide internal directories.