Documentation
¶
Overview ¶
Package surveyor is the discovery framework: plugins that inspect an environment and return Saga fragments, which are merged so the descriptor can write itself.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply merges a fragment into an existing model, upserting components by name.
Delegates to saga.Merge so a surveyor's fragment and a `fragments:` entry go through one merge. Two merges would eventually disagree about what a repeated component name means.
func MergeFragments ¶
MergeFragments combines fragments into one, deduplicating components by name and unioning each component's surface (repositories, images, hosts, infrastructure).
Whatever a fragment says about a component has to survive the merge, or it may as well not have been said. A proposed exposure travels with the topology it was read from, and the two are only useful together — a value that arrives here without its reason is a guess nobody can check.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry holds surveyors keyed by name.
type Request ¶
type Request struct {
Surveyor string
Scope plugin.SurveyScope
}
Request asks a named surveyor to survey a scope.