Documentation
¶
Overview ¶
Package catalognameprocessor provides a catalog name mapping processor for the flightctl catalog collector.
It renames Catalog resources in a snapshot according to a configured mapping, and updates the corresponding CatalogItem.metadata.catalog field so items remain attached to the correctly named catalog.
Index ¶
Constants ¶
const Type catalogcollector.ComponentType = "catalogname"
Type is the component type for the catalog name mapping processor.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() catalogcollector.ProcessorFactory
NewFactory returns a ProcessorFactory for the catalog name mapping processor.
Types ¶
type Config ¶
type Config struct {
// Mappings is a map from existing Catalog names to replacement names.
// All keys and values must be non-empty strings. Keys must be unique.
// Values must be unique (two source names may not map to the same target).
Mappings map[string]string `json:"mappings"`
}
Config holds the provider-specific configuration for the catalog name mapping processor. It implements [config.Validator].