Versions in this module Expand all Collapse all v0 v0.9.0 Aug 4, 2026 Changes in this version + var ErrBlueprintInvalid = errors.New("invalid blueprint") + func EvaluateWithOrigins(eval evaluator.ExpressionEvaluator, keyPath string, value any, ...) (any, error) + func IsDowngrade(previousURL, targetURL string) bool + func MergeScopeMaps(globalScope map[string]any, overlay map[string]any) map[string]any + func OrdinalFromBasename(basename string) int + func OrdinalFromFacetPath(path string) int + func RenderForDisplay(resource any, raw bool, deferredPaths map[string]bool) any + func ValidateComposedBlueprint(blueprint *blueprintv1alpha1.Blueprint) error + type BaseBlueprintComposer struct + func NewBlueprintComposer(rt *runtime.Runtime) *BaseBlueprintComposer + func (c *BaseBlueprintComposer) Compose(loaders []BlueprintLoader, initLoaderNames []string, userBlueprintPath string, ...) (*blueprintv1alpha1.Blueprint, error) + func (c *BaseBlueprintComposer) SetCommonSubstitutions(substitutions map[string]string) + func (c *BaseBlueprintComposer) SetExcludedFacets(excluded []ExcludedFacet) type BaseBlueprintHandler + func (h *BaseBlueprintHandler) Explain(pathStr string) (*ExplainTrace, error) + func (h *BaseBlueprintHandler) GenerateResolved() (*blueprintv1alpha1.Blueprint, error) + func (h *BaseBlueprintHandler) GetDeclaredSources() ([]blueprintv1alpha1.Source, error) + func (h *BaseBlueprintHandler) GetDeferredPaths() map[string]bool + func (h *BaseBlueprintHandler) RetargetSource(name, url string) (string, error) + func (h *BaseBlueprintHandler) SetSkipValidation(skip bool) + func (h *BaseBlueprintHandler) SetTraceCollector(tc TraceCollector) + func (h *BaseBlueprintHandler) UpgradeSourcesToLatest() ([]SourceUpgrade, error) + type BaseBlueprintLoader struct + func NewBlueprintLoader(rt *runtime.Runtime, artifactBuilder artifact.Artifact) *BaseBlueprintLoader + func (l *BaseBlueprintLoader) GetBlueprint() *blueprintv1alpha1.Blueprint + func (l *BaseBlueprintLoader) GetBlueprintPath() string + func (l *BaseBlueprintLoader) GetFacets() []blueprintv1alpha1.Facet + func (l *BaseBlueprintLoader) GetSourceName() string + func (l *BaseBlueprintLoader) GetTemplateData() map[string][]byte + func (l *BaseBlueprintLoader) Load(sourceName, sourceURL string) error + type BaseBlueprintProcessor struct + func NewBlueprintProcessor(rt *runtime.Runtime) *BaseBlueprintProcessor + func (p *BaseBlueprintProcessor) GetDeferredPaths() map[string]bool + func (p *BaseBlueprintProcessor) GetExcludedFacets() []ExcludedFacet + func (p *BaseBlueprintProcessor) ProcessFacets(target *blueprintv1alpha1.Blueprint, facets []blueprintv1alpha1.Facet, ...) (map[string]any, error) + func (p *BaseBlueprintProcessor) ProcessGlobally(sources []SourceFacetSet) (map[string]any, error) + func (p *BaseBlueprintProcessor) ResetExcludedFacets() + func (p *BaseBlueprintProcessor) SetExtraScope(scope map[string]any) + func (p *BaseBlueprintProcessor) SetTraceCollector(tc TraceCollector) + type BaseBlueprintWriter struct + func NewBlueprintWriter(rt *runtime.Runtime) *BaseBlueprintWriter + func (w *BaseBlueprintWriter) Write(blueprint *blueprintv1alpha1.Blueprint, overwrite bool, ...) error + type BlueprintComposer interface + Compose func(loaders []BlueprintLoader, initLoaderNames []string, userBlueprintPath string, ...) (*blueprintv1alpha1.Blueprint, error) type BlueprintHandler + Explain func(path string) (*ExplainTrace, error) + GenerateResolved func() (*blueprintv1alpha1.Blueprint, error) + GetDeclaredSources func() ([]blueprintv1alpha1.Source, error) + GetDeferredPaths func() map[string]bool + RetargetSource func(name, url string) (string, error) + SetSkipValidation func(skip bool) + UpgradeSourcesToLatest func() ([]SourceUpgrade, error) + type BlueprintLoader interface + GetBlueprint func() *blueprintv1alpha1.Blueprint + GetFacets func() []blueprintv1alpha1.Facet + GetSourceName func() string + GetTemplateData func() map[string][]byte + Load func(sourceName, sourceURL string) error + type BlueprintProcessor interface + ProcessFacets func(target *blueprintv1alpha1.Blueprint, facets []blueprintv1alpha1.Facet, ...) (scope map[string]any, err error) + ProcessGlobally func(sources []SourceFacetSet) (map[string]any, error) + type BlueprintWriter interface + Write func(blueprint *blueprintv1alpha1.Blueprint, overwrite bool, ...) error + type ConfigBlockRecord struct + FacetPath string + Line int + NestedPaths []string + NestedRefs map[string][]string + RawValue any + ScopeRefs []string + type CrdInstallLayer struct + Refs []string + Source string + func CrdLayers(bp *blueprintv1alpha1.Blueprint) []CrdInstallLayer + type DefaultTraceCollector struct + func NewTraceCollector() *DefaultTraceCollector + func (c *DefaultTraceCollector) Finalize(bp *blueprintv1alpha1.Blueprint, scope map[string]any, templateRoot string) + func (c *DefaultTraceCollector) GetTrace(pathStr string) (*ExplainTrace, error) + func (c *DefaultTraceCollector) RecordConfigBlock(configPath string, record ConfigBlockRecord) + func (c *DefaultTraceCollector) RecordContribution(composedPath string, tc TraceContribution) + type ExcludedFacet struct + Name string + Provides []string + When string + type ExplainContribution struct + AbsFacetPath string + Effective bool + Expression string + FacetPath string + HasValue bool + Line int + Ordinal int + RawComponents []string + ScopeRefs []ExplainScopeRef + SourceName string + Strategy string + type ExplainPath struct + Key string + Kind ExplainPathKind + Segment string + func ParseExplainPath(path string) (ExplainPath, error) + func (p ExplainPath) String() string + type ExplainPathKind int + const ExplainPathKindConfigMap + const ExplainPathKindKustomizeComponents + const ExplainPathKindKustomizeSubstitution + const ExplainPathKindSubstitution + const ExplainPathKindTerraformInput + type ExplainScopeRef struct + Line int + Name string + Nested []ExplainScopeRef + Source string + Status string + type ExplainTrace struct + Contributions []ExplainContribution + Path string + Value string type MockBlueprintHandler + ExplainFunc func(string) (*ExplainTrace, error) + GenerateResolvedFunc func() (*blueprintv1alpha1.Blueprint, error) + GetDeclaredSourcesFunc func() ([]blueprintv1alpha1.Source, error) + GetDeferredPathsFunc func() map[string]bool + RetargetSourceFunc func(name, url string) (string, error) + SetSkipValidationFunc func(skip bool) + UpgradeSourcesToLatestFunc func() ([]SourceUpgrade, error) + func (m *MockBlueprintHandler) Explain(path string) (*ExplainTrace, error) + func (m *MockBlueprintHandler) GenerateResolved() (*blueprintv1alpha1.Blueprint, error) + func (m *MockBlueprintHandler) GetDeclaredSources() ([]blueprintv1alpha1.Source, error) + func (m *MockBlueprintHandler) GetDeferredPaths() map[string]bool + func (m *MockBlueprintHandler) RetargetSource(name, url string) (string, error) + func (m *MockBlueprintHandler) SetSkipValidation(skip bool) + func (m *MockBlueprintHandler) SkipValidation() bool + func (m *MockBlueprintHandler) UpgradeSourcesToLatest() ([]SourceUpgrade, error) + type RequirementsError struct + Message string + func (e *RequirementsError) Error() string + type SourceFacetSet struct + Depth int + Facets []blueprintv1alpha1.Facet + Name string + Target *blueprintv1alpha1.Blueprint + type SourceUpgrade struct + From string + Name string + To string + type TraceCollector interface + Finalize func(bp *blueprintv1alpha1.Blueprint, scope map[string]any, templateRoot string) + GetTrace func(pathStr string) (*ExplainTrace, error) + RecordConfigBlock func(configPath string, record ConfigBlockRecord) + RecordContribution func(composedPath string, tc TraceContribution) + type TraceContribution struct + FacetPath string + Line int + Ordinal int + RawComponents []string + RawValue any + ScopeRefs []string + SourceName string + Strategy string v0.8.1 Dec 12, 2025 v0.8.0 Dec 2, 2025 Changes in this version + var DefaultBlueprint = blueprintv1alpha1.Blueprint + type BaseBlueprintHandler struct + func NewBlueprintHandler(rt *runtime.Runtime, artifactBuilder artifact.Artifact, ...) (*BaseBlueprintHandler, error) + func (b *BaseBlueprintHandler) Generate() *blueprintv1alpha1.Blueprint + func (b *BaseBlueprintHandler) GetLocalTemplateData() (map[string][]byte, error) + func (b *BaseBlueprintHandler) GetTerraformComponents() []blueprintv1alpha1.TerraformComponent + func (b *BaseBlueprintHandler) LoadBlueprint(blueprintURL ...string) error + func (b *BaseBlueprintHandler) Write(overwrite ...bool) error + type BlueprintHandler interface + Generate func() *blueprintv1alpha1.Blueprint + GetLocalTemplateData func() (map[string][]byte, error) + GetTerraformComponents func() []blueprintv1alpha1.TerraformComponent + LoadBlueprint func(blueprintURL ...string) error + Write func(overwrite ...bool) error + type FeatureEvaluator struct + func NewFeatureEvaluator(rt *runtime.Runtime) *FeatureEvaluator + func (e *FeatureEvaluator) EvaluateDefaults(defaults map[string]any, config map[string]any, featurePath string) (map[string]any, error) + func (e *FeatureEvaluator) EvaluateExpression(expression string, config map[string]any, featurePath string) (bool, error) + func (e *FeatureEvaluator) EvaluateValue(expression string, config map[string]any, featurePath string) (any, error) + func (e *FeatureEvaluator) FeatureToBlueprint(feature *v1alpha1.Feature) *v1alpha1.Blueprint + func (e *FeatureEvaluator) InterpolateString(s string, config map[string]any, featurePath string) (string, error) + func (e *FeatureEvaluator) MergeFeatures(features []*v1alpha1.Feature) *v1alpha1.Feature + func (e *FeatureEvaluator) ProcessFeature(feature *v1alpha1.Feature, config map[string]any) (*v1alpha1.Feature, error) + func (e *FeatureEvaluator) SetTemplateData(templateData map[string][]byte) + type JsonnetVM interface + EvaluateAnonymousSnippet func(filename, snippet string) (string, error) + ExtCode func(key, val string) + Importer func(importer jsonnet.Importer) + type MockBlueprintHandler struct + DownFunc func() error + GenerateFunc func() *blueprintv1alpha1.Blueprint + GetLocalTemplateDataFunc func() (map[string][]byte, error) + GetTerraformComponentsFunc func() []blueprintv1alpha1.TerraformComponent + InstallFunc func() error + LoadBlueprintFunc func(...string) error + SetRenderedKustomizeDataFunc func(data map[string]any) + WaitForKustomizationsFunc func(message string, names ...string) error + WriteFunc func(overwrite ...bool) error + func NewMockBlueprintHandler() *MockBlueprintHandler + func (m *MockBlueprintHandler) Down() error + func (m *MockBlueprintHandler) Generate() *blueprintv1alpha1.Blueprint + func (m *MockBlueprintHandler) GetLocalTemplateData() (map[string][]byte, error) + func (m *MockBlueprintHandler) GetTerraformComponents() []blueprintv1alpha1.TerraformComponent + func (m *MockBlueprintHandler) Install() error + func (m *MockBlueprintHandler) LoadBlueprint(blueprintURL ...string) error + func (m *MockBlueprintHandler) SetRenderedKustomizeData(data map[string]any) + func (m *MockBlueprintHandler) WaitForKustomizations(message string, names ...string) error + func (m *MockBlueprintHandler) Write(overwrite ...bool) error + type RealJsonnetVM struct + func (j *RealJsonnetVM) EvaluateAnonymousSnippet(filename, snippet string) (string, error) + func (j *RealJsonnetVM) ExtCode(key, val string) + func (j *RealJsonnetVM) Importer(importer jsonnet.Importer) + type Shims struct + FilepathAbs func(string) (string, error) + FilepathBase func(string) string + JsonMarshal func(any) ([]byte, error) + JsonUnmarshal func([]byte, any) error + K8sYamlUnmarshal func([]byte, any) error + MkdirAll func(string, os.FileMode) error + NewFakeClient func(...client.Object) client.WithWatch + NewJsonnetVM func() JsonnetVM + NewTicker func(d time.Duration) *time.Ticker + ReadDir func(string) ([]os.DirEntry, error) + ReadFile func(string) ([]byte, error) + RegexpMatchString func(pattern, s string) (bool, error) + Remove func(string) error + Stat func(string) (os.FileInfo, error) + TickerStop func(*time.Ticker) + TimeAfter func(d time.Duration) <-chan time.Time + Walk func(string, filepath.WalkFunc) error + WriteFile func(string, []byte, os.FileMode) error + YamlMarshal func(any) ([]byte, error) + YamlMarshalNonNull func(any) ([]byte, error) + YamlUnmarshal func([]byte, any) error + func NewShims() *Shims