catalognameprocessor

package
v1.4.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 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 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

View Source
const Type catalogcollector.ComponentType = "catalogname"

Type is the component type for the catalog name mapping processor.

Variables

This section is empty.

Functions

func NewFactory

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].

func (*Config) Validate

func (c *Config) Validate() error

Validate checks that the mapping configuration is complete and consistent.

Jump to

Keyboard shortcuts

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