Documentation ¶
Index ¶
- 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 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 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
- type ApiGatewayV2Repository
- type AppAutoScalingRepository
- type AttachedRolePolicy
- type AttachedUserPolicy
- type AutoScalingRepository
- type CloudformationRepository
- type CloudfrontRepository
- type DynamoDBRepository
- type EC2Repository
- type ECRRepository
- type ELBRepository
- type ELBV2Repository
- type ElastiCacheRepository
- type IAMRepository
- type KMSRepository
- type LambdaRepository
- type 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
- 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
- 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
- type MockCloudformationRepository
- type MockCloudfrontRepository
- type MockDynamoDBRepository
- type 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
- type MockELBRepository
- type MockELBV2Repository
- type MockElastiCacheRepository
- type MockIAMRepository
- func (_m *MockIAMRepository) ListAllAccessKeys(_a0 []*iam.User) ([]*iam.AccessKeyMetadata, error)
- func (_m *MockIAMRepository) ListAllGroupPolicies(_a0 []*iam.Group) ([]string, 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
- type MockLambdaRepository
- type MockRDSRepository
- type MockRoute53Repository
- type 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
- type MockSQSRepository
- type RDSRepository
- type RolePolicy
- type Route53Repository
- type S3Repository
- type SNSRepository
- type SQSRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApiGatewayRepository ¶
func NewCloudfrontRepository ¶
func NewDynamoDBRepository ¶
func NewEC2Repository ¶
func NewECRRepository ¶
func NewELBRepository ¶ added in v0.28.0
func NewELBV2Repository ¶ added in v0.27.0
func NewElastiCacheRepository ¶ added in v0.28.0
func NewIAMRepository ¶
func NewKMSRepository ¶
func NewLambdaRepository ¶
func NewRDSRepository ¶
func NewRoute53Repository ¶
func NewS3Repository ¶
func NewS3Repository(factory client.AwsClientFactoryInterface, c cache.Cache) *s3Repository
func NewSNSRepository ¶
Types ¶
type ApiGatewayRepository ¶
type ApiGatewayRepository interface { ListAllRestApis() ([]*apigateway.RestApi, error) GetAccount() (*apigateway.Account, error) ListAllApiKeys() ([]*apigateway.ApiKey, error) ListAllRestApiAuthorizers(string) ([]*apigateway.Authorizer, error) ListAllRestApiStages(string) ([]*apigateway.Stage, error) ListAllRestApiResources(string) ([]*apigateway.Resource, error) ListAllDomainNames() ([]*apigateway.DomainName, error) ListAllVpcLinks() ([]*apigateway.UpdateVpcLinkOutput, error) ListAllRestApiRequestValidators(string) ([]*apigateway.UpdateRequestValidatorOutput, error) ListAllDomainNameBasePathMappings(string) ([]*apigateway.BasePathMapping, error) ListAllRestApiModels(string) ([]*apigateway.Model, error) ListAllRestApiGatewayResponses(string) ([]*apigateway.UpdateGatewayResponseOutput, error) }
type ApiGatewayV2Repository ¶
type ApiGatewayV2Repository interface { ListAllApis() ([]*apigatewayv2.Api, error) ListAllApiRoutes(apiId *string) ([]*apigatewayv2.Route, error) ListAllApiDeployments(apiId *string) ([]*apigatewayv2.Deployment, error) ListAllVpcLinks() ([]*apigatewayv2.VpcLink, error) ListAllApiAuthorizers(string) ([]*apigatewayv2.Authorizer, error) ListAllApiIntegrations(string) ([]*apigatewayv2.Integration, error) ListAllApiModels(string) ([]*apigatewayv2.Model, error) ListAllApiStages(string) ([]*apigatewayv2.Stage, error) ListAllApiRouteResponses(string, string) ([]*apigatewayv2.RouteResponse, error) ListAllApiMappings(string) ([]*apigatewayv2.ApiMapping, error) ListAllApiIntegrationResponses(string, string) ([]*apigatewayv2.IntegrationResponse, error) }
type AppAutoScalingRepository ¶
type AppAutoScalingRepository interface { ServiceNamespaceValues() []string DescribeScalableTargets(string) ([]*applicationautoscaling.ScalableTarget, error) DescribeScalingPolicies(string) ([]*applicationautoscaling.ScalingPolicy, error) DescribeScheduledActions(string) ([]*applicationautoscaling.ScheduledAction, error) }
type AttachedRolePolicy ¶
type AttachedRolePolicy struct { iam.AttachedPolicy RoleName string }
type AttachedUserPolicy ¶
type AttachedUserPolicy struct { iam.AttachedPolicy UserName string }
type AutoScalingRepository ¶
type AutoScalingRepository interface {
DescribeLaunchConfigurations() ([]*autoscaling.LaunchConfiguration, error)
}
type CloudformationRepository ¶
type CloudformationRepository interface {
ListAllStacks() ([]*cloudformation.Stack, error)
}
type CloudfrontRepository ¶
type CloudfrontRepository interface {
ListAllDistributions() ([]*cloudfront.DistributionSummary, error)
}
type DynamoDBRepository ¶
type EC2Repository ¶
type EC2Repository interface { ListAllImages() ([]*ec2.Image, error) ListAllSnapshots() ([]*ec2.Snapshot, error) ListAllVolumes() ([]*ec2.Volume, error) ListAllAddresses() ([]*ec2.Address, error) ListAllAddressesAssociation() ([]*ec2.Address, error) ListAllInstances() ([]*ec2.Instance, error) ListAllKeyPairs() ([]*ec2.KeyPairInfo, error) ListAllInternetGateways() ([]*ec2.InternetGateway, error) ListAllSubnets() ([]*ec2.Subnet, []*ec2.Subnet, error) ListAllNatGateways() ([]*ec2.NatGateway, error) ListAllRouteTables() ([]*ec2.RouteTable, error) ListAllVPCs() ([]*ec2.Vpc, []*ec2.Vpc, error) ListAllSecurityGroups() ([]*ec2.SecurityGroup, []*ec2.SecurityGroup, error) ListAllNetworkACLs() ([]*ec2.NetworkAcl, error) DescribeLaunchTemplates() ([]*ec2.LaunchTemplate, error) IsEbsEncryptionEnabledByDefault() (bool, error) }
type ECRRepository ¶
type ECRRepository interface {
ListAllRepositories() ([]*ecr.Repository, error)
}
type ELBRepository ¶ added in v0.28.0
type ELBRepository interface {
ListAllLoadBalancers() ([]*elb.LoadBalancerDescription, error)
}
type ELBV2Repository ¶ added in v0.27.0
type ElastiCacheRepository ¶ added in v0.28.0
type ElastiCacheRepository interface {
ListAllCacheClusters() ([]*elasticache.CacheCluster, error)
}
type IAMRepository ¶
type IAMRepository interface { ListAllAccessKeys([]*iam.User) ([]*iam.AccessKeyMetadata, error) ListAllUsers() ([]*iam.User, error) ListAllPolicies() ([]*iam.Policy, error) ListAllRoles() ([]*iam.Role, error) ListAllRolePolicyAttachments([]*iam.Role) ([]*AttachedRolePolicy, error) ListAllRolePolicies([]*iam.Role) ([]RolePolicy, error) ListAllUserPolicyAttachments([]*iam.User) ([]*AttachedUserPolicy, error) ListAllUserPolicies([]*iam.User) ([]string, error) ListAllGroups() ([]*iam.Group, error) ListAllGroupPolicies([]*iam.Group) ([]string, error) }
type KMSRepository ¶
type KMSRepository interface { ListAllKeys() ([]*kms.KeyListEntry, error) ListAllAliases() ([]*kms.AliasListEntry, error) }
type LambdaRepository ¶
type LambdaRepository interface { ListAllLambdaFunctions() ([]*lambda.FunctionConfiguration, error) ListAllLambdaEventSourceMappings() ([]*lambda.EventSourceMappingConfiguration, error) }
type MockApiGatewayRepository ¶
MockApiGatewayRepository is an autogenerated mock type for the ApiGatewayRepository type
func (*MockApiGatewayRepository) GetAccount ¶
func (_m *MockApiGatewayRepository) GetAccount() (*apigateway.Account, error)
GetAccount provides a mock function with given fields:
func (*MockApiGatewayRepository) ListAllApiKeys ¶
func (_m *MockApiGatewayRepository) ListAllApiKeys() ([]*apigateway.ApiKey, error)
ListAllApiKeys provides a mock function with given fields:
func (*MockApiGatewayRepository) ListAllDomainNameBasePathMappings ¶
func (_m *MockApiGatewayRepository) ListAllDomainNameBasePathMappings(_a0 string) ([]*apigateway.BasePathMapping, error)
ListAllDomainNameBasePathMappings provides a mock function with given fields: _a0
func (*MockApiGatewayRepository) ListAllDomainNames ¶
func (_m *MockApiGatewayRepository) ListAllDomainNames() ([]*apigateway.DomainName, error)
ListAllDomainNames provides a mock function with given fields:
func (*MockApiGatewayRepository) ListAllRestApiAuthorizers ¶
func (_m *MockApiGatewayRepository) ListAllRestApiAuthorizers(_a0 string) ([]*apigateway.Authorizer, error)
ListAllRestApiAuthorizers provides a mock function with given fields: _a0
func (*MockApiGatewayRepository) ListAllRestApiGatewayResponses ¶
func (_m *MockApiGatewayRepository) ListAllRestApiGatewayResponses(_a0 string) ([]*apigateway.UpdateGatewayResponseOutput, error)
ListAllRestApiGatewayResponses provides a mock function with given fields: _a0
func (*MockApiGatewayRepository) ListAllRestApiModels ¶
func (_m *MockApiGatewayRepository) ListAllRestApiModels(_a0 string) ([]*apigateway.Model, error)
ListAllRestApiModels provides a mock function with given fields: _a0
func (*MockApiGatewayRepository) ListAllRestApiRequestValidators ¶
func (_m *MockApiGatewayRepository) ListAllRestApiRequestValidators(_a0 string) ([]*apigateway.UpdateRequestValidatorOutput, error)
ListAllRestApiRequestValidators provides a mock function with given fields: _a0
func (*MockApiGatewayRepository) ListAllRestApiResources ¶
func (_m *MockApiGatewayRepository) ListAllRestApiResources(_a0 string) ([]*apigateway.Resource, error)
ListAllRestApiResources provides a mock function with given fields: _a0
func (*MockApiGatewayRepository) ListAllRestApiStages ¶
func (_m *MockApiGatewayRepository) ListAllRestApiStages(_a0 string) ([]*apigateway.Stage, error)
ListAllRestApiStages provides a mock function with given fields: _a0
func (*MockApiGatewayRepository) ListAllRestApis ¶
func (_m *MockApiGatewayRepository) ListAllRestApis() ([]*apigateway.RestApi, error)
ListAllRestApis provides a mock function with given fields:
func (*MockApiGatewayRepository) ListAllVpcLinks ¶
func (_m *MockApiGatewayRepository) ListAllVpcLinks() ([]*apigateway.UpdateVpcLinkOutput, error)
ListAllVpcLinks provides a mock function with given fields:
type MockApiGatewayV2Repository ¶
MockApiGatewayV2Repository is an autogenerated mock type for the ApiGatewayV2Repository type
func (*MockApiGatewayV2Repository) ListAllApiAuthorizers ¶
func (_m *MockApiGatewayV2Repository) ListAllApiAuthorizers(_a0 string) ([]*apigatewayv2.Authorizer, error)
ListAllApiAuthorizers provides a mock function with given fields: _a0
func (*MockApiGatewayV2Repository) ListAllApiDeployments ¶ added in v0.19.0
func (_m *MockApiGatewayV2Repository) ListAllApiDeployments(apiId *string) ([]*apigatewayv2.Deployment, error)
ListAllApiDeployments provides a mock function with given fields: apiId
func (*MockApiGatewayV2Repository) ListAllApiIntegrationResponses ¶ added in v0.19.0
func (_m *MockApiGatewayV2Repository) ListAllApiIntegrationResponses(_a0 string, _a1 string) ([]*apigatewayv2.IntegrationResponse, error)
ListAllApiIntegrationResponses provides a mock function with given fields: _a0, _a1
func (*MockApiGatewayV2Repository) ListAllApiIntegrations ¶ added in v0.19.0
func (_m *MockApiGatewayV2Repository) ListAllApiIntegrations(_a0 string) ([]*apigatewayv2.Integration, error)
ListAllApiIntegrations provides a mock function with given fields: _a0
func (*MockApiGatewayV2Repository) ListAllApiMappings ¶ added in v0.19.0
func (_m *MockApiGatewayV2Repository) ListAllApiMappings(_a0 string) ([]*apigatewayv2.ApiMapping, error)
ListAllApiMappings provides a mock function with given fields: _a0
func (*MockApiGatewayV2Repository) ListAllApiModels ¶ added in v0.19.0
func (_m *MockApiGatewayV2Repository) ListAllApiModels(_a0 string) ([]*apigatewayv2.Model, error)
ListAllApiModels provides a mock function with given fields: _a0
func (*MockApiGatewayV2Repository) ListAllApiRouteResponses ¶ added in v0.19.0
func (_m *MockApiGatewayV2Repository) ListAllApiRouteResponses(_a0 string, _a1 string) ([]*apigatewayv2.RouteResponse, error)
ListAllApiRouteResponses provides a mock function with given fields: _a0, _a1
func (*MockApiGatewayV2Repository) ListAllApiRoutes ¶
func (_m *MockApiGatewayV2Repository) ListAllApiRoutes(apiId *string) ([]*apigatewayv2.Route, error)
ListAllApiRoutes provides a mock function with given fields: apiId
func (*MockApiGatewayV2Repository) ListAllApiStages ¶ added in v0.19.0
func (_m *MockApiGatewayV2Repository) ListAllApiStages(_a0 string) ([]*apigatewayv2.Stage, error)
ListAllApiStages provides a mock function with given fields: _a0
func (*MockApiGatewayV2Repository) ListAllApis ¶
func (_m *MockApiGatewayV2Repository) ListAllApis() ([]*apigatewayv2.Api, error)
ListAllApis provides a mock function with given fields:
func (*MockApiGatewayV2Repository) ListAllVpcLinks ¶
func (_m *MockApiGatewayV2Repository) ListAllVpcLinks() ([]*apigatewayv2.VpcLink, error)
ListAllVpcLinks provides a mock function with given fields:
type MockAppAutoScalingRepository ¶
MockAppAutoScalingRepository is an autogenerated mock type for the AppAutoScalingRepository type
func (*MockAppAutoScalingRepository) DescribeScalableTargets ¶
func (_m *MockAppAutoScalingRepository) DescribeScalableTargets(_a0 string) ([]*applicationautoscaling.ScalableTarget, error)
DescribeScalableTargets provides a mock function with given fields: _a0
func (*MockAppAutoScalingRepository) DescribeScalingPolicies ¶
func (_m *MockAppAutoScalingRepository) DescribeScalingPolicies(_a0 string) ([]*applicationautoscaling.ScalingPolicy, error)
DescribeScalingPolicies provides a mock function with given fields: _a0
func (*MockAppAutoScalingRepository) DescribeScheduledActions ¶
func (_m *MockAppAutoScalingRepository) DescribeScheduledActions(_a0 string) ([]*applicationautoscaling.ScheduledAction, error)
DescribeScheduledActions provides a mock function with given fields: _a0
func (*MockAppAutoScalingRepository) ServiceNamespaceValues ¶
func (_m *MockAppAutoScalingRepository) ServiceNamespaceValues() []string
ServiceNamespaceValues provides a mock function with given fields:
type MockAutoScalingRepository ¶
MockAutoScalingRepository is an autogenerated mock type for the AutoScalingRepository type
func (*MockAutoScalingRepository) DescribeLaunchConfigurations ¶
func (_m *MockAutoScalingRepository) DescribeLaunchConfigurations() ([]*autoscaling.LaunchConfiguration, error)
DescribeLaunchConfigurations provides a mock function with given fields:
type MockCloudformationRepository ¶
MockCloudformationRepository is an autogenerated mock type for the CloudformationRepository type
func (*MockCloudformationRepository) ListAllStacks ¶
func (_m *MockCloudformationRepository) ListAllStacks() ([]*cloudformation.Stack, error)
ListAllStacks provides a mock function with given fields:
type MockCloudfrontRepository ¶
MockCloudfrontRepository is an autogenerated mock type for the MockCloudfrontRepository type
func (*MockCloudfrontRepository) ListAllDistributions ¶
func (_m *MockCloudfrontRepository) ListAllDistributions() ([]*cloudfront.DistributionSummary, error)
ListAllDistributions provides a mock function with given fields:
type MockDynamoDBRepository ¶
MockDynamoDBRepository is an autogenerated mock type for the MockDynamoDBRepository type
func (*MockDynamoDBRepository) ListAllTables ¶
func (_m *MockDynamoDBRepository) ListAllTables() ([]*string, error)
ListAllTables provides a mock function with given fields:
type MockEC2Repository ¶
MockEC2Repository is an autogenerated mock type for the EC2Repository type
func (*MockEC2Repository) DescribeLaunchTemplates ¶
func (_m *MockEC2Repository) DescribeLaunchTemplates() ([]*ec2.LaunchTemplate, error)
DescribeLaunchTemplates provides a mock function with given fields:
func (*MockEC2Repository) IsEbsEncryptionEnabledByDefault ¶ added in v0.27.0
func (_m *MockEC2Repository) IsEbsEncryptionEnabledByDefault() (bool, error)
IsEbsEncryptionEnabledByDefault provides a mock function with given fields:
func (*MockEC2Repository) ListAllAddresses ¶
func (_m *MockEC2Repository) ListAllAddresses() ([]*ec2.Address, error)
ListAllAddresses provides a mock function with given fields:
func (*MockEC2Repository) ListAllAddressesAssociation ¶
func (_m *MockEC2Repository) ListAllAddressesAssociation() ([]*ec2.Address, error)
ListAllAddressesAssociation provides a mock function with given fields:
func (*MockEC2Repository) ListAllImages ¶
func (_m *MockEC2Repository) ListAllImages() ([]*ec2.Image, error)
ListAllImages provides a mock function with given fields:
func (*MockEC2Repository) ListAllInstances ¶
func (_m *MockEC2Repository) ListAllInstances() ([]*ec2.Instance, error)
ListAllInstances provides a mock function with given fields:
func (*MockEC2Repository) ListAllInternetGateways ¶
func (_m *MockEC2Repository) ListAllInternetGateways() ([]*ec2.InternetGateway, error)
ListAllInternetGateways provides a mock function with given fields:
func (*MockEC2Repository) ListAllKeyPairs ¶
func (_m *MockEC2Repository) ListAllKeyPairs() ([]*ec2.KeyPairInfo, error)
ListAllKeyPairs provides a mock function with given fields:
func (*MockEC2Repository) ListAllNatGateways ¶
func (_m *MockEC2Repository) ListAllNatGateways() ([]*ec2.NatGateway, error)
ListAllNatGateways provides a mock function with given fields:
func (*MockEC2Repository) ListAllNetworkACLs ¶
func (_m *MockEC2Repository) ListAllNetworkACLs() ([]*ec2.NetworkAcl, error)
ListAllNetworkACLs provides a mock function with given fields:
func (*MockEC2Repository) ListAllRouteTables ¶
func (_m *MockEC2Repository) ListAllRouteTables() ([]*ec2.RouteTable, error)
ListAllRouteTables provides a mock function with given fields:
func (*MockEC2Repository) ListAllSecurityGroups ¶
func (_m *MockEC2Repository) ListAllSecurityGroups() ([]*ec2.SecurityGroup, []*ec2.SecurityGroup, error)
ListAllSecurityGroups provides a mock function with given fields:
func (*MockEC2Repository) ListAllSnapshots ¶
func (_m *MockEC2Repository) ListAllSnapshots() ([]*ec2.Snapshot, error)
ListAllSnapshots provides a mock function with given fields:
func (*MockEC2Repository) ListAllSubnets ¶
ListAllSubnets provides a mock function with given fields:
func (*MockEC2Repository) ListAllVPCs ¶
ListAllVPCs provides a mock function with given fields:
func (*MockEC2Repository) ListAllVolumes ¶
func (_m *MockEC2Repository) ListAllVolumes() ([]*ec2.Volume, error)
ListAllVolumes provides a mock function with given fields:
type MockECRRepository ¶
MockECRRepository is an autogenerated mock type for the MockECRRepository type
func (*MockECRRepository) ListAllRepositories ¶
func (_m *MockECRRepository) ListAllRepositories() ([]*ecr.Repository, error)
ListAllRepositories provides a mock function with given fields:
type MockELBRepository ¶ added in v0.28.0
MockELBRepository is an autogenerated mock type for the ELBRepository type
func (*MockELBRepository) ListAllLoadBalancers ¶ added in v0.28.0
func (_m *MockELBRepository) ListAllLoadBalancers() ([]*elb.LoadBalancerDescription, error)
ListAllLoadBalancers provides a mock function with given fields:
type MockELBV2Repository ¶ added in v0.27.0
MockELBV2Repository is an autogenerated mock type for the ELBV2Repository type
func (*MockELBV2Repository) ListAllLoadBalancerListeners ¶ added in v0.29.0
func (_m *MockELBV2Repository) ListAllLoadBalancerListeners(_a0 string) ([]*elbv2.Listener, error)
ListLoadBalancerListeners provides a mock function with given fields: _a0
func (*MockELBV2Repository) ListAllLoadBalancers ¶ added in v0.27.0
func (_m *MockELBV2Repository) ListAllLoadBalancers() ([]*elbv2.LoadBalancer, error)
ListAllLoadBalancers provides a mock function with given fields:
type MockElastiCacheRepository ¶ added in v0.28.0
MockElastiCacheRepository is an autogenerated mock type for the ElastiCacheRepository type
func (*MockElastiCacheRepository) ListAllCacheClusters ¶ added in v0.28.0
func (_m *MockElastiCacheRepository) ListAllCacheClusters() ([]*elasticache.CacheCluster, error)
ListAllCacheClusters provides a mock function with given fields:
type MockIAMRepository ¶
MockIAMRepository is an autogenerated mock type for the IAMRepository type
func (*MockIAMRepository) ListAllAccessKeys ¶
func (_m *MockIAMRepository) ListAllAccessKeys(_a0 []*iam.User) ([]*iam.AccessKeyMetadata, error)
ListAllAccessKeys provides a mock function with given fields: _a0
func (*MockIAMRepository) ListAllGroupPolicies ¶ added in v0.27.0
func (_m *MockIAMRepository) ListAllGroupPolicies(_a0 []*iam.Group) ([]string, error)
ListAllGroupPolicies provides a mock function with given fields: _a0
func (*MockIAMRepository) ListAllGroups ¶ added in v0.27.0
func (_m *MockIAMRepository) ListAllGroups() ([]*iam.Group, error)
ListAllGroups provides a mock function with given fields:
func (*MockIAMRepository) ListAllPolicies ¶
func (_m *MockIAMRepository) ListAllPolicies() ([]*iam.Policy, error)
ListAllPolicies provides a mock function with given fields:
func (*MockIAMRepository) ListAllRolePolicies ¶
func (_m *MockIAMRepository) ListAllRolePolicies(_a0 []*iam.Role) ([]RolePolicy, error)
ListAllRolePolicies provides a mock function with given fields: _a0
func (*MockIAMRepository) ListAllRolePolicyAttachments ¶
func (_m *MockIAMRepository) ListAllRolePolicyAttachments(_a0 []*iam.Role) ([]*AttachedRolePolicy, error)
ListAllRolePolicyAttachments provides a mock function with given fields: _a0
func (*MockIAMRepository) ListAllRoles ¶
func (_m *MockIAMRepository) ListAllRoles() ([]*iam.Role, error)
ListAllRoles provides a mock function with given fields:
func (*MockIAMRepository) ListAllUserPolicies ¶
func (_m *MockIAMRepository) ListAllUserPolicies(_a0 []*iam.User) ([]string, error)
ListAllUserPolicies provides a mock function with given fields: _a0
func (*MockIAMRepository) ListAllUserPolicyAttachments ¶
func (_m *MockIAMRepository) ListAllUserPolicyAttachments(_a0 []*iam.User) ([]*AttachedUserPolicy, error)
ListAllUserPolicyAttachments provides a mock function with given fields: _a0
func (*MockIAMRepository) ListAllUsers ¶
func (_m *MockIAMRepository) ListAllUsers() ([]*iam.User, error)
ListAllUsers provides a mock function with given fields:
type MockKMSRepository ¶
MockKMSRepository is an autogenerated mock type for the KMSRepository type
func (*MockKMSRepository) ListAllAliases ¶
func (_m *MockKMSRepository) ListAllAliases() ([]*kms.AliasListEntry, error)
ListAllAliases provides a mock function with given fields:
func (*MockKMSRepository) ListAllKeys ¶
func (_m *MockKMSRepository) ListAllKeys() ([]*kms.KeyListEntry, error)
ListAllKeys provides a mock function with given fields:
type MockLambdaRepository ¶
MockLambdaRepository is an autogenerated mock type for the LambdaRepository type
func (*MockLambdaRepository) ListAllLambdaEventSourceMappings ¶
func (_m *MockLambdaRepository) ListAllLambdaEventSourceMappings() ([]*lambda.EventSourceMappingConfiguration, error)
ListAllLambdaEventSourceMappings provides a mock function with given fields:
func (*MockLambdaRepository) ListAllLambdaFunctions ¶
func (_m *MockLambdaRepository) ListAllLambdaFunctions() ([]*lambda.FunctionConfiguration, error)
ListAllLambdaFunctions provides a mock function with given fields:
type MockRDSRepository ¶
MockRDSRepository is an autogenerated mock type for the RDSRepository type
func (*MockRDSRepository) ListAllDBClusters ¶
func (_m *MockRDSRepository) ListAllDBClusters() ([]*rds.DBCluster, error)
ListAllDBClusters provides a mock function with given fields:
func (*MockRDSRepository) ListAllDBInstances ¶
func (_m *MockRDSRepository) ListAllDBInstances() ([]*rds.DBInstance, error)
ListAllDBInstances provides a mock function with given fields:
func (*MockRDSRepository) ListAllDBSubnetGroups ¶
func (_m *MockRDSRepository) ListAllDBSubnetGroups() ([]*rds.DBSubnetGroup, error)
ListAllDBSubnetGroups provides a mock function with given fields:
type MockRoute53Repository ¶
MockRoute53Repository is an autogenerated mock type for the Route53Repository type
func (*MockRoute53Repository) ListAllHealthChecks ¶
func (_m *MockRoute53Repository) ListAllHealthChecks() ([]*route53.HealthCheck, error)
ListAllHealthChecks provides a mock function with given fields:
func (*MockRoute53Repository) ListAllZones ¶
func (_m *MockRoute53Repository) ListAllZones() ([]*route53.HostedZone, error)
ListAllZones provides a mock function with given fields:
func (*MockRoute53Repository) ListRecordsForZone ¶
func (_m *MockRoute53Repository) ListRecordsForZone(zoneId string) ([]*route53.ResourceRecordSet, error)
ListRecordsForZone provides a mock function with given fields: zoneId
type MockS3Repository ¶
MockS3Repository is an autogenerated mock type for the S3Repository type
func (*MockS3Repository) GetBucketLocation ¶
func (_m *MockS3Repository) GetBucketLocation(bucketName string) (string, error)
GetBucketLocation provides a mock function with given fields: bucketName
func (*MockS3Repository) GetBucketNotification ¶
func (_m *MockS3Repository) GetBucketNotification(bucketName string, region string) (*s3.NotificationConfiguration, error)
GetBucketNotification provides a mock function with given fields: bucketName, region
func (*MockS3Repository) GetBucketPolicy ¶
func (_m *MockS3Repository) GetBucketPolicy(bucketName string, region string) (*string, error)
GetBucketPolicy provides a mock function with given fields: bucketName, region
func (*MockS3Repository) GetBucketPublicAccessBlock ¶ added in v0.28.0
func (_m *MockS3Repository) GetBucketPublicAccessBlock(bucketName string, region string) (*s3.PublicAccessBlockConfiguration, error)
GetBucketPublicAccessBlock provides a mock function with given fields: bucketName, region
func (*MockS3Repository) ListAllBuckets ¶
func (_m *MockS3Repository) ListAllBuckets() ([]*s3.Bucket, error)
ListAllBuckets provides a mock function with given fields:
func (*MockS3Repository) ListBucketAnalyticsConfigurations ¶
func (_m *MockS3Repository) ListBucketAnalyticsConfigurations(bucket *s3.Bucket, region string) ([]*s3.AnalyticsConfiguration, error)
ListBucketAnalyticsConfigurations provides a mock function with given fields: bucket, region
func (*MockS3Repository) ListBucketInventoryConfigurations ¶
func (_m *MockS3Repository) ListBucketInventoryConfigurations(bucket *s3.Bucket, region string) ([]*s3.InventoryConfiguration, error)
ListBucketInventoryConfigurations provides a mock function with given fields: bucket, region
func (*MockS3Repository) ListBucketMetricsConfigurations ¶
func (_m *MockS3Repository) ListBucketMetricsConfigurations(bucket *s3.Bucket, region string) ([]*s3.MetricsConfiguration, error)
ListBucketMetricsConfigurations provides a mock function with given fields: bucket, region
type MockSNSRepository ¶
MockSNSRepository is an autogenerated mock type for the MockSNSRepository type
func (*MockSNSRepository) ListAllSubscriptions ¶
func (_m *MockSNSRepository) ListAllSubscriptions() ([]*sns.Subscription, error)
ListAllSubscriptions provides a mock function with given fields:
func (*MockSNSRepository) ListAllTopics ¶
func (_m *MockSNSRepository) ListAllTopics() ([]*sns.Topic, error)
ListAllTopics provides a mock function with given fields:
type MockSQSRepository ¶
MockSQSRepository is an autogenerated mock type for the SQSRepository type
func (*MockSQSRepository) GetQueueAttributes ¶
func (_m *MockSQSRepository) GetQueueAttributes(url string) (*sqs.GetQueueAttributesOutput, error)
GetQueueAttributes provides a mock function with given fields: url
func (*MockSQSRepository) ListAllQueues ¶
func (_m *MockSQSRepository) ListAllQueues() ([]*string, error)
ListAllQueues provides a mock function with given fields:
type RDSRepository ¶
type RDSRepository interface { ListAllDBInstances() ([]*rds.DBInstance, error) ListAllDBSubnetGroups() ([]*rds.DBSubnetGroup, error) ListAllDBClusters() ([]*rds.DBCluster, error) }
type RolePolicy ¶
type Route53Repository ¶
type Route53Repository interface { ListAllHealthChecks() ([]*route53.HealthCheck, error) ListAllZones() ([]*route53.HostedZone, error) ListRecordsForZone(zoneId string) ([]*route53.ResourceRecordSet, error) }
type S3Repository ¶
type S3Repository interface { ListAllBuckets() ([]*s3.Bucket, error) GetBucketNotification(bucketName, region string) (*s3.NotificationConfiguration, error) GetBucketPolicy(bucketName, region string) (*string, error) GetBucketPublicAccessBlock(bucketName, region string) (*s3.PublicAccessBlockConfiguration, error) ListBucketInventoryConfigurations(bucket *s3.Bucket, region string) ([]*s3.InventoryConfiguration, error) ListBucketMetricsConfigurations(bucket *s3.Bucket, region string) ([]*s3.MetricsConfiguration, error) ListBucketAnalyticsConfigurations(bucket *s3.Bucket, region string) ([]*s3.AnalyticsConfiguration, error) GetBucketLocation(bucketName string) (string, error) }
type SNSRepository ¶
type SQSRepository ¶
Source Files ¶
- api_gateway_repository.go
- apigatewayv2_repository.go
- appautoscaling_repository.go
- autoscaling_repository.go
- cloudformation_repository.go
- cloudfront_repository.go
- dynamodb_repository.go
- ec2_repository.go
- ecr_repository.go
- elasticache_repository.go
- elb_repository.go
- elbv2_repository.go
- iam_repository.go
- kms_repository.go
- lambda_repository.go
- mock_ApiGatewayRepository.go
- mock_ApiGatewayV2Repository.go
- mock_AppAutoScalingRepository.go
- mock_AutoScalingRepository.go
- mock_CloudformationRepository.go
- mock_CloudfrontRepository.go
- mock_DynamoDBRepository.go
- mock_EC2Repository.go
- mock_ECRRepository.go
- mock_ELBRepository.go
- mock_ELBV2Repository.go
- mock_ElastiCacheRepository.go
- mock_IAMRepository.go
- mock_KMSRepository.go
- mock_LambdaRepository.go
- mock_RDSRepository.go
- mock_Route53Repository.go
- mock_S3Repository.go
- mock_SNSRepository.go
- mock_SQSRepository.go
- rds_repository.go
- route53_repository.go
- s3_repository.go
- sns_repository.go
- sqs_repository.go