Versions in this module Expand all Collapse all v1 v1.0.1 Jul 23, 2026 v1.0.0 Jul 13, 2026 Changes in this version + var DefaultAnonymousEdgeAliasFunc = func(from, to ResourceCoordinate) string + var DefaultClass = "default" + var DefaultSharedResourceIdFunc = func(ctx context.Context, alias string, manifest ManifestResource) string + var DefaultWorkloadResourceIdFunc = func(ctx context.Context, workload string, alias string, manifest ManifestResource) string + var DefaultWorkloadResourceType = "workload" + var InheritClassOrIdSymbol = "@" + var RePlaceholder = regexp.MustCompile(`\${[^{}]+}`) + func CompareOptionalString(a, b OptionalString) int + func CompareResourceCoordinate(a, b ResourceCoordinate) int + func IterPlaceholders(data interface{}, finalErr *error) iter.Seq2[string, PlaceholderSub] + func Version() string + type ContextPlaceholder struct + Key string + func (c ContextPlaceholder) Type() PlaceholderType + type DepthFirstIterateOrder int + const DepthFirstIteratePostOrder + const DepthFirstIteratePreOrder + type DistanceMatrix map[ResourceCoordinate]map[ResourceCoordinate]int + func (d DistanceMatrix) FillDistanceMatrix() DistanceMatrix + func (d DistanceMatrix) FindAncestorsOf(c ResourceCoordinate) iter.Seq2[ResourceCoordinate, int] + func (d DistanceMatrix) FindDescendentsOf(c ResourceCoordinate) iter.Seq2[ResourceCoordinate, int] + func (d DistanceMatrix) ResolveSelectorPlaceholder(context ResourceCoordinate, sp *SelectorPlaceholder) error + type DriftResolution string + const DriftResolutionAcceptConfigChange + const DriftResolutionAcceptModuleChange + type DriftType string + const DriftConfigurationChange + const DriftConfigurationChangeSkipped + const DriftModuleChange + const DriftModuleChangeSkipped + const DriftNone + func ApplyDriftResolution(current DriftType, resolution DriftResolution) (DriftType, bool) + type ErrCycle struct + func (e *ErrCycle) Error() string + type ErrGraph struct + ByNode map[ResourceCoordinate]error + func (e *ErrGraph) Error() string + type ErrInvalidPlaceholder struct + func NewErrInvalidPlaceholder(message string) *ErrInvalidPlaceholder + func (e *ErrInvalidPlaceholder) Error() string + type ErrNoRuleMatch struct + func (e *ErrNoRuleMatch) Error() string + type ErrParamsMismatch struct + func (e *ErrParamsMismatch) Error() string + type Graph struct + Edges map[ResourceCoordinate]map[string]ResourceCoordinate + LeafResources map[ResourceCoordinate]bool + Nodes map[ResourceCoordinate]ResourceNode[D] + SharedResources map[string]ResourceCoordinate + Workloads map[string]ResourceCoordinate + func SeedAndExpandAll[D ModuleConfiguration](ctx context.Context, manifest Manifest, definitions ModuleDefinitionIndex[D], ...) (Graph[D], error) + func Seed[D ModuleConfiguration](ctx context.Context, manifest Manifest) Graph[D] + func (g *Graph[D]) AddAnonymousDependency(from ResourceCoordinate, to ResourceCoordinate) error + func (g *Graph[D]) BuildAdjacencyMatrix() DistanceMatrix + func (g *Graph[D]) DepthFirstIterate(o DepthFirstIterateOrder) iter.Seq[ResourceCoordinate] + func (g *Graph[D]) DepthFirstIterateFrom(c ResourceCoordinate, o DepthFirstIterateOrder) iter.Seq[ResourceCoordinate] + func (g *Graph[D]) Expand(ctx context.Context, definitions ModuleDefinitionIndex[D], ...) + func (g *Graph[D]) HasErrors() bool + func (g *Graph[D]) IsExpanded() bool + func (g *Graph[D]) LabelCycle() map[ResourceCoordinate]bool + func (g *Graph[D]) ResolveResourcePlaceholder(aliasContext ResourceCoordinate, rt *ResourcePlaceholder) error + type Manifest struct + SharedResources map[string]ManifestResource + Workloads map[string]ManifestWorkload + type ManifestCoProvision struct + CopyDependentsOnCurrent bool + IsDependentOnCurrent bool + type ManifestResource struct + Class OptionalString + Id OptionalString + Params map[string]interface{} + Type string + type ManifestWorkload struct + Outputs map[string]string + Resources map[string]ManifestResource + type ModuleConfiguration interface + CalculateDrift func(mc ModuleConfiguration) DriftType + GetCoProvisioned func() []ManifestCoProvision + GetDependencies func() map[string]ManifestResource + type ModuleDefinition struct + Configuration E + ResourceType string + Rules []Rule + type ModuleDefinitionIndex struct + func NewModuleDefinitionIndex[D ModuleConfiguration](defs []ModuleDefinition[D]) *ModuleDefinitionIndex[D] + func (d *ModuleDefinitionIndex[D]) FindBest(_ context.Context, coordinate ResourceCoordinate) (ModuleDefinition[D], bool) + type OptionalString struct + func OptionalStringOf(s string) OptionalString + func OptionalStringOfNonEmpty(s string) OptionalString + func OptionalStringOfRef(s *string) OptionalString + func (o OptionalString) IsSet() bool + func (o OptionalString) Map(f func(s string) string) OptionalString + func (o OptionalString) MustValue() string + func (o OptionalString) Ref() *string + func (o OptionalString) String() string + func (o OptionalString) ValueOr(defaultValue string) string + func (o OptionalString) ValueOrFunc(defaultValue func() string) string + type PlaceholderSub interface + Type func() PlaceholderType + func ParsePlaceholder(placeholder string) (PlaceholderSub, error) + type PlaceholderType string + const PlaceholderTypeContext + const PlaceholderTypeResource + const PlaceholderTypeSelector + const PlaceholderTypeSelf + const PlaceholderTypeTfVar + type ResourceCoordinate struct + Class string + Id string + Type string + func (rc *ResourceCoordinate) UnmarshalText(data []byte) error + func (rc ResourceCoordinate) MarshalText() ([]byte, error) + func (rc ResourceCoordinate) String() string + type ResourceNode struct + CurrentDrift int + DetectedDrift DriftType + EffectiveDrift DriftType + Error error + ModuleConfiguration D + NextDriftResolution DriftResolution + Params map[string]interface{} + ParamsDefinedBy *ResourceCoordinate + type ResourcePlaceholder struct + Alias string + Coordinate *ResourceCoordinate + IsSelf bool + IsShared bool + Output []string + func (r ResourcePlaceholder) Type() PlaceholderType + type Rule struct + ResourceClass OptionalString + ResourceId OptionalString + type SelectorFilter struct + Class OptionalString + Id OptionalString + Type string + func ParseSelectorFilter(raw string) SelectorFilter + func (f SelectorFilter) Matches(rc ResourceCoordinate, context ResourceCoordinate) bool + type SelectorFunction struct + Args []interface{} + Func string + type SelectorPlaceholder struct + Args []string + Functions []string + MatchedCoordinates []ResourceCoordinate + Output []string + func (e SelectorPlaceholder) Type() PlaceholderType + type TfVarPlaceholder struct + Key string + func (e TfVarPlaceholder) Type() PlaceholderType