Documentation
¶
Overview ¶
Package providertopology binds provider member intent to retained native state.
Index ¶
- func CompletedPrerequisiteServices(compose string) ([]string, error)
- func ExistingMembers(compose, prefix string) (int, error)
- func Names(prefix string, count int) []string
- func RequireVariant(compose, single, haMarker string, ha bool) error
- func ResolveMembers(compose, prefix string, recommended int, intent ...availability.Requirement) (int, error)
- func ServiceNames(compose string) (map[string]any, error)
- type Observation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompletedPrerequisiteServices ¶ added in v0.4.25
The caller must already have verified its canonical protected renderer. A name or restart policy alone never establishes a successful initializer.
func ExistingMembers ¶
func RequireVariant ¶
RequireVariant protects providers whose native HA layout has several roles rather than a uniform member group.
func ResolveMembers ¶
func ResolveMembers(compose, prefix string, recommended int, intent ...availability.Requirement) (int, error)
ResolveMembers never rewrites a retained datastore topology. Callers without an intent (maintenance/rotation) retain its actual members; fresh providers default to one. Manifest callers must pass their resolved component intent.
Types ¶
type Observation ¶
type Observation struct {
Provider, Component, Replication string
Instance string
RequestedHA bool
Members, DataMembers, Helpers int
DeclaredMembers, DeclaredHelpers int
MemberNames, HelperNames []string
SemanticProof string
}
Observation separates live native provider roles from data replication proof. Multiple independently stored Prometheus TSDBs and stateless receivers are explicitly not reported as replicated datasets.
func Observe ¶
func Observe(compose string, running []string, intent availability.Intent, explicitGroups ...map[string]string) ([]Observation, error)
Observe uses protected Compose ownership and the native running-service inventory. It never infers membership from the total container count.
func (Observation) Detail ¶
func (o Observation) Detail() string