Documentation
¶
Overview ¶
Package collect builds an inventory.Inventory from a live cluster (or, in files mode, from rendered manifests). Sub-collectors degrade independently: an error marks the capability unavailable with a reason instead of failing the whole collection (spec §9).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collect ¶
Collect builds an Inventory from a live cluster. It never returns an error: each sub-collector failure becomes Capabilities[cap] = {Available: false, Reason: err.Error()} and collection continues.
func CollectFiles ¶
CollectFiles builds an Inventory from rendered manifests on disk (--files mode, CI gating). Walks *.yaml/*.yml/*.json recursively in lexical order. Only api-usage is assessable offline; every other capability degrades with reason "files mode". Malformed YAML is a hard error: in CI, silently skipping a bad manifest would be a false pass.
Types ¶
type Clients ¶
type Clients struct {
Kube kubernetes.Interface
Metadata metadata.Interface
Discovery discovery.DiscoveryInterface
RESTClient rest.Interface
}
Clients bundles the API clients the live-cluster sub-collectors need. Any nil client degrades the capabilities that depend on it.