Help us shape the future of Go! Take the 2026 Go Developer Survey

providertopology

package
v0.4.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package providertopology binds provider member intent to retained native state.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExistingMembers

func ExistingMembers(compose, prefix string) (int, error)

func Names

func Names(prefix string, count int) []string

func RequireVariant

func RequireVariant(compose, single, haMarker string, ha bool) error

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.

func ServiceNames

func ServiceNames(compose string) (map[string]any, error)

ServiceNames reads retained native state without following links or accepting an unprotected file. A missing file denotes a fresh installation.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL