Documentation
¶
Overview ¶
Package debugdestination provides a diagnostic catalog collector destination that logs snapshot summaries instead of reconciling resources against a remote system.
The destination is terminal and stateless. It emits structured log output at Info level and never mutates the supplied snapshot, reconciles API resources, adds management labels, performs pruning, or retains snapshot data.
Verbosity controls how much detail is logged:
- basic: pipeline ID, revision, catalog count, and catalog-item count
- normal: basic fields plus sorted catalog names and catalog-item identities
- detailed: basic summary followed by one deterministic log entry for every Catalog and CatalogItem, including its JSON representation
Detailed mode should be enabled deliberately because it logs all catalog resource data and may expose operational metadata. The destination does not receive component configuration, authentication extensions, bearer tokens, OAuth credentials, or HTTP headers.
Index ¶
Constants ¶
const Type catalogcollector.ComponentType = "debug"
Type is the component type for the debug destination.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() catalogcollector.DestinationFactory
NewFactory returns a DestinationFactory for the debug destination.
Types ¶
type Config ¶
type Config struct {
Verbosity Verbosity `json:"verbosity,omitempty"`
}
Config holds the configuration for the debug destination.
type Verbosity ¶
type Verbosity string
Verbosity controls how much detail the debug destination logs for each snapshot.
const ( // VerbosityBasic logs a summary containing the pipeline ID, revision, // and resource counts. VerbosityBasic Verbosity = "basic" // VerbosityNormal adds sorted catalog names and catalog item identities // to the basic summary. VerbosityNormal Verbosity = "normal" // VerbosityDetailed logs a basic summary followed by one log entry per // Catalog and CatalogItem, including each resource's JSON representation. // Enable deliberately because catalog metadata may contain sensitive // operational information. VerbosityDetailed Verbosity = "detailed" )