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 EC2Service ¶ added in v0.2.2
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)
}
Click to show internal directories.
Click to hide internal directories.