mockawstools

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mockawstools is a generated GoMock package.

Package mockawstools to create the mocks run go generate to regenerate this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAWS

type MockAWS struct {
	// contains filtered or unexported fields
}

MockAWS is a mock of AWS interface

func NewMockAWS

func NewMockAWS(ctrl *gomock.Controller) *MockAWS

NewMockAWS creates a new mock instance

func (*MockAWS) AllowEKSPostgresTraffic added in v0.64.0

func (m *MockAWS) AllowEKSPostgresTraffic(cluster *model.Cluster, eksMetadata model.EKSMetadata) error

AllowEKSPostgresTraffic mocks base method

func (*MockAWS) AttachPolicyToRole added in v0.24.0

func (m *MockAWS) AttachPolicyToRole(roleName, policyName string, logger logrus.FieldLogger) error

AttachPolicyToRole mocks base method

func (*MockAWS) ClaimVPC added in v0.63.0

func (m *MockAWS) ClaimVPC(vpcID string, cluster *model.Cluster, owner string, logger logrus.FieldLogger) (aws.ClusterResources, error)

ClaimVPC mocks base method

func (*MockAWS) CreatePrivateCNAME

func (m *MockAWS) CreatePrivateCNAME(dnsName string, dnsEndpoints []string, logger logrus.FieldLogger) error

CreatePrivateCNAME mocks base method

func (*MockAWS) CreatePublicCNAME

func (m *MockAWS) CreatePublicCNAME(dnsName string, dnsEndpoints []string, dnsIdentifier string, logger logrus.FieldLogger) error

CreatePublicCNAME mocks base method

func (*MockAWS) DeletePrivateCNAME

func (m *MockAWS) DeletePrivateCNAME(dnsName string, logger logrus.FieldLogger) error

DeletePrivateCNAME mocks base method

func (*MockAWS) DeletePublicCNAME

func (m *MockAWS) DeletePublicCNAME(dnsName string, logger logrus.FieldLogger) error

DeletePublicCNAME mocks base method

func (*MockAWS) DeletePublicCNAMEs added in v0.59.0

func (m *MockAWS) DeletePublicCNAMEs(dnsName []string, logger logrus.FieldLogger) error

DeletePublicCNAMEs mocks base method

func (*MockAWS) DetachPolicyFromRole added in v0.24.0

func (m *MockAWS) DetachPolicyFromRole(roleName, policyName string, logger logrus.FieldLogger) error

DetachPolicyFromRole mocks base method

func (*MockAWS) DynamoDBEnsureTableDeleted added in v0.24.0

func (m *MockAWS) DynamoDBEnsureTableDeleted(tableName string, logger logrus.FieldLogger) error

DynamoDBEnsureTableDeleted mocks base method

func (*MockAWS) EXPECT

func (m *MockAWS) EXPECT() *MockAWSMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAWS) EnsureEKSCluster added in v0.63.0

func (m *MockAWS) EnsureEKSCluster(cluster *model.Cluster, resources aws.ClusterResources, eksMetadata model.EKSMetadata) (*eks.Cluster, error)

EnsureEKSCluster mocks base method

func (*MockAWS) EnsureEKSClusterDeleted added in v0.63.0

func (m *MockAWS) EnsureEKSClusterDeleted(cluster *model.Cluster) (bool, error)

EnsureEKSClusterDeleted mocks base method

func (*MockAWS) EnsureEKSClusterNodeGroups added in v0.63.0

func (m *MockAWS) EnsureEKSClusterNodeGroups(cluster *model.Cluster, resources aws.ClusterResources, eksMetadata model.EKSMetadata) ([]*eks.Nodegroup, error)

EnsureEKSClusterNodeGroups mocks base method

func (*MockAWS) EnsureNodeGroupsDeleted added in v0.63.0

func (m *MockAWS) EnsureNodeGroupsDeleted(cluster *model.Cluster) (bool, error)

EnsureNodeGroupsDeleted mocks base method

func (*MockAWS) GenerateBifrostUtilitySecret added in v0.33.0

func (m *MockAWS) GenerateBifrostUtilitySecret(clusterID string, logger logrus.FieldLogger) (*v1.Secret, error)

GenerateBifrostUtilitySecret mocks base method

func (*MockAWS) GetAccountID added in v0.64.0

func (m *MockAWS) GetAccountID() (string, error)

GetAccountID mocks base method

func (*MockAWS) GetAndClaimVpcResources

func (m *MockAWS) GetAndClaimVpcResources(cluster *model.Cluster, owner string, logger logrus.FieldLogger) (aws.ClusterResources, error)

GetAndClaimVpcResources mocks base method

func (*MockAWS) GetCIDRByVPCTag added in v0.36.0

func (m *MockAWS) GetCIDRByVPCTag(vpcTagName string, logger logrus.FieldLogger) (string, error)

GetCIDRByVPCTag mocks base method

func (*MockAWS) GetCertificateSummaryByTag

func (m *MockAWS) GetCertificateSummaryByTag(key, value string, logger logrus.FieldLogger) (*acm.CertificateSummary, error)

GetCertificateSummaryByTag mocks base method

func (*MockAWS) GetCloudEnvironmentName added in v0.29.0

func (m *MockAWS) GetCloudEnvironmentName() string

GetCloudEnvironmentName mocks base method

func (*MockAWS) GetEKSCluster added in v0.63.0

func (m *MockAWS) GetEKSCluster(clusterName string) (*eks.Cluster, error)

GetEKSCluster mocks base method

func (*MockAWS) GetMultitenantBucketNameForInstallation added in v0.45.0

func (m *MockAWS) GetMultitenantBucketNameForInstallation(installationID string, store model.InstallationDatabaseStoreInterface) (string, error)

GetMultitenantBucketNameForInstallation mocks base method

func (*MockAWS) GetPrivateHostedZoneID added in v0.41.0

func (m *MockAWS) GetPrivateHostedZoneID() string

GetPrivateHostedZoneID mocks base method

func (*MockAWS) GetPrivateZoneDomainName

func (m *MockAWS) GetPrivateZoneDomainName(logger logrus.FieldLogger) (string, error)

GetPrivateZoneDomainName mocks base method

func (*MockAWS) GetPublicHostedZoneNames added in v0.54.1

func (m *MockAWS) GetPublicHostedZoneNames() []string

GetPublicHostedZoneNames mocks base method

func (*MockAWS) GetRegion added in v0.64.0

func (m *MockAWS) GetRegion() string

GetRegion mocks base method

func (*MockAWS) GetTagByKeyAndZoneID added in v0.22.0

func (m *MockAWS) GetTagByKeyAndZoneID(key, id string, logger logrus.FieldLogger) (*aws.Tag, error)

GetTagByKeyAndZoneID mocks base method

func (*MockAWS) GetVpcResources added in v0.38.0

func (m *MockAWS) GetVpcResources(clusterID string, logger logrus.FieldLogger) (aws.ClusterResources, error)

GetVpcResources mocks base method

func (*MockAWS) GetVpcResourcesByVpcID added in v0.45.0

func (m *MockAWS) GetVpcResourcesByVpcID(vpcID string, logger logrus.FieldLogger) (aws.ClusterResources, error)

GetVpcResourcesByVpcID mocks base method

func (*MockAWS) InstallEKSEBSAddon added in v0.64.0

func (m *MockAWS) InstallEKSEBSAddon(cluster *model.Cluster) error

InstallEKSEBSAddon mocks base method

func (*MockAWS) IsClusterReady added in v0.63.0

func (m *MockAWS) IsClusterReady(clusterName string) (bool, error)

IsClusterReady mocks base method

func (*MockAWS) IsProvisionedPrivateCNAME added in v0.19.0

func (m *MockAWS) IsProvisionedPrivateCNAME(dnsName string, logger logrus.FieldLogger) bool

IsProvisionedPrivateCNAME mocks base method

func (*MockAWS) IsValidAMI

func (m *MockAWS) IsValidAMI(AMIImage string, logger logrus.FieldLogger) (bool, error)

IsValidAMI mocks base method

func (*MockAWS) ReleaseVpc

func (m *MockAWS) ReleaseVpc(cluster *model.Cluster, logger logrus.FieldLogger) error

ReleaseVpc mocks base method

func (*MockAWS) RevokeEKSPostgresTraffic added in v0.64.0

func (m *MockAWS) RevokeEKSPostgresTraffic(cluster *model.Cluster, eksMetadata model.EKSMetadata) error

RevokeEKSPostgresTraffic mocks base method

func (*MockAWS) S3EnsureBucketDeleted added in v0.24.0

func (m *MockAWS) S3EnsureBucketDeleted(bucketName string, logger logrus.FieldLogger) error

S3EnsureBucketDeleted mocks base method

func (*MockAWS) S3EnsureObjectDeleted added in v0.44.0

func (m *MockAWS) S3EnsureObjectDeleted(bucketName, path string) error

S3EnsureObjectDeleted mocks base method

func (*MockAWS) S3LargeCopy added in v0.45.0

func (m *MockAWS) S3LargeCopy(srcBucketName, srcKey, destBucketName, destKey *string) error

S3LargeCopy mocks base method

func (*MockAWS) SecretsManagerGetPGBouncerAuthUserPassword added in v0.46.1

func (m *MockAWS) SecretsManagerGetPGBouncerAuthUserPassword(vpcID string) (string, error)

SecretsManagerGetPGBouncerAuthUserPassword mocks base method

func (*MockAWS) SecretsManagerValidateExternalDatabaseSecret added in v0.63.0

func (m *MockAWS) SecretsManagerValidateExternalDatabaseSecret(name string) error

SecretsManagerValidateExternalDatabaseSecret mocks base method

func (*MockAWS) SwitchClusterTags added in v0.46.1

func (m *MockAWS) SwitchClusterTags(clusterID, targetClusterID string, logger logrus.FieldLogger) error

SwitchClusterTags mocks base method

func (*MockAWS) TagResource

func (m *MockAWS) TagResource(resourceID, key, value string, logger logrus.FieldLogger) error

TagResource mocks base method

func (*MockAWS) TagResourcesByCluster added in v0.45.0

func (m *MockAWS) TagResourcesByCluster(clusterResources aws.ClusterResources, cluster *model.Cluster, owner string, logger logrus.FieldLogger) error

TagResourcesByCluster mocks base method

func (*MockAWS) UntagResource

func (m *MockAWS) UntagResource(resourceID, key, value string, logger logrus.FieldLogger) error

UntagResource mocks base method

func (*MockAWS) UpdatePublicRecordIDForCNAME added in v0.40.0

func (m *MockAWS) UpdatePublicRecordIDForCNAME(dnsName, newID string, logger logrus.FieldLogger) error

UpdatePublicRecordIDForCNAME mocks base method

func (*MockAWS) UpsertPublicCNAMEs added in v0.54.1

func (m *MockAWS) UpsertPublicCNAMEs(dnsNames, endpoints []string, logger logrus.FieldLogger) error

UpsertPublicCNAMEs mocks base method

type MockAWSMockRecorder

type MockAWSMockRecorder struct {
	// contains filtered or unexported fields
}

MockAWSMockRecorder is the mock recorder for MockAWS

func (*MockAWSMockRecorder) AllowEKSPostgresTraffic added in v0.64.0

func (mr *MockAWSMockRecorder) AllowEKSPostgresTraffic(cluster, eksMetadata interface{}) *gomock.Call

AllowEKSPostgresTraffic indicates an expected call of AllowEKSPostgresTraffic

func (*MockAWSMockRecorder) AttachPolicyToRole added in v0.24.0

func (mr *MockAWSMockRecorder) AttachPolicyToRole(roleName, policyName, logger interface{}) *gomock.Call

AttachPolicyToRole indicates an expected call of AttachPolicyToRole

func (*MockAWSMockRecorder) ClaimVPC added in v0.63.0

func (mr *MockAWSMockRecorder) ClaimVPC(vpcID, cluster, owner, logger interface{}) *gomock.Call

ClaimVPC indicates an expected call of ClaimVPC

func (*MockAWSMockRecorder) CreatePrivateCNAME

func (mr *MockAWSMockRecorder) CreatePrivateCNAME(dnsName, dnsEndpoints, logger interface{}) *gomock.Call

CreatePrivateCNAME indicates an expected call of CreatePrivateCNAME

func (*MockAWSMockRecorder) CreatePublicCNAME

func (mr *MockAWSMockRecorder) CreatePublicCNAME(dnsName, dnsEndpoints, dnsIdentifier, logger interface{}) *gomock.Call

CreatePublicCNAME indicates an expected call of CreatePublicCNAME

func (*MockAWSMockRecorder) DeletePrivateCNAME

func (mr *MockAWSMockRecorder) DeletePrivateCNAME(dnsName, logger interface{}) *gomock.Call

DeletePrivateCNAME indicates an expected call of DeletePrivateCNAME

func (*MockAWSMockRecorder) DeletePublicCNAME

func (mr *MockAWSMockRecorder) DeletePublicCNAME(dnsName, logger interface{}) *gomock.Call

DeletePublicCNAME indicates an expected call of DeletePublicCNAME

func (*MockAWSMockRecorder) DeletePublicCNAMEs added in v0.59.0

func (mr *MockAWSMockRecorder) DeletePublicCNAMEs(dnsName, logger interface{}) *gomock.Call

DeletePublicCNAMEs indicates an expected call of DeletePublicCNAMEs

func (*MockAWSMockRecorder) DetachPolicyFromRole added in v0.24.0

func (mr *MockAWSMockRecorder) DetachPolicyFromRole(roleName, policyName, logger interface{}) *gomock.Call

DetachPolicyFromRole indicates an expected call of DetachPolicyFromRole

func (*MockAWSMockRecorder) DynamoDBEnsureTableDeleted added in v0.24.0

func (mr *MockAWSMockRecorder) DynamoDBEnsureTableDeleted(tableName, logger interface{}) *gomock.Call

DynamoDBEnsureTableDeleted indicates an expected call of DynamoDBEnsureTableDeleted

func (*MockAWSMockRecorder) EnsureEKSCluster added in v0.63.0

func (mr *MockAWSMockRecorder) EnsureEKSCluster(cluster, resources, eksMetadata interface{}) *gomock.Call

EnsureEKSCluster indicates an expected call of EnsureEKSCluster

func (*MockAWSMockRecorder) EnsureEKSClusterDeleted added in v0.63.0

func (mr *MockAWSMockRecorder) EnsureEKSClusterDeleted(cluster interface{}) *gomock.Call

EnsureEKSClusterDeleted indicates an expected call of EnsureEKSClusterDeleted

func (*MockAWSMockRecorder) EnsureEKSClusterNodeGroups added in v0.63.0

func (mr *MockAWSMockRecorder) EnsureEKSClusterNodeGroups(cluster, resources, eksMetadata interface{}) *gomock.Call

EnsureEKSClusterNodeGroups indicates an expected call of EnsureEKSClusterNodeGroups

func (*MockAWSMockRecorder) EnsureNodeGroupsDeleted added in v0.63.0

func (mr *MockAWSMockRecorder) EnsureNodeGroupsDeleted(cluster interface{}) *gomock.Call

EnsureNodeGroupsDeleted indicates an expected call of EnsureNodeGroupsDeleted

func (*MockAWSMockRecorder) GenerateBifrostUtilitySecret added in v0.33.0

func (mr *MockAWSMockRecorder) GenerateBifrostUtilitySecret(clusterID, logger interface{}) *gomock.Call

GenerateBifrostUtilitySecret indicates an expected call of GenerateBifrostUtilitySecret

func (*MockAWSMockRecorder) GetAccountID added in v0.64.0

func (mr *MockAWSMockRecorder) GetAccountID() *gomock.Call

GetAccountID indicates an expected call of GetAccountID

func (*MockAWSMockRecorder) GetAndClaimVpcResources

func (mr *MockAWSMockRecorder) GetAndClaimVpcResources(cluster, owner, logger interface{}) *gomock.Call

GetAndClaimVpcResources indicates an expected call of GetAndClaimVpcResources

func (*MockAWSMockRecorder) GetCIDRByVPCTag added in v0.36.0

func (mr *MockAWSMockRecorder) GetCIDRByVPCTag(vpcTagName, logger interface{}) *gomock.Call

GetCIDRByVPCTag indicates an expected call of GetCIDRByVPCTag

func (*MockAWSMockRecorder) GetCertificateSummaryByTag

func (mr *MockAWSMockRecorder) GetCertificateSummaryByTag(key, value, logger interface{}) *gomock.Call

GetCertificateSummaryByTag indicates an expected call of GetCertificateSummaryByTag

func (*MockAWSMockRecorder) GetCloudEnvironmentName added in v0.29.0

func (mr *MockAWSMockRecorder) GetCloudEnvironmentName() *gomock.Call

GetCloudEnvironmentName indicates an expected call of GetCloudEnvironmentName

func (*MockAWSMockRecorder) GetEKSCluster added in v0.63.0

func (mr *MockAWSMockRecorder) GetEKSCluster(clusterName interface{}) *gomock.Call

GetEKSCluster indicates an expected call of GetEKSCluster

func (*MockAWSMockRecorder) GetMultitenantBucketNameForInstallation added in v0.45.0

func (mr *MockAWSMockRecorder) GetMultitenantBucketNameForInstallation(installationID, store interface{}) *gomock.Call

GetMultitenantBucketNameForInstallation indicates an expected call of GetMultitenantBucketNameForInstallation

func (*MockAWSMockRecorder) GetPrivateHostedZoneID added in v0.41.0

func (mr *MockAWSMockRecorder) GetPrivateHostedZoneID() *gomock.Call

GetPrivateHostedZoneID indicates an expected call of GetPrivateHostedZoneID

func (*MockAWSMockRecorder) GetPrivateZoneDomainName

func (mr *MockAWSMockRecorder) GetPrivateZoneDomainName(logger interface{}) *gomock.Call

GetPrivateZoneDomainName indicates an expected call of GetPrivateZoneDomainName

func (*MockAWSMockRecorder) GetPublicHostedZoneNames added in v0.54.1

func (mr *MockAWSMockRecorder) GetPublicHostedZoneNames() *gomock.Call

GetPublicHostedZoneNames indicates an expected call of GetPublicHostedZoneNames

func (*MockAWSMockRecorder) GetRegion added in v0.64.0

func (mr *MockAWSMockRecorder) GetRegion() *gomock.Call

GetRegion indicates an expected call of GetRegion

func (*MockAWSMockRecorder) GetTagByKeyAndZoneID added in v0.22.0

func (mr *MockAWSMockRecorder) GetTagByKeyAndZoneID(key, id, logger interface{}) *gomock.Call

GetTagByKeyAndZoneID indicates an expected call of GetTagByKeyAndZoneID

func (*MockAWSMockRecorder) GetVpcResources added in v0.38.0

func (mr *MockAWSMockRecorder) GetVpcResources(clusterID, logger interface{}) *gomock.Call

GetVpcResources indicates an expected call of GetVpcResources

func (*MockAWSMockRecorder) GetVpcResourcesByVpcID added in v0.45.0

func (mr *MockAWSMockRecorder) GetVpcResourcesByVpcID(vpcID, logger interface{}) *gomock.Call

GetVpcResourcesByVpcID indicates an expected call of GetVpcResourcesByVpcID

func (*MockAWSMockRecorder) InstallEKSEBSAddon added in v0.64.0

func (mr *MockAWSMockRecorder) InstallEKSEBSAddon(cluster interface{}) *gomock.Call

InstallEKSEBSAddon indicates an expected call of InstallEKSEBSAddon

func (*MockAWSMockRecorder) IsClusterReady added in v0.63.0

func (mr *MockAWSMockRecorder) IsClusterReady(clusterName interface{}) *gomock.Call

IsClusterReady indicates an expected call of IsClusterReady

func (*MockAWSMockRecorder) IsProvisionedPrivateCNAME added in v0.19.0

func (mr *MockAWSMockRecorder) IsProvisionedPrivateCNAME(dnsName, logger interface{}) *gomock.Call

IsProvisionedPrivateCNAME indicates an expected call of IsProvisionedPrivateCNAME

func (*MockAWSMockRecorder) IsValidAMI

func (mr *MockAWSMockRecorder) IsValidAMI(AMIImage, logger interface{}) *gomock.Call

IsValidAMI indicates an expected call of IsValidAMI

func (*MockAWSMockRecorder) ReleaseVpc

func (mr *MockAWSMockRecorder) ReleaseVpc(cluster, logger interface{}) *gomock.Call

ReleaseVpc indicates an expected call of ReleaseVpc

func (*MockAWSMockRecorder) RevokeEKSPostgresTraffic added in v0.64.0

func (mr *MockAWSMockRecorder) RevokeEKSPostgresTraffic(cluster, eksMetadata interface{}) *gomock.Call

RevokeEKSPostgresTraffic indicates an expected call of RevokeEKSPostgresTraffic

func (*MockAWSMockRecorder) S3EnsureBucketDeleted added in v0.24.0

func (mr *MockAWSMockRecorder) S3EnsureBucketDeleted(bucketName, logger interface{}) *gomock.Call

S3EnsureBucketDeleted indicates an expected call of S3EnsureBucketDeleted

func (*MockAWSMockRecorder) S3EnsureObjectDeleted added in v0.44.0

func (mr *MockAWSMockRecorder) S3EnsureObjectDeleted(bucketName, path interface{}) *gomock.Call

S3EnsureObjectDeleted indicates an expected call of S3EnsureObjectDeleted

func (*MockAWSMockRecorder) S3LargeCopy added in v0.45.0

func (mr *MockAWSMockRecorder) S3LargeCopy(srcBucketName, srcKey, destBucketName, destKey interface{}) *gomock.Call

S3LargeCopy indicates an expected call of S3LargeCopy

func (*MockAWSMockRecorder) SecretsManagerGetPGBouncerAuthUserPassword added in v0.46.1

func (mr *MockAWSMockRecorder) SecretsManagerGetPGBouncerAuthUserPassword(vpcID interface{}) *gomock.Call

SecretsManagerGetPGBouncerAuthUserPassword indicates an expected call of SecretsManagerGetPGBouncerAuthUserPassword

func (*MockAWSMockRecorder) SecretsManagerValidateExternalDatabaseSecret added in v0.63.0

func (mr *MockAWSMockRecorder) SecretsManagerValidateExternalDatabaseSecret(name interface{}) *gomock.Call

SecretsManagerValidateExternalDatabaseSecret indicates an expected call of SecretsManagerValidateExternalDatabaseSecret

func (*MockAWSMockRecorder) SwitchClusterTags added in v0.46.1

func (mr *MockAWSMockRecorder) SwitchClusterTags(clusterID, targetClusterID, logger interface{}) *gomock.Call

SwitchClusterTags indicates an expected call of SwitchClusterTags

func (*MockAWSMockRecorder) TagResource

func (mr *MockAWSMockRecorder) TagResource(resourceID, key, value, logger interface{}) *gomock.Call

TagResource indicates an expected call of TagResource

func (*MockAWSMockRecorder) TagResourcesByCluster added in v0.45.0

func (mr *MockAWSMockRecorder) TagResourcesByCluster(clusterResources, cluster, owner, logger interface{}) *gomock.Call

TagResourcesByCluster indicates an expected call of TagResourcesByCluster

func (*MockAWSMockRecorder) UntagResource

func (mr *MockAWSMockRecorder) UntagResource(resourceID, key, value, logger interface{}) *gomock.Call

UntagResource indicates an expected call of UntagResource

func (*MockAWSMockRecorder) UpdatePublicRecordIDForCNAME added in v0.40.0

func (mr *MockAWSMockRecorder) UpdatePublicRecordIDForCNAME(dnsName, newID, logger interface{}) *gomock.Call

UpdatePublicRecordIDForCNAME indicates an expected call of UpdatePublicRecordIDForCNAME

func (*MockAWSMockRecorder) UpsertPublicCNAMEs added in v0.54.1

func (mr *MockAWSMockRecorder) UpsertPublicCNAMEs(dnsNames, endpoints, logger interface{}) *gomock.Call

UpsertPublicCNAMEs indicates an expected call of UpsertPublicCNAMEs

Jump to

Keyboard shortcuts

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