cluster

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterScanner

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

func NewClusterScanner

func NewClusterScanner(mskService MSKService, ec2Service EC2Service, kafkaService KafkaService, opts ClusterScannerOpts) *ClusterScanner

NewClusterScanner creates a new ClusterScanner instance.

func (*ClusterScanner) Run

func (cs *ClusterScanner) Run() error

func (*ClusterScanner) ScanCluster added in v0.2.3

func (cs *ClusterScanner) ScanCluster(ctx context.Context) (*types.ClusterInformation, error)

type ClusterScannerOpts

type ClusterScannerOpts struct {
	Region            string
	ClusterArn        string
	SkipKafka         bool
	AuthType          types.AuthType
	SASLScramUsername string
	SASLScramPassword string
	TLSCACert         string
	TLSClientCert     string
	TLSClientKey      string
}

type EC2Service added in v0.2.2

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

type KafkaService added in v0.2.7

type KafkaService interface {
	ScanKafkaResources(clusterInfo *types.ClusterInformation) error
}

type MSKService added in v0.2.1

type MSKService interface {
	GetBootstrapBrokers(ctx context.Context, clusterArn *string) (*kafka.GetBootstrapBrokersOutput, error)
	GetCompatibleKafkaVersions(ctx context.Context, clusterArn *string) (*kafka.GetCompatibleKafkaVersionsOutput, error)
	GetClusterPolicy(ctx context.Context, clusterArn *string) (*kafka.GetClusterPolicyOutput, error)
	DescribeClusterV2(ctx context.Context, clusterArn *string) (*kafka.DescribeClusterV2Output, error)
	ListClientVpcConnections(ctx context.Context, clusterArn *string) ([]kafkatypes.ClientVpcConnection, error)
	ListClusterOperationsV2(ctx context.Context, clusterArn *string) ([]kafkatypes.ClusterOperationV2Summary, error)
	ListNodes(ctx context.Context, clusterArn *string) ([]kafkatypes.NodeInfo, error)
	ListScramSecrets(ctx context.Context, clusterArn *string) ([]string, error)
}

Jump to

Keyboard shortcuts

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