repository

package
v0.0.0-...-3750d73 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

View Source
const MaxRetries = 5

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 NewCloudtrailRepository

func NewCloudtrailRepository(session *session.Session, c cache.Cache) *cloudtrailRepository

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 NewELBRepository

func NewELBRepository(session *session.Session, c cache.Cache) *elbRepository

func NewELBV2Repository

func NewELBV2Repository(session *session.Session, c cache.Cache) *elbv2Repository

func NewElastiCacheRepository

func NewElastiCacheRepository(session *session.Session, c cache.Cache) *elasticacheRepository

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 NewS3ControlRepository

func NewS3ControlRepository(factory client.AwsClientFactoryInterface, c cache.Cache) *s3ControlRepository

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 AttachedGroupPolicy

type AttachedGroupPolicy struct {
	iam.AttachedPolicy
	GroupName string
}

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 CloudtrailRepository

type CloudtrailRepository interface {
	ListAllTrails() ([]*cloudtrail.TrailInfo, 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)
	IsEbsEncryptionEnabledByDefault() (bool, error)
}

type ECRRepository

type ECRRepository interface {
	ListAllRepositories() ([]*ecr.Repository, error)
	GetRepositoryPolicy(*ecr.Repository) (*ecr.GetRepositoryPolicyOutput, error)
}

type ELBRepository

type ELBRepository interface {
	ListAllLoadBalancers() ([]*elb.LoadBalancerDescription, error)
}

type ELBV2Repository

type ELBV2Repository interface {
	ListAllLoadBalancers() ([]*elbv2.LoadBalancer, error)
	ListAllLoadBalancerListeners(string) ([]*elbv2.Listener, error)
}

type ElastiCacheRepository

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)
	ListAllGroupPolicyAttachments([]*iam.Group) ([]*AttachedGroupPolicy, 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 NewMockApiGatewayRepository

func NewMockApiGatewayRepository(t mockConstructorTestingTNewMockApiGatewayRepository) *MockApiGatewayRepository

NewMockApiGatewayRepository creates a new instance of MockApiGatewayRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewMockApiGatewayV2Repository

func NewMockApiGatewayV2Repository(t mockConstructorTestingTNewMockApiGatewayV2Repository) *MockApiGatewayV2Repository

NewMockApiGatewayV2Repository creates a new instance of MockApiGatewayV2Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockApiGatewayV2Repository) ListAllApiAuthorizers

func (_m *MockApiGatewayV2Repository) ListAllApiAuthorizers(_a0 string) ([]*apigatewayv2.Authorizer, error)

ListAllApiAuthorizers provides a mock function with given fields: _a0

func (*MockApiGatewayV2Repository) ListAllApiDeployments

func (_m *MockApiGatewayV2Repository) ListAllApiDeployments(apiId *string) ([]*apigatewayv2.Deployment, error)

ListAllApiDeployments provides a mock function with given fields: apiId

func (*MockApiGatewayV2Repository) ListAllApiIntegrationResponses

func (_m *MockApiGatewayV2Repository) ListAllApiIntegrationResponses(_a0 string, _a1 string) ([]*apigatewayv2.IntegrationResponse, error)

ListAllApiIntegrationResponses provides a mock function with given fields: _a0, _a1

func (*MockApiGatewayV2Repository) ListAllApiIntegrations

func (_m *MockApiGatewayV2Repository) ListAllApiIntegrations(_a0 string) ([]*apigatewayv2.Integration, error)

ListAllApiIntegrations provides a mock function with given fields: _a0

func (*MockApiGatewayV2Repository) ListAllApiMappings

func (_m *MockApiGatewayV2Repository) ListAllApiMappings(_a0 string) ([]*apigatewayv2.ApiMapping, error)

ListAllApiMappings provides a mock function with given fields: _a0

func (*MockApiGatewayV2Repository) ListAllApiModels

func (_m *MockApiGatewayV2Repository) ListAllApiModels(_a0 string) ([]*apigatewayv2.Model, error)

ListAllApiModels provides a mock function with given fields: _a0

func (*MockApiGatewayV2Repository) ListAllApiRouteResponses

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

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 NewMockAppAutoScalingRepository

func NewMockAppAutoScalingRepository(t mockConstructorTestingTNewMockAppAutoScalingRepository) *MockAppAutoScalingRepository

NewMockAppAutoScalingRepository creates a new instance of MockAppAutoScalingRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewMockAutoScalingRepository

func NewMockAutoScalingRepository(t mockConstructorTestingTNewMockAutoScalingRepository) *MockAutoScalingRepository

NewMockAutoScalingRepository creates a new instance of MockAutoScalingRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewMockCloudformationRepository

func NewMockCloudformationRepository(t mockConstructorTestingTNewMockCloudformationRepository) *MockCloudformationRepository

NewMockCloudformationRepository creates a new instance of MockCloudformationRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 CloudfrontRepository type

func NewMockCloudfrontRepository

func NewMockCloudfrontRepository(t mockConstructorTestingTNewMockCloudfrontRepository) *MockCloudfrontRepository

NewMockCloudfrontRepository creates a new instance of MockCloudfrontRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 DynamoDBRepository type

func NewMockDynamoDBRepository

func NewMockDynamoDBRepository(t mockConstructorTestingTNewMockDynamoDBRepository) *MockDynamoDBRepository

NewMockDynamoDBRepository creates a new instance of MockDynamoDBRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewMockEC2Repository

func NewMockEC2Repository(t mockConstructorTestingTNewMockEC2Repository) *MockEC2Repository

NewMockEC2Repository creates a new instance of MockEC2Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockEC2Repository) DescribeLaunchTemplates

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

DescribeLaunchTemplates provides a mock function with given fields:

func (*MockEC2Repository) IsEbsEncryptionEnabledByDefault

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

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 ECRRepository type

func NewMockECRRepository

func NewMockECRRepository(t mockConstructorTestingTNewMockECRRepository) *MockECRRepository

NewMockECRRepository creates a new instance of MockECRRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockECRRepository) GetRepositoryPolicy

func (_m *MockECRRepository) GetRepositoryPolicy(_a0 *ecr.Repository) (*ecr.GetRepositoryPolicyOutput, error)

GetRepositoryPolicy provides a mock function with given fields: _a0

func (*MockECRRepository) ListAllRepositories

func (_m *MockECRRepository) ListAllRepositories() ([]*ecr.Repository, error)

ListAllRepositories provides a mock function with given fields:

type MockELBRepository

type MockELBRepository struct {
	mock.Mock
}

MockELBRepository is an autogenerated mock type for the ELBRepository type

func NewMockELBRepository

func NewMockELBRepository(t mockConstructorTestingTNewMockELBRepository) *MockELBRepository

NewMockELBRepository creates a new instance of MockELBRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockELBRepository) ListAllLoadBalancers

func (_m *MockELBRepository) ListAllLoadBalancers() ([]*elb.LoadBalancerDescription, error)

ListAllLoadBalancers provides a mock function with given fields:

type MockELBV2Repository

type MockELBV2Repository struct {
	mock.Mock
}

MockELBV2Repository is an autogenerated mock type for the ELBV2Repository type

func NewMockELBV2Repository

func NewMockELBV2Repository(t mockConstructorTestingTNewMockELBV2Repository) *MockELBV2Repository

NewMockELBV2Repository creates a new instance of MockELBV2Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockELBV2Repository) ListAllLoadBalancerListeners

func (_m *MockELBV2Repository) ListAllLoadBalancerListeners(_a0 string) ([]*elbv2.Listener, error)

ListAllLoadBalancerListeners provides a mock function with given fields: _a0

func (*MockELBV2Repository) ListAllLoadBalancers

func (_m *MockELBV2Repository) ListAllLoadBalancers() ([]*elbv2.LoadBalancer, error)

ListAllLoadBalancers provides a mock function with given fields:

type MockElastiCacheRepository

type MockElastiCacheRepository struct {
	mock.Mock
}

MockElastiCacheRepository is an autogenerated mock type for the ElastiCacheRepository type

func NewMockElastiCacheRepository

func NewMockElastiCacheRepository(t mockConstructorTestingTNewMockElastiCacheRepository) *MockElastiCacheRepository

NewMockElastiCacheRepository creates a new instance of MockElastiCacheRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockElastiCacheRepository) ListAllCacheClusters

func (_m *MockElastiCacheRepository) ListAllCacheClusters() ([]*elasticache.CacheCluster, error)

ListAllCacheClusters 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 NewMockIAMRepository

func NewMockIAMRepository(t mockConstructorTestingTNewMockIAMRepository) *MockIAMRepository

NewMockIAMRepository creates a new instance of MockIAMRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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

func (_m *MockIAMRepository) ListAllGroupPolicies(_a0 []*iam.Group) ([]string, error)

ListAllGroupPolicies provides a mock function with given fields: _a0

func (*MockIAMRepository) ListAllGroupPolicyAttachments

func (_m *MockIAMRepository) ListAllGroupPolicyAttachments(_a0 []*iam.Group) ([]*AttachedGroupPolicy, error)

ListAllGroupPolicyAttachments provides a mock function with given fields: _a0

func (*MockIAMRepository) ListAllGroups

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

type MockKMSRepository struct {
	mock.Mock
}

MockKMSRepository is an autogenerated mock type for the KMSRepository type

func NewMockKMSRepository

func NewMockKMSRepository(t mockConstructorTestingTNewMockKMSRepository) *MockKMSRepository

NewMockKMSRepository creates a new instance of MockKMSRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewMockLambdaRepository

func NewMockLambdaRepository(t mockConstructorTestingTNewMockLambdaRepository) *MockLambdaRepository

NewMockLambdaRepository creates a new instance of MockLambdaRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewMockRDSRepository

func NewMockRDSRepository(t mockConstructorTestingTNewMockRDSRepository) *MockRDSRepository

NewMockRDSRepository creates a new instance of MockRDSRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewMockRoute53Repository

func NewMockRoute53Repository(t mockConstructorTestingTNewMockRoute53Repository) *MockRoute53Repository

NewMockRoute53Repository creates a new instance of MockRoute53Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 MockS3ControlRepository

type MockS3ControlRepository struct {
	mock.Mock
}

MockS3ControlRepository is an autogenerated mock type for the S3ControlRepository type

func NewMockS3ControlRepository

func NewMockS3ControlRepository(t mockConstructorTestingTNewMockS3ControlRepository) *MockS3ControlRepository

NewMockS3ControlRepository creates a new instance of MockS3ControlRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockS3ControlRepository) DescribeAccountPublicAccessBlock

func (_m *MockS3ControlRepository) DescribeAccountPublicAccessBlock(accountID string) (*s3control.PublicAccessBlockConfiguration, error)

DescribeAccountPublicAccessBlock provides a mock function with given fields: accountID

type MockS3Repository

type MockS3Repository struct {
	mock.Mock
}

MockS3Repository is an autogenerated mock type for the S3Repository type

func NewMockS3Repository

func NewMockS3Repository(t mockConstructorTestingTNewMockS3Repository) *MockS3Repository

NewMockS3Repository creates a new instance of MockS3Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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

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

type MockSNSRepository struct {
	mock.Mock
}

MockSNSRepository is an autogenerated mock type for the SNSRepository type

func NewMockSNSRepository

func NewMockSNSRepository(t mockConstructorTestingTNewMockSNSRepository) *MockSNSRepository

NewMockSNSRepository creates a new instance of MockSNSRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewMockSQSRepository

func NewMockSQSRepository(t mockConstructorTestingTNewMockSQSRepository) *MockSQSRepository

NewMockSQSRepository creates a new instance of MockSQSRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 S3ControlRepository

type S3ControlRepository interface {
	DescribeAccountPublicAccessBlock(accountID string) (*s3control.PublicAccessBlockConfiguration, 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 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