discover

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 24 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiscoverCmd

func NewDiscoverCmd() *cobra.Command

Types

type ClusterDiscoverer

type ClusterDiscoverer struct {
	// contains filtered or unexported fields
}

func (*ClusterDiscoverer) Discover

func (cd *ClusterDiscoverer) Discover(ctx context.Context, clusterArn, region string, skipTopics bool, skipMetrics bool, metricsGranularity string) (*types.DiscoveredCluster, error)

type ClusterDiscovererEC2Service

type ClusterDiscovererEC2Service interface {
	DescribeSubnets(ctx context.Context, subnetIds []string) (*ec2.DescribeSubnetsOutput, error)
}

type ClusterDiscovererMSKService

type ClusterDiscovererMSKService interface {
	DescribeClusterV2(ctx context.Context, clusterArn string) (*kafka.DescribeClusterV2Output, error)
	GetBootstrapBrokers(ctx context.Context, clusterArn string) (*kafka.GetBootstrapBrokersOutput, error)
	ListClientVpcConnections(ctx context.Context, clusterArn string, maxResults int32) ([]kafkatypes.ClientVpcConnection, error)
	ListClusterOperationsV2(ctx context.Context, clusterArn string, maxResults int32) ([]kafkatypes.ClusterOperationV2Summary, error)
	ListNodes(ctx context.Context, clusterArn string, maxResults int32) ([]kafkatypes.NodeInfo, error)
	ListScramSecrets(ctx context.Context, clusterArn string, maxResults int32) ([]string, error)
	GetClusterPolicy(ctx context.Context, clusterArn string) (*kafka.GetClusterPolicyOutput, error)
	GetCompatibleKafkaVersions(ctx context.Context, clusterArn string) (*kafka.GetCompatibleKafkaVersionsOutput, error)
	IsFetchFromFollowerEnabled(ctx context.Context, cluster kafkatypes.Cluster) (bool, error)
	GetTopicsWithConfigs(ctx context.Context, clusterArn string) ([]types.TopicDetails, error)
}

type ClusterDiscovererMetricService

type ClusterDiscovererMetricService interface {
	ProcessProvisionedCluster(ctx context.Context, cluster kafkatypes.Cluster, followerFetching bool, timeWindow types.CloudWatchTimeWindow) (*types.ClusterMetrics, error)
	ProcessServerlessCluster(ctx context.Context, cluster kafkatypes.Cluster, timeWindow types.CloudWatchTimeWindow) (*types.ClusterMetrics, error)
}

type Discoverer

type Discoverer struct {
	// contains filtered or unexported fields
}

func NewDiscoverer

func NewDiscoverer(opts DiscovererOpts) *Discoverer

func (*Discoverer) Run

func (d *Discoverer) Run() error

type DiscovererOpts

type DiscovererOpts struct {
	Regions            []string
	SkipCosts          bool
	SkipMetrics        bool
	SkipTopics         bool
	State              *types.State
	Credentials        *types.Credentials
	MetricsGranularity string
	ClusterArns        []string
}

type RegionDiscoverer

type RegionDiscoverer struct {
	// contains filtered or unexported fields
}

func NewRegionDiscoverer

func NewRegionDiscoverer(mskService RegionDiscovererMSKService, costService RegionDiscovererCostService) *RegionDiscoverer

func (*RegionDiscoverer) Discover

func (rd *RegionDiscoverer) Discover(ctx context.Context, region string, skipCosts bool) (*types.DiscoveredRegion, error)

type RegionDiscovererCostService

type RegionDiscovererCostService interface {
	GetCostsForTimeRange(ctx context.Context, region string, startDate time.Time, endDate time.Time, granularity costexplorertypes.Granularity, tags map[string][]string) (types.CostInformation, error)
}

type RegionDiscovererMSKService

type RegionDiscovererMSKService interface {
	ListClusters(ctx context.Context, maxResults int32) ([]kafkatypes.Cluster, error)
	GetConfigurations(ctx context.Context, maxResults int32) ([]kafka.DescribeConfigurationRevisionOutput, error)
}

Jump to

Keyboard shortcuts

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