Documentation ¶
Index ¶
- func FindAutoScaleGroups(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindBatchComputeEnvironments(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindBatchJobQueues(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindCloudWatchLogGroups(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindDbInstances(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindDbSnapshots(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindDynamodbTables(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEbsCCVolumes(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEc2CCInstances(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEc2Instances(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEc2Snapshots(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEc2Volumes(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEc2Vpcs(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEcsClusters(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEcsServices(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEfsFileSystems(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEksClusters(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEmrClusters(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEmrServerlessApplications(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindEmrServerlessJobRuns(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindGlueDatabases(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindGlueJobs(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindGlueTables(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindIamUsers(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindLambdaFunctions(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindLoadBalancers(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindRoute53HostedZones(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindS3Buckets(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindS3CCBuckets(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindSecretManagerSecrets(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindSnsTopics(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- func FindSqsQueues(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
- type RepoGateway
- func (e *RepoGateway) FindAll(resourceType cfg.ResourceType) (items []service.EntityInterface, err error)
- func (e RepoGateway) GetAccountID() ptypes.AwsAccountID
- func (e RepoGateway) GetClient() *v2.Client
- func (e *RepoGateway) GetContext() context.Context
- func (e RepoGateway) GetRegion() ptypes.AwsRegion
- type RepoGatewayCached
- type RepoGatewayInterface
- type RepoGatewayPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAutoScaleGroups ¶
FindAutoScaleGroups returns a list of Auto Scaling groups
func FindBatchComputeEnvironments ¶
func FindBatchComputeEnvironments(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
FindBatchComputeEnvironments returns a list of Batch compute environments
func FindBatchJobQueues ¶
FindBatchJobQueues returns a list of Batch job queues
func FindCloudWatchLogGroups ¶
func FindCloudWatchLogGroups(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
FindCloudWatchLogGroups returns a list of CloudWatch log groups
func FindDbInstances ¶
FindDbInstances returns a list of RDS instances
func FindDbSnapshots ¶
FindDbSnapshots returns a list of RDS snapshots
func FindDynamodbTables ¶
FindDynamodbTables returns a list of DynamoDB tables
func FindEbsCCVolumes ¶
FindEbsCCVolumes returns a list of EBS volumes
func FindEc2CCInstances ¶
FindEc2CCInstances returns a list of EC2 instances
func FindEc2Instances ¶
FindEc2Instances returns a list of EC2 instances
func FindEc2Snapshots ¶
FindEc2Snapshots returns a list of EBS snapshots
func FindEc2Volumes ¶
FindEc2Volumes returns a list of EBS volumes
func FindEc2Vpcs ¶
FindEc2Vpcs returns a list of VPC
func FindEcsClusters ¶
FindEcsClusters returns a list of ECS clusters
func FindEcsServices ¶
FindEcsServices returns a list of ECS services
func FindEfsFileSystems ¶
FindEfsFileSystems returns a list of EFS file systems
func FindEksClusters ¶
FindEksClusters returns a list of EKS clusters
func FindEmrClusters ¶
FindEmrClusters returns a list of EMR clusters
func FindEmrServerlessApplications ¶
func FindEmrServerlessApplications(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
FindEmrServerlessApplications returns a list of EMR serverless applications
func FindEmrServerlessJobRuns ¶
func FindEmrServerlessJobRuns(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
FindEmrServerlessJobRuns returns a list of EMR serverless job runs
func FindGlueDatabases ¶
FindGlueDatabases returns a list of Glue databases
func FindGlueJobs ¶
FindGlueJobs returns a list of Glue jobs
func FindGlueTables ¶
FindGlueTables returns a list of Glue tables
func FindIamUsers ¶
FindIamUsers returns a list of IAM users
func FindLambdaFunctions ¶
FindLambdaFunctions returns a list of Lambda functions
func FindLoadBalancers ¶
FindLoadBalancers returns a list of Load Balancers
func FindRoute53HostedZones ¶
func FindRoute53HostedZones(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
FindRoute53HostedZones returns a list of Route 53 hosted zones
func FindS3Buckets ¶
FindS3Buckets returns a list of S3 buckets
func FindS3CCBuckets ¶
FindS3CCBuckets returns a list of S3 Buckets
func FindSecretManagerSecrets ¶
func FindSecretManagerSecrets(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)
FindSecretManagerSecrets returns a list of Secrets Manager secrets
func FindSnsTopics ¶
FindSnsTopics returns a list of SNS topics
func FindSqsQueues ¶
FindSqsQueues returns a list of SQS queues
Types ¶
type RepoGateway ¶
type RepoGateway struct {
// contains filtered or unexported fields
}
RepoGateway is proxy to aws repositories to get all aws resources
func NewRepoGateway ¶
func NewRepoGateway(ctx context.Context, client *v2.Client) *RepoGateway
func (*RepoGateway) FindAll ¶
func (e *RepoGateway) FindAll(resourceType cfg.ResourceType) (items []service.EntityInterface, err error)
func (RepoGateway) GetAccountID ¶
func (e RepoGateway) GetAccountID() ptypes.AwsAccountID
func (RepoGateway) GetClient ¶
func (e RepoGateway) GetClient() *v2.Client
func (*RepoGateway) GetContext ¶
func (e *RepoGateway) GetContext() context.Context
func (RepoGateway) GetRegion ¶
func (e RepoGateway) GetRegion() ptypes.AwsRegion
type RepoGatewayCached ¶
type RepoGatewayCached struct { RepoGatewayInterface // contains filtered or unexported fields }
func NewRepoGatewayCached ¶
func NewRepoGatewayCached(gw RepoGatewayInterface, cache *cache.DataCache) *RepoGatewayCached
func (*RepoGatewayCached) FindAll ¶
func (e *RepoGatewayCached) FindAll(resourceType types.ResourceType) (items []service.EntityInterface, err error)
FindAll a wrapper of RepoGateway method with reading and writing results into a cache
type RepoGatewayInterface ¶
type RepoGatewayInterface interface { GetAccountID() ptypes.AwsAccountID GetRegion() ptypes.AwsRegion GetClient() *v2.Client GetContext() context.Context FindAll(resourceType cfg.ResourceType) ([]service.EntityInterface, error) }
type RepoGatewayPool ¶
type RepoGatewayPool struct {
// contains filtered or unexported fields
}
func NewRepoGatewayPool ¶
func NewRepoGatewayPool(ctx context.Context, clients []*v2.Client) *RepoGatewayPool
func (*RepoGatewayPool) List ¶
func (e *RepoGatewayPool) List(resourceType cfg.ResourceType) []RepoGatewayInterface
func (*RepoGatewayPool) WithCache ¶
func (e *RepoGatewayPool) WithCache(cache *cache.DataCache) *RepoGatewayPool