Documentation
¶
Index ¶
- func NewDiscoverCmd() *cobra.Command
- type ClusterDiscoverer
- type ClusterDiscovererEC2Service
- type ClusterDiscovererMSKConnectService
- type ClusterDiscovererMSKService
- type ClusterDiscovererMetricService
- type Discoverer
- type DiscovererOpts
- type RegionDiscoverer
- type RegionDiscovererCostService
- type RegionDiscovererMSKService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDiscoverCmd ¶
Types ¶
type ClusterDiscoverer ¶
type ClusterDiscoverer struct {
// contains filtered or unexported fields
}
func NewClusterDiscoverer ¶
func NewClusterDiscoverer(mskService ClusterDiscovererMSKService, ec2Service ClusterDiscovererEC2Service, metricService ClusterDiscovererMetricService, mskConnectService ClusterDiscovererMSKConnectService) ClusterDiscoverer
func (*ClusterDiscoverer) Discover ¶
func (cd *ClusterDiscoverer) Discover(ctx context.Context, clusterArn, region string) (*types.DiscoveredCluster, error)
type ClusterDiscovererMSKConnectService ¶
type ClusterDiscovererMSKConnectService interface {
ListConnectors(ctx context.Context, params *kafkaconnect.ListConnectorsInput, optFns ...func(*kafkaconnect.Options)) (*kafkaconnect.ListConnectorsOutput, error)
DescribeConnector(ctx context.Context, params *kafkaconnect.DescribeConnectorInput, optFns ...func(*kafkaconnect.Options)) (*kafkaconnect.DescribeConnectorOutput, 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)
}
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
State *types.State
Credentials *types.Credentials
}
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) (*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)
}
Click to show internal directories.
Click to hide internal directories.