gateway

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAutoScaleGroups

func FindAutoScaleGroups(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

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

func FindBatchJobQueues(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

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

func FindDbInstances(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindDbInstances returns a list of RDS instances

func FindDbSnapshots

func FindDbSnapshots(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindDbSnapshots returns a list of RDS snapshots

func FindDynamodbTables

func FindDynamodbTables(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindDynamodbTables returns a list of DynamoDB tables

func FindEbsCCVolumes

func FindEbsCCVolumes(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindEbsCCVolumes returns a list of EBS volumes

func FindEc2CCInstances

func FindEc2CCInstances(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindEc2CCInstances returns a list of EC2 instances

func FindEc2Instances

func FindEc2Instances(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindEc2Instances returns a list of EC2 instances

func FindEc2Snapshots

func FindEc2Snapshots(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindEc2Snapshots returns a list of EBS snapshots

func FindEc2Volumes

func FindEc2Volumes(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindEc2Volumes returns a list of EBS volumes

func FindEc2Vpcs

func FindEc2Vpcs(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindEc2Vpcs returns a list of VPC

func FindEcsClusters

func FindEcsClusters(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindEcsClusters returns a list of ECS clusters

func FindEcsServices

func FindEcsServices(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindEcsServices returns a list of ECS services

func FindEfsFileSystems

func FindEfsFileSystems(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindEfsFileSystems returns a list of EFS file systems

func FindEksClusters

func FindEksClusters(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindEksClusters returns a list of EKS clusters

func FindEmrClusters

func FindEmrClusters(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

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

func FindGlueDatabases(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindGlueDatabases returns a list of Glue databases

func FindGlueJobs

func FindGlueJobs(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindGlueJobs returns a list of Glue jobs

func FindGlueTables

func FindGlueTables(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindGlueTables returns a list of Glue tables

func FindIamUsers

func FindIamUsers(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindIamUsers returns a list of IAM users

func FindLambdaFunctions

func FindLambdaFunctions(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindLambdaFunctions returns a list of Lambda functions

func FindLoadBalancers

func FindLoadBalancers(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

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

func FindS3Buckets(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindS3Buckets returns a list of S3 buckets

func FindS3CCBuckets

func FindS3CCBuckets(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

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

func FindSnsTopics(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

FindSnsTopics returns a list of SNS topics

func FindSqsQueues

func FindSqsQueues(ctx context.Context, client *v2.Client) ([]service.EntityInterface, error)

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

Jump to

Keyboard shortcuts

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