repository

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiGatewayRepository

func NewApiGatewayRepository(session *session.Session, c cache.Cache) *apigatewayRepository

func NewApiGatewayV2Repository

func NewApiGatewayV2Repository(session *session.Session, c cache.Cache) *apigatewayv2Repository

func NewAppAutoScalingRepository

func NewAppAutoScalingRepository(session *session.Session, c cache.Cache) *appAutoScalingRepository

func NewAutoScalingRepository

func NewAutoScalingRepository(session *session.Session, c cache.Cache) *autoScalingRepository

func NewCloudformationRepository

func NewCloudformationRepository(session *session.Session, c cache.Cache) *cloudformationRepository

func NewCloudfrontRepository

func NewCloudfrontRepository(session *session.Session, c cache.Cache) *cloudfrontRepository

func NewDynamoDBRepository

func NewDynamoDBRepository(session *session.Session, c cache.Cache) *dynamoDBRepository

func NewEC2Repository

func NewEC2Repository(session *session.Session, c cache.Cache) *ec2Repository

func NewECRRepository

func NewECRRepository(session *session.Session, c cache.Cache) *ecrRepository

func NewIAMRepository

func NewIAMRepository(session *session.Session, c cache.Cache) *iamRepository

func NewKMSRepository

func NewKMSRepository(session *session.Session, c cache.Cache) *kmsRepository

func NewLambdaRepository

func NewLambdaRepository(session *session.Session, c cache.Cache) *lambdaRepository

func NewRDSRepository

func NewRDSRepository(session *session.Session, c cache.Cache) *rdsRepository

func NewRoute53Repository

func NewRoute53Repository(session *session.Session, c cache.Cache) *route53Repository

func NewS3Repository

func NewS3Repository(factory client.AwsClientFactoryInterface, c cache.Cache) *s3Repository

func NewSNSRepository

func NewSNSRepository(session *session.Session, c cache.Cache) *snsRepository

func NewSQSRepository

func NewSQSRepository(session *session.Session, c cache.Cache) *sqsRepository

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 DynamoDBRepository interface {
	ListAllTables() ([]*string, error)
}

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)
}

type ECRRepository

type ECRRepository interface {
	ListAllRepositories() ([]*ecr.Repository, 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)
}

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

type MockApiGatewayRepository struct {
	mock.Mock
}

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 (_m *MockApiGatewayRepository) ListAllVpcLinks() ([]*apigateway.UpdateVpcLinkOutput, error)

ListAllVpcLinks provides a mock function with given fields:

type MockApiGatewayV2Repository

type MockApiGatewayV2Repository struct {
	mock.Mock
}

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 (_m *MockApiGatewayV2Repository) ListAllVpcLinks() ([]*apigatewayv2.VpcLink, error)

ListAllVpcLinks provides a mock function with given fields:

type MockAppAutoScalingRepository

type MockAppAutoScalingRepository struct {
	mock.Mock
}

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

type MockAutoScalingRepository struct {
	mock.Mock
}

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

type MockCloudformationRepository struct {
	mock.Mock
}

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

type MockCloudfrontRepository struct {
	mock.Mock
}

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

type MockDynamoDBRepository struct {
	mock.Mock
}

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

type MockEC2Repository struct {
	mock.Mock
}

MockEC2Repository is an autogenerated mock type for the EC2Repository type

func (*MockEC2Repository) DescribeLaunchTemplateVersions

func (_m *MockEC2Repository) DescribeLaunchTemplateVersions(_a0 *ec2.LaunchTemplate) ([]*ec2.LaunchTemplateVersion, error)

DescribeLaunchTemplateVersions provides a mock function with given fields: _a0

func (*MockEC2Repository) DescribeLaunchTemplates

func (_m *MockEC2Repository) DescribeLaunchTemplates() ([]*ec2.LaunchTemplate, error)

DescribeLaunchTemplates 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

func (_m *MockEC2Repository) ListAllSubnets() ([]*ec2.Subnet, []*ec2.Subnet, error)

ListAllSubnets provides a mock function with given fields:

func (*MockEC2Repository) ListAllVPCs

func (_m *MockEC2Repository) ListAllVPCs() ([]*ec2.Vpc, []*ec2.Vpc, error)

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

type MockECRRepository struct {
	mock.Mock
}

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 MockIAMRepository

type MockIAMRepository struct {
	mock.Mock
}

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) 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

type MockKMSRepository struct {
	mock.Mock
}

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

type MockLambdaRepository struct {
	mock.Mock
}

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

type MockRDSRepository struct {
	mock.Mock
}

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

type MockRoute53Repository struct {
	mock.Mock
}

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

type MockS3Repository struct {
	mock.Mock
}

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) 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

type MockSNSRepository struct {
	mock.Mock
}

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

type MockSQSRepository struct {
	mock.Mock
}

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 RolePolicy struct {
	Policy   string
	RoleName string
}

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)
	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 SNSRepository interface {
	ListAllTopics() ([]*sns.Topic, error)
	ListAllSubscriptions() ([]*sns.Subscription, error)
}

type SQSRepository

type SQSRepository interface {
	ListAllQueues() ([]*string, error)
	GetQueueAttributes(url string) (*sqs.GetQueueAttributesOutput, error)
}

Jump to

Keyboard shortcuts

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