Versions in this module Expand all Collapse all v0 v0.38.0 Jun 12, 2023 Changes in this version + func NewApiGatewayRepository(session *session.Session, c cache.Cache) *apigatewayRepository + func NewApiGatewayV2Repository(session *session.Session, c cache.Cache) *apigatewayv2Repository + func NewAppAutoScalingRepository(session *session.Session, c cache.Cache) *appAutoScalingRepository + func NewAutoScalingRepository(session *session.Session, c cache.Cache) *autoScalingRepository + func NewCloudformationRepository(session *session.Session, c cache.Cache) *cloudformationRepository + func NewCloudfrontRepository(session *session.Session, c cache.Cache) *cloudfrontRepository + func NewCloudtrailRepository(session *session.Session, c cache.Cache) *cloudtrailRepository + func NewDynamoDBRepository(session *session.Session, c cache.Cache) *dynamoDBRepository + func NewEC2Repository(session *session.Session, c cache.Cache) *ec2Repository + func NewECRRepository(session *session.Session, c cache.Cache) *ecrRepository + func NewELBRepository(session *session.Session, c cache.Cache) *elbRepository + func NewELBV2Repository(session *session.Session, c cache.Cache) *elbv2Repository + func NewElastiCacheRepository(session *session.Session, c cache.Cache) *elasticacheRepository + func NewIAMRepository(session *session.Session, c cache.Cache) *iamRepository + func NewKMSRepository(session *session.Session, c cache.Cache) *kmsRepository + func NewLambdaRepository(session *session.Session, c cache.Cache) *lambdaRepository + func NewRDSRepository(session *session.Session, c cache.Cache) *rdsRepository + func NewRoute53Repository(session *session.Session, c cache.Cache) *route53Repository + func NewS3ControlRepository(factory client.AwsClientFactoryInterface, c cache.Cache) *s3ControlRepository + func NewS3Repository(factory client.AwsClientFactoryInterface, c cache.Cache) *s3Repository + func NewSNSRepository(session *session.Session, c cache.Cache) *snsRepository + func NewSQSRepository(session *session.Session, c cache.Cache) *sqsRepository + type ApiGatewayRepository interface + GetAccount func() (*apigateway.Account, error) + ListAllApiKeys func() ([]*apigateway.ApiKey, error) + ListAllDomainNameBasePathMappings func(string) ([]*apigateway.BasePathMapping, error) + ListAllDomainNames func() ([]*apigateway.DomainName, error) + ListAllRestApiAuthorizers func(string) ([]*apigateway.Authorizer, error) + ListAllRestApiGatewayResponses func(string) ([]*apigateway.UpdateGatewayResponseOutput, error) + ListAllRestApiModels func(string) ([]*apigateway.Model, error) + ListAllRestApiRequestValidators func(string) ([]*apigateway.UpdateRequestValidatorOutput, error) + ListAllRestApiResources func(string) ([]*apigateway.Resource, error) + ListAllRestApiStages func(string) ([]*apigateway.Stage, error) + ListAllRestApis func() ([]*apigateway.RestApi, error) + ListAllVpcLinks func() ([]*apigateway.UpdateVpcLinkOutput, error) + type ApiGatewayV2Repository interface + ListAllApiAuthorizers func(string) ([]*apigatewayv2.Authorizer, error) + ListAllApiDeployments func(apiId *string) ([]*apigatewayv2.Deployment, error) + ListAllApiIntegrationResponses func(string, string) ([]*apigatewayv2.IntegrationResponse, error) + ListAllApiIntegrations func(string) ([]*apigatewayv2.Integration, error) + ListAllApiMappings func(string) ([]*apigatewayv2.ApiMapping, error) + ListAllApiModels func(string) ([]*apigatewayv2.Model, error) + ListAllApiRouteResponses func(string, string) ([]*apigatewayv2.RouteResponse, error) + ListAllApiRoutes func(apiId *string) ([]*apigatewayv2.Route, error) + ListAllApiStages func(string) ([]*apigatewayv2.Stage, error) + ListAllApis func() ([]*apigatewayv2.Api, error) + ListAllVpcLinks func() ([]*apigatewayv2.VpcLink, error) + type AppAutoScalingRepository interface + DescribeScalableTargets func(string) ([]*applicationautoscaling.ScalableTarget, error) + DescribeScalingPolicies func(string) ([]*applicationautoscaling.ScalingPolicy, error) + DescribeScheduledActions func(string) ([]*applicationautoscaling.ScheduledAction, error) + ServiceNamespaceValues func() []string + type AttachedGroupPolicy struct + GroupName string + type AttachedRolePolicy struct + RoleName string + type AttachedUserPolicy struct + UserName string + type AutoScalingRepository interface + DescribeLaunchConfigurations func() ([]*autoscaling.LaunchConfiguration, error) + type CloudformationRepository interface + ListAllStacks func() ([]*cloudformation.Stack, error) + type CloudfrontRepository interface + ListAllDistributions func() ([]*cloudfront.DistributionSummary, error) + type CloudtrailRepository interface + ListAllTrails func() ([]*cloudtrail.TrailInfo, error) + type DynamoDBRepository interface + ListAllTables func() ([]*string, error) + type EC2Repository interface + DescribeLaunchTemplates func() ([]*ec2.LaunchTemplate, error) + IsEbsEncryptionEnabledByDefault func() (bool, error) + ListAllAddresses func() ([]*ec2.Address, error) + ListAllAddressesAssociation func() ([]*ec2.Address, error) + ListAllImages func() ([]*ec2.Image, error) + ListAllInstances func() ([]*ec2.Instance, error) + ListAllInternetGateways func() ([]*ec2.InternetGateway, error) + ListAllKeyPairs func() ([]*ec2.KeyPairInfo, error) + ListAllNatGateways func() ([]*ec2.NatGateway, error) + ListAllNetworkACLs func() ([]*ec2.NetworkAcl, error) + ListAllRouteTables func() ([]*ec2.RouteTable, error) + ListAllSecurityGroups func() ([]*ec2.SecurityGroup, []*ec2.SecurityGroup, error) + ListAllSnapshots func() ([]*ec2.Snapshot, error) + ListAllSubnets func() ([]*ec2.Subnet, []*ec2.Subnet, error) + ListAllVPCs func() ([]*ec2.Vpc, []*ec2.Vpc, error) + ListAllVolumes func() ([]*ec2.Volume, error) + type ECRRepository interface + GetRepositoryPolicy func(*ecr.Repository) (*ecr.GetRepositoryPolicyOutput, error) + ListAllRepositories func() ([]*ecr.Repository, error) + type ELBRepository interface + ListAllLoadBalancers func() ([]*elb.LoadBalancerDescription, error) + type ELBV2Repository interface + ListAllLoadBalancerListeners func(string) ([]*elbv2.Listener, error) + ListAllLoadBalancers func() ([]*elbv2.LoadBalancer, error) + type ElastiCacheRepository interface + ListAllCacheClusters func() ([]*elasticache.CacheCluster, error) + type IAMRepository interface + ListAllAccessKeys func([]*iam.User) ([]*iam.AccessKeyMetadata, error) + ListAllGroupPolicies func([]*iam.Group) ([]string, error) + ListAllGroupPolicyAttachments func([]*iam.Group) ([]*AttachedGroupPolicy, error) + ListAllGroups func() ([]*iam.Group, error) + ListAllPolicies func() ([]*iam.Policy, error) + ListAllRolePolicies func([]*iam.Role) ([]RolePolicy, error) + ListAllRolePolicyAttachments func([]*iam.Role) ([]*AttachedRolePolicy, error) + ListAllRoles func() ([]*iam.Role, error) + ListAllUserPolicies func([]*iam.User) ([]string, error) + ListAllUserPolicyAttachments func([]*iam.User) ([]*AttachedUserPolicy, error) + ListAllUsers func() ([]*iam.User, error) + type KMSRepository interface + ListAllAliases func() ([]*kms.AliasListEntry, error) + ListAllKeys func() ([]*kms.KeyListEntry, error) + type LambdaRepository interface + ListAllLambdaEventSourceMappings func() ([]*lambda.EventSourceMappingConfiguration, error) + ListAllLambdaFunctions func() ([]*lambda.FunctionConfiguration, error) + type MockApiGatewayRepository struct + func NewMockApiGatewayRepository(t mockConstructorTestingTNewMockApiGatewayRepository) *MockApiGatewayRepository + func (_m *MockApiGatewayRepository) GetAccount() (*apigateway.Account, error) + func (_m *MockApiGatewayRepository) ListAllApiKeys() ([]*apigateway.ApiKey, error) + func (_m *MockApiGatewayRepository) ListAllDomainNameBasePathMappings(_a0 string) ([]*apigateway.BasePathMapping, error) + func (_m *MockApiGatewayRepository) ListAllDomainNames() ([]*apigateway.DomainName, error) + func (_m *MockApiGatewayRepository) ListAllRestApiAuthorizers(_a0 string) ([]*apigateway.Authorizer, error) + func (_m *MockApiGatewayRepository) ListAllRestApiGatewayResponses(_a0 string) ([]*apigateway.UpdateGatewayResponseOutput, error) + func (_m *MockApiGatewayRepository) ListAllRestApiModels(_a0 string) ([]*apigateway.Model, error) + func (_m *MockApiGatewayRepository) ListAllRestApiRequestValidators(_a0 string) ([]*apigateway.UpdateRequestValidatorOutput, error) + func (_m *MockApiGatewayRepository) ListAllRestApiResources(_a0 string) ([]*apigateway.Resource, error) + func (_m *MockApiGatewayRepository) ListAllRestApiStages(_a0 string) ([]*apigateway.Stage, error) + func (_m *MockApiGatewayRepository) ListAllRestApis() ([]*apigateway.RestApi, error) + func (_m *MockApiGatewayRepository) ListAllVpcLinks() ([]*apigateway.UpdateVpcLinkOutput, error) + type MockApiGatewayV2Repository struct + func NewMockApiGatewayV2Repository(t mockConstructorTestingTNewMockApiGatewayV2Repository) *MockApiGatewayV2Repository + func (_m *MockApiGatewayV2Repository) ListAllApiAuthorizers(_a0 string) ([]*apigatewayv2.Authorizer, error) + func (_m *MockApiGatewayV2Repository) ListAllApiDeployments(apiId *string) ([]*apigatewayv2.Deployment, error) + func (_m *MockApiGatewayV2Repository) ListAllApiIntegrationResponses(_a0 string, _a1 string) ([]*apigatewayv2.IntegrationResponse, error) + func (_m *MockApiGatewayV2Repository) ListAllApiIntegrations(_a0 string) ([]*apigatewayv2.Integration, error) + func (_m *MockApiGatewayV2Repository) ListAllApiMappings(_a0 string) ([]*apigatewayv2.ApiMapping, error) + func (_m *MockApiGatewayV2Repository) ListAllApiModels(_a0 string) ([]*apigatewayv2.Model, error) + func (_m *MockApiGatewayV2Repository) ListAllApiRouteResponses(_a0 string, _a1 string) ([]*apigatewayv2.RouteResponse, error) + func (_m *MockApiGatewayV2Repository) ListAllApiRoutes(apiId *string) ([]*apigatewayv2.Route, error) + func (_m *MockApiGatewayV2Repository) ListAllApiStages(_a0 string) ([]*apigatewayv2.Stage, error) + func (_m *MockApiGatewayV2Repository) ListAllApis() ([]*apigatewayv2.Api, error) + func (_m *MockApiGatewayV2Repository) ListAllVpcLinks() ([]*apigatewayv2.VpcLink, error) + type MockAppAutoScalingRepository struct + func NewMockAppAutoScalingRepository(t mockConstructorTestingTNewMockAppAutoScalingRepository) *MockAppAutoScalingRepository + func (_m *MockAppAutoScalingRepository) DescribeScalableTargets(_a0 string) ([]*applicationautoscaling.ScalableTarget, error) + func (_m *MockAppAutoScalingRepository) DescribeScalingPolicies(_a0 string) ([]*applicationautoscaling.ScalingPolicy, error) + func (_m *MockAppAutoScalingRepository) DescribeScheduledActions(_a0 string) ([]*applicationautoscaling.ScheduledAction, error) + func (_m *MockAppAutoScalingRepository) ServiceNamespaceValues() []string + type MockAutoScalingRepository struct + func NewMockAutoScalingRepository(t mockConstructorTestingTNewMockAutoScalingRepository) *MockAutoScalingRepository + func (_m *MockAutoScalingRepository) DescribeLaunchConfigurations() ([]*autoscaling.LaunchConfiguration, error) + type MockCloudformationRepository struct + func NewMockCloudformationRepository(t mockConstructorTestingTNewMockCloudformationRepository) *MockCloudformationRepository + func (_m *MockCloudformationRepository) ListAllStacks() ([]*cloudformation.Stack, error) + type MockCloudfrontRepository struct + func NewMockCloudfrontRepository(t mockConstructorTestingTNewMockCloudfrontRepository) *MockCloudfrontRepository + func (_m *MockCloudfrontRepository) ListAllDistributions() ([]*cloudfront.DistributionSummary, error) + type MockDynamoDBRepository struct + func NewMockDynamoDBRepository(t mockConstructorTestingTNewMockDynamoDBRepository) *MockDynamoDBRepository + func (_m *MockDynamoDBRepository) ListAllTables() ([]*string, error) + type MockEC2Repository struct + func NewMockEC2Repository(t mockConstructorTestingTNewMockEC2Repository) *MockEC2Repository + func (_m *MockEC2Repository) DescribeLaunchTemplates() ([]*ec2.LaunchTemplate, error) + func (_m *MockEC2Repository) IsEbsEncryptionEnabledByDefault() (bool, error) + func (_m *MockEC2Repository) ListAllAddresses() ([]*ec2.Address, error) + func (_m *MockEC2Repository) ListAllAddressesAssociation() ([]*ec2.Address, error) + func (_m *MockEC2Repository) ListAllImages() ([]*ec2.Image, error) + func (_m *MockEC2Repository) ListAllInstances() ([]*ec2.Instance, error) + func (_m *MockEC2Repository) ListAllInternetGateways() ([]*ec2.InternetGateway, error) + func (_m *MockEC2Repository) ListAllKeyPairs() ([]*ec2.KeyPairInfo, error) + func (_m *MockEC2Repository) ListAllNatGateways() ([]*ec2.NatGateway, error) + func (_m *MockEC2Repository) ListAllNetworkACLs() ([]*ec2.NetworkAcl, error) + func (_m *MockEC2Repository) ListAllRouteTables() ([]*ec2.RouteTable, error) + func (_m *MockEC2Repository) ListAllSecurityGroups() ([]*ec2.SecurityGroup, []*ec2.SecurityGroup, error) + func (_m *MockEC2Repository) ListAllSnapshots() ([]*ec2.Snapshot, error) + func (_m *MockEC2Repository) ListAllSubnets() ([]*ec2.Subnet, []*ec2.Subnet, error) + func (_m *MockEC2Repository) ListAllVPCs() ([]*ec2.Vpc, []*ec2.Vpc, error) + func (_m *MockEC2Repository) ListAllVolumes() ([]*ec2.Volume, error) + type MockECRRepository struct + func NewMockECRRepository(t mockConstructorTestingTNewMockECRRepository) *MockECRRepository + func (_m *MockECRRepository) GetRepositoryPolicy(_a0 *ecr.Repository) (*ecr.GetRepositoryPolicyOutput, error) + func (_m *MockECRRepository) ListAllRepositories() ([]*ecr.Repository, error) + type MockELBRepository struct + func NewMockELBRepository(t mockConstructorTestingTNewMockELBRepository) *MockELBRepository + func (_m *MockELBRepository) ListAllLoadBalancers() ([]*elb.LoadBalancerDescription, error) + type MockELBV2Repository struct + func NewMockELBV2Repository(t mockConstructorTestingTNewMockELBV2Repository) *MockELBV2Repository + func (_m *MockELBV2Repository) ListAllLoadBalancerListeners(_a0 string) ([]*elbv2.Listener, error) + func (_m *MockELBV2Repository) ListAllLoadBalancers() ([]*elbv2.LoadBalancer, error) + type MockElastiCacheRepository struct + func NewMockElastiCacheRepository(t mockConstructorTestingTNewMockElastiCacheRepository) *MockElastiCacheRepository + func (_m *MockElastiCacheRepository) ListAllCacheClusters() ([]*elasticache.CacheCluster, error) + type MockIAMRepository struct + func NewMockIAMRepository(t mockConstructorTestingTNewMockIAMRepository) *MockIAMRepository + func (_m *MockIAMRepository) ListAllAccessKeys(_a0 []*iam.User) ([]*iam.AccessKeyMetadata, error) + func (_m *MockIAMRepository) ListAllGroupPolicies(_a0 []*iam.Group) ([]string, error) + func (_m *MockIAMRepository) ListAllGroupPolicyAttachments(_a0 []*iam.Group) ([]*AttachedGroupPolicy, error) + func (_m *MockIAMRepository) ListAllGroups() ([]*iam.Group, error) + func (_m *MockIAMRepository) ListAllPolicies() ([]*iam.Policy, error) + func (_m *MockIAMRepository) ListAllRolePolicies(_a0 []*iam.Role) ([]RolePolicy, error) + func (_m *MockIAMRepository) ListAllRolePolicyAttachments(_a0 []*iam.Role) ([]*AttachedRolePolicy, error) + func (_m *MockIAMRepository) ListAllRoles() ([]*iam.Role, error) + func (_m *MockIAMRepository) ListAllUserPolicies(_a0 []*iam.User) ([]string, error) + func (_m *MockIAMRepository) ListAllUserPolicyAttachments(_a0 []*iam.User) ([]*AttachedUserPolicy, error) + func (_m *MockIAMRepository) ListAllUsers() ([]*iam.User, error) + type MockKMSRepository struct + func NewMockKMSRepository(t mockConstructorTestingTNewMockKMSRepository) *MockKMSRepository + func (_m *MockKMSRepository) ListAllAliases() ([]*kms.AliasListEntry, error) + func (_m *MockKMSRepository) ListAllKeys() ([]*kms.KeyListEntry, error) + type MockLambdaRepository struct + func NewMockLambdaRepository(t mockConstructorTestingTNewMockLambdaRepository) *MockLambdaRepository + func (_m *MockLambdaRepository) ListAllLambdaEventSourceMappings() ([]*lambda.EventSourceMappingConfiguration, error) + func (_m *MockLambdaRepository) ListAllLambdaFunctions() ([]*lambda.FunctionConfiguration, error) + type MockRDSRepository struct + func NewMockRDSRepository(t mockConstructorTestingTNewMockRDSRepository) *MockRDSRepository + func (_m *MockRDSRepository) ListAllDBClusters() ([]*rds.DBCluster, error) + func (_m *MockRDSRepository) ListAllDBInstances() ([]*rds.DBInstance, error) + func (_m *MockRDSRepository) ListAllDBSubnetGroups() ([]*rds.DBSubnetGroup, error) + type MockRoute53Repository struct + func NewMockRoute53Repository(t mockConstructorTestingTNewMockRoute53Repository) *MockRoute53Repository + func (_m *MockRoute53Repository) ListAllHealthChecks() ([]*route53.HealthCheck, error) + func (_m *MockRoute53Repository) ListAllZones() ([]*route53.HostedZone, error) + func (_m *MockRoute53Repository) ListRecordsForZone(zoneId string) ([]*route53.ResourceRecordSet, error) + type MockS3ControlRepository struct + func NewMockS3ControlRepository(t mockConstructorTestingTNewMockS3ControlRepository) *MockS3ControlRepository + func (_m *MockS3ControlRepository) DescribeAccountPublicAccessBlock(accountID string) (*s3control.PublicAccessBlockConfiguration, error) + type MockS3Repository struct + func NewMockS3Repository(t mockConstructorTestingTNewMockS3Repository) *MockS3Repository + func (_m *MockS3Repository) GetBucketLocation(bucketName string) (string, error) + func (_m *MockS3Repository) GetBucketNotification(bucketName string, region string) (*s3.NotificationConfiguration, error) + func (_m *MockS3Repository) GetBucketPolicy(bucketName string, region string) (*string, error) + func (_m *MockS3Repository) GetBucketPublicAccessBlock(bucketName string, region string) (*s3.PublicAccessBlockConfiguration, error) + func (_m *MockS3Repository) ListAllBuckets() ([]*s3.Bucket, error) + func (_m *MockS3Repository) ListBucketAnalyticsConfigurations(bucket *s3.Bucket, region string) ([]*s3.AnalyticsConfiguration, error) + func (_m *MockS3Repository) ListBucketInventoryConfigurations(bucket *s3.Bucket, region string) ([]*s3.InventoryConfiguration, error) + func (_m *MockS3Repository) ListBucketMetricsConfigurations(bucket *s3.Bucket, region string) ([]*s3.MetricsConfiguration, error) + type MockSNSRepository struct + func NewMockSNSRepository(t mockConstructorTestingTNewMockSNSRepository) *MockSNSRepository + func (_m *MockSNSRepository) ListAllSubscriptions() ([]*sns.Subscription, error) + func (_m *MockSNSRepository) ListAllTopics() ([]*sns.Topic, error) + type MockSQSRepository struct + func NewMockSQSRepository(t mockConstructorTestingTNewMockSQSRepository) *MockSQSRepository + func (_m *MockSQSRepository) GetQueueAttributes(url string) (*sqs.GetQueueAttributesOutput, error) + func (_m *MockSQSRepository) ListAllQueues() ([]*string, error) + type RDSRepository interface + ListAllDBClusters func() ([]*rds.DBCluster, error) + ListAllDBInstances func() ([]*rds.DBInstance, error) + ListAllDBSubnetGroups func() ([]*rds.DBSubnetGroup, error) + type RolePolicy struct + Policy string + RoleName string + type Route53Repository interface + ListAllHealthChecks func() ([]*route53.HealthCheck, error) + ListAllZones func() ([]*route53.HostedZone, error) + ListRecordsForZone func(zoneId string) ([]*route53.ResourceRecordSet, error) + type S3ControlRepository interface + DescribeAccountPublicAccessBlock func(accountID string) (*s3control.PublicAccessBlockConfiguration, error) + type S3Repository interface + GetBucketLocation func(bucketName string) (string, error) + GetBucketNotification func(bucketName, region string) (*s3.NotificationConfiguration, error) + GetBucketPolicy func(bucketName, region string) (*string, error) + GetBucketPublicAccessBlock func(bucketName, region string) (*s3.PublicAccessBlockConfiguration, error) + ListAllBuckets func() ([]*s3.Bucket, error) + ListBucketAnalyticsConfigurations func(bucket *s3.Bucket, region string) ([]*s3.AnalyticsConfiguration, error) + ListBucketInventoryConfigurations func(bucket *s3.Bucket, region string) ([]*s3.InventoryConfiguration, error) + ListBucketMetricsConfigurations func(bucket *s3.Bucket, region string) ([]*s3.MetricsConfiguration, error) + type SNSRepository interface + ListAllSubscriptions func() ([]*sns.Subscription, error) + ListAllTopics func() ([]*sns.Topic, error) + type SQSRepository interface + GetQueueAttributes func(url string) (*sqs.GetQueueAttributesOutput, error) + ListAllQueues func() ([]*string, error)