sources

package
v0.11.0 Latest Latest
Warning

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterIdentifier

type ClusterIdentifier struct {
	Name             string   // Human-readable name (MSK: cluster name, OSK: user ID)
	UniqueID         string   // Unique identifier (MSK: ARN, OSK: user ID)
	BootstrapServers []string // Bootstrap server addresses
}

ClusterIdentifier uniquely identifies a cluster within a source

type ClusterScanResult

type ClusterScanResult struct {
	Identifier         ClusterIdentifier
	KafkaAdminInfo     *types.KafkaAdminClientInformation
	SourceSpecificData interface{} // MSK: AWSClientInformation, OSK: OSKClusterMetadata
}

ClusterScanResult contains scan results for a single cluster

type ScanOptions

type ScanOptions struct {
	SkipTopics         bool
	SkipACLs           bool
	SkipConsumerGroups bool
	// State is the existing kcp state. Required for MSK scanning (broker addresses
	// come from prior kcp discover output). Ignored by OSK.
	State *types.State
}

ScanOptions contains options for scanning

type ScanResult

type ScanResult struct {
	SourceType types.SourceType
	Clusters   []ClusterScanResult
}

ScanResult contains the results of scanning a source

type Source

type Source interface {
	// Type returns the source type (msk or osk)
	Type() types.SourceType

	// LoadCredentials loads authentication credentials from a file
	LoadCredentials(credentialsPath string) error

	// Scan performs discovery/scanning of the source clusters
	Scan(ctx context.Context, opts ScanOptions) (*ScanResult, error)

	// GetClusters returns the list of clusters available to scan
	GetClusters() []ClusterIdentifier
}

Source represents a Kafka source (MSK or OSK) that can be scanned

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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