debugdestination

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Type is the component type for the debug destination.

Variables

This section is empty.

Functions

func NewFactory

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.

func (*Config) Validate

func (c *Config) Validate() error

Validate verifies that the configured verbosity is supported.

The factory supplies VerbosityBasic as the default, so an empty value is invalid here. This also ensures that an explicitly configured empty value does not silently select undocumented behavior.

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"
)

Jump to

Keyboard shortcuts

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