client

package
v1.59.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package client is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClientFactory

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

MockClientFactory is a mock of ClientFactory interface.

func NewMockClientFactory

func NewMockClientFactory(ctrl *gomock.Controller) *MockClientFactory

NewMockClientFactory creates a new mock instance.

func (*MockClientFactory) EXPECT

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

func (*MockClientFactory) NewDNSClient added in v1.26.0

func (m *MockClientFactory) NewDNSClient(region, accessKeyID, accessKeySecret string) (client.DNS, error)

NewDNSClient mocks base method.

func (*MockClientFactory) NewECSClient

func (m *MockClientFactory) NewECSClient(region, accessKeyID, accessKeySecret string) (client.ECS, error)

NewECSClient mocks base method.

func (*MockClientFactory) NewOSSClient added in v1.24.0

func (m *MockClientFactory) NewOSSClient(endpoint, accessKeyID, accessKeySecret string) (client.OSS, error)

NewOSSClient mocks base method.

func (*MockClientFactory) NewOSSClientFromSecretRef added in v1.24.0

func (m *MockClientFactory) NewOSSClientFromSecretRef(ctx context.Context, c client0.Client, secretRef *v1.SecretReference, region string) (client.OSS, error)

NewOSSClientFromSecretRef mocks base method.

func (*MockClientFactory) NewRAMClient added in v1.21.0

func (m *MockClientFactory) NewRAMClient(region, accessKeyID, accessKeySecret string) (client.RAM, error)

NewRAMClient mocks base method.

func (*MockClientFactory) NewROSClient added in v1.25.0

func (m *MockClientFactory) NewROSClient(region, accessKeyID, accessKeySecret string) (client.ROS, error)

NewROSClient mocks base method.

func (*MockClientFactory) NewSLBClient

func (m *MockClientFactory) NewSLBClient(region, accessKeyID, accessKeySecret string) (client.SLB, error)

NewSLBClient mocks base method.

func (*MockClientFactory) NewSTSClient

func (m *MockClientFactory) NewSTSClient(region, accessKeyID, accessKeySecret string) (client.STS, error)

NewSTSClient mocks base method.

func (*MockClientFactory) NewVPCClient added in v1.16.0

func (m *MockClientFactory) NewVPCClient(region, accessKeyID, accessKeySecret string) (client.VPC, error)

NewVPCClient mocks base method.

type MockClientFactoryMockRecorder

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

MockClientFactoryMockRecorder is the mock recorder for MockClientFactory.

func (*MockClientFactoryMockRecorder) NewDNSClient added in v1.26.0

func (mr *MockClientFactoryMockRecorder) NewDNSClient(region, accessKeyID, accessKeySecret any) *gomock.Call

NewDNSClient indicates an expected call of NewDNSClient.

func (*MockClientFactoryMockRecorder) NewECSClient

func (mr *MockClientFactoryMockRecorder) NewECSClient(region, accessKeyID, accessKeySecret any) *gomock.Call

NewECSClient indicates an expected call of NewECSClient.

func (*MockClientFactoryMockRecorder) NewOSSClient added in v1.24.0

func (mr *MockClientFactoryMockRecorder) NewOSSClient(endpoint, accessKeyID, accessKeySecret any) *gomock.Call

NewOSSClient indicates an expected call of NewOSSClient.

func (*MockClientFactoryMockRecorder) NewOSSClientFromSecretRef added in v1.24.0

func (mr *MockClientFactoryMockRecorder) NewOSSClientFromSecretRef(ctx, c, secretRef, region any) *gomock.Call

NewOSSClientFromSecretRef indicates an expected call of NewOSSClientFromSecretRef.

func (*MockClientFactoryMockRecorder) NewRAMClient added in v1.21.0

func (mr *MockClientFactoryMockRecorder) NewRAMClient(region, accessKeyID, accessKeySecret any) *gomock.Call

NewRAMClient indicates an expected call of NewRAMClient.

func (*MockClientFactoryMockRecorder) NewROSClient added in v1.25.0

func (mr *MockClientFactoryMockRecorder) NewROSClient(region, accessKeyID, accessKeySecret any) *gomock.Call

NewROSClient indicates an expected call of NewROSClient.

func (*MockClientFactoryMockRecorder) NewSLBClient

func (mr *MockClientFactoryMockRecorder) NewSLBClient(region, accessKeyID, accessKeySecret any) *gomock.Call

NewSLBClient indicates an expected call of NewSLBClient.

func (*MockClientFactoryMockRecorder) NewSTSClient

func (mr *MockClientFactoryMockRecorder) NewSTSClient(region, accessKeyID, accessKeySecret any) *gomock.Call

NewSTSClient indicates an expected call of NewSTSClient.

func (*MockClientFactoryMockRecorder) NewVPCClient added in v1.16.0

func (mr *MockClientFactoryMockRecorder) NewVPCClient(region, accessKeyID, accessKeySecret any) *gomock.Call

NewVPCClient indicates an expected call of NewVPCClient.

type MockECS

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

MockECS is a mock of ECS interface.

func NewMockECS

func NewMockECS(ctrl *gomock.Controller) *MockECS

NewMockECS creates a new mock instance.

func (*MockECS) AllocatePublicIp added in v1.35.0

func (m *MockECS) AllocatePublicIp(id string) (*ecs.AllocatePublicIpAddressResponse, error)

AllocatePublicIp mocks base method.

func (*MockECS) AuthorizeSecurityGroup added in v1.50.0

func (m *MockECS) AuthorizeSecurityGroup(request *ecs.AuthorizeSecurityGroupRequest) (*ecs.AuthorizeSecurityGroupResponse, error)

AuthorizeSecurityGroup mocks base method.

func (*MockECS) AuthorizeSecurityGroupEgress added in v1.50.0

func (m *MockECS) AuthorizeSecurityGroupEgress(request *ecs.AuthorizeSecurityGroupEgressRequest) (*ecs.AuthorizeSecurityGroupEgressResponse, error)

AuthorizeSecurityGroupEgress mocks base method.

func (*MockECS) CheckIfImageExists

func (m *MockECS) CheckIfImageExists(imageID string) (bool, error)

CheckIfImageExists mocks base method.

func (*MockECS) CheckIfImageOwnedByAliCloud added in v1.25.0

func (m *MockECS) CheckIfImageOwnedByAliCloud(imageID string) (bool, error)

CheckIfImageOwnedByAliCloud mocks base method.

func (*MockECS) CreateEgressRule added in v1.35.0

func (m *MockECS) CreateEgressRule(request *ecs.AuthorizeSecurityGroupEgressRequest) error

CreateEgressRule mocks base method.

func (*MockECS) CreateIngressRule added in v1.35.0

func (m *MockECS) CreateIngressRule(request *ecs.AuthorizeSecurityGroupRequest) error

CreateIngressRule mocks base method.

func (*MockECS) CreateInstances added in v1.35.0

func (m *MockECS) CreateInstances(instanceName, securityGroupID, imageID, vSwitchId, zoneID, instanceTypeID, userData string) (*ecs.RunInstancesResponse, error)

CreateInstances mocks base method.

func (*MockECS) CreateSecurityGroup added in v1.50.0

func (m *MockECS) CreateSecurityGroup(request *ecs.CreateSecurityGroupRequest) (*ecs.CreateSecurityGroupResponse, error)

CreateSecurityGroup mocks base method.

func (*MockECS) CreateSecurityGroups added in v1.35.0

func (m *MockECS) CreateSecurityGroups(vpcId, name string) (*ecs.CreateSecurityGroupResponse, error)

CreateSecurityGroups mocks base method.

func (*MockECS) DeleteInstances added in v1.35.0

func (m *MockECS) DeleteInstances(id string, force bool) error

DeleteInstances mocks base method.

func (*MockECS) DeleteSecurityGroup added in v1.50.0

func (m *MockECS) DeleteSecurityGroup(request *ecs.DeleteSecurityGroupRequest) (*ecs.DeleteSecurityGroupResponse, error)

DeleteSecurityGroup mocks base method.

func (*MockECS) DeleteSecurityGroups added in v1.35.0

func (m *MockECS) DeleteSecurityGroups(id string) error

DeleteSecurityGroups mocks base method.

func (*MockECS) DescribeKeyPairs added in v1.24.0

func (m *MockECS) DescribeKeyPairs(request *ecs.DescribeKeyPairsRequest) (*ecs.DescribeKeyPairsResponse, error)

DescribeKeyPairs mocks base method.

func (*MockECS) DescribeSecurityGroupAttribute added in v1.24.0

func (m *MockECS) DescribeSecurityGroupAttribute(request *ecs.DescribeSecurityGroupAttributeRequest) (*ecs.DescribeSecurityGroupAttributeResponse, error)

DescribeSecurityGroupAttribute mocks base method.

func (*MockECS) DescribeSecurityGroups added in v1.24.0

func (m *MockECS) DescribeSecurityGroups(request *ecs.DescribeSecurityGroupsRequest) (*ecs.DescribeSecurityGroupsResponse, error)

DescribeSecurityGroups mocks base method.

func (*MockECS) DetachECSInstancesFromSSHKeyPair added in v1.27.0

func (m *MockECS) DetachECSInstancesFromSSHKeyPair(keyName string) error

DetachECSInstancesFromSSHKeyPair mocks base method.

func (*MockECS) EXPECT

func (m *MockECS) EXPECT() *MockECSMockRecorder

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

func (*MockECS) GetAvailableInstanceType added in v1.57.0

func (m *MockECS) GetAvailableInstanceType(core int, zoneID string) (*ecs.DescribeAvailableResourceResponse, error)

GetAvailableInstanceType mocks base method.

func (*MockECS) GetImageInfo added in v1.57.0

func (m *MockECS) GetImageInfo(imageID string) (*ecs.DescribeImagesResponse, error)

GetImageInfo mocks base method.

func (*MockECS) GetInstances added in v1.35.0

func (m *MockECS) GetInstances(name string) (*ecs.DescribeInstancesResponse, error)

GetInstances mocks base method.

func (*MockECS) GetSecurityGroup added in v1.35.0

func (m *MockECS) GetSecurityGroup(name string) (*ecs.DescribeSecurityGroupsResponse, error)

GetSecurityGroup mocks base method.

func (*MockECS) GetSecurityGroupWithID added in v1.40.0

func (m *MockECS) GetSecurityGroupWithID(id string) (*ecs.DescribeSecurityGroupsResponse, error)

GetSecurityGroupWithID mocks base method.

func (*MockECS) ListAllInstanceType added in v1.57.0

func (m *MockECS) ListAllInstanceType() (*ecs.DescribeInstanceTypesResponse, error)

ListAllInstanceType mocks base method.

func (*MockECS) ListTagResources added in v1.50.0

func (m *MockECS) ListTagResources(request *ecs.ListTagResourcesRequest) (*ecs.ListTagResourcesResponse, error)

ListTagResources mocks base method.

func (*MockECS) RevokeEgressRule added in v1.35.0

func (m *MockECS) RevokeEgressRule(request *ecs.RevokeSecurityGroupEgressRequest) error

RevokeEgressRule mocks base method.

func (*MockECS) RevokeIngressRule added in v1.35.0

func (m *MockECS) RevokeIngressRule(request *ecs.RevokeSecurityGroupRequest) error

RevokeIngressRule mocks base method.

func (*MockECS) RevokeSecurityGroup added in v1.50.0

func (m *MockECS) RevokeSecurityGroup(request *ecs.RevokeSecurityGroupRequest) (*ecs.RevokeSecurityGroupResponse, error)

RevokeSecurityGroup mocks base method.

func (*MockECS) RevokeSecurityGroupEgress added in v1.50.0

func (m *MockECS) RevokeSecurityGroupEgress(request *ecs.RevokeSecurityGroupEgressRequest) (*ecs.RevokeSecurityGroupEgressResponse, error)

RevokeSecurityGroupEgress mocks base method.

func (*MockECS) ShareImageToAccount

func (m *MockECS) ShareImageToAccount(ctx context.Context, regionID, imageID, accountID string) error

ShareImageToAccount mocks base method.

func (*MockECS) TagResources added in v1.50.0

func (m *MockECS) TagResources(request *ecs.TagResourcesRequest) (*ecs.TagResourcesResponse, error)

TagResources mocks base method.

func (*MockECS) UntagResources added in v1.50.0

func (m *MockECS) UntagResources(request *ecs.UntagResourcesRequest) (*ecs.UntagResourcesResponse, error)

UntagResources mocks base method.

type MockECSMockRecorder

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

MockECSMockRecorder is the mock recorder for MockECS.

func (*MockECSMockRecorder) AllocatePublicIp added in v1.35.0

func (mr *MockECSMockRecorder) AllocatePublicIp(id any) *gomock.Call

AllocatePublicIp indicates an expected call of AllocatePublicIp.

func (*MockECSMockRecorder) AuthorizeSecurityGroup added in v1.50.0

func (mr *MockECSMockRecorder) AuthorizeSecurityGroup(request any) *gomock.Call

AuthorizeSecurityGroup indicates an expected call of AuthorizeSecurityGroup.

func (*MockECSMockRecorder) AuthorizeSecurityGroupEgress added in v1.50.0

func (mr *MockECSMockRecorder) AuthorizeSecurityGroupEgress(request any) *gomock.Call

AuthorizeSecurityGroupEgress indicates an expected call of AuthorizeSecurityGroupEgress.

func (*MockECSMockRecorder) CheckIfImageExists

func (mr *MockECSMockRecorder) CheckIfImageExists(imageID any) *gomock.Call

CheckIfImageExists indicates an expected call of CheckIfImageExists.

func (*MockECSMockRecorder) CheckIfImageOwnedByAliCloud added in v1.25.0

func (mr *MockECSMockRecorder) CheckIfImageOwnedByAliCloud(imageID any) *gomock.Call

CheckIfImageOwnedByAliCloud indicates an expected call of CheckIfImageOwnedByAliCloud.

func (*MockECSMockRecorder) CreateEgressRule added in v1.35.0

func (mr *MockECSMockRecorder) CreateEgressRule(request any) *gomock.Call

CreateEgressRule indicates an expected call of CreateEgressRule.

func (*MockECSMockRecorder) CreateIngressRule added in v1.35.0

func (mr *MockECSMockRecorder) CreateIngressRule(request any) *gomock.Call

CreateIngressRule indicates an expected call of CreateIngressRule.

func (*MockECSMockRecorder) CreateInstances added in v1.35.0

func (mr *MockECSMockRecorder) CreateInstances(instanceName, securityGroupID, imageID, vSwitchId, zoneID, instanceTypeID, userData any) *gomock.Call

CreateInstances indicates an expected call of CreateInstances.

func (*MockECSMockRecorder) CreateSecurityGroup added in v1.50.0

func (mr *MockECSMockRecorder) CreateSecurityGroup(request any) *gomock.Call

CreateSecurityGroup indicates an expected call of CreateSecurityGroup.

func (*MockECSMockRecorder) CreateSecurityGroups added in v1.35.0

func (mr *MockECSMockRecorder) CreateSecurityGroups(vpcId, name any) *gomock.Call

CreateSecurityGroups indicates an expected call of CreateSecurityGroups.

func (*MockECSMockRecorder) DeleteInstances added in v1.35.0

func (mr *MockECSMockRecorder) DeleteInstances(id, force any) *gomock.Call

DeleteInstances indicates an expected call of DeleteInstances.

func (*MockECSMockRecorder) DeleteSecurityGroup added in v1.50.0

func (mr *MockECSMockRecorder) DeleteSecurityGroup(request any) *gomock.Call

DeleteSecurityGroup indicates an expected call of DeleteSecurityGroup.

func (*MockECSMockRecorder) DeleteSecurityGroups added in v1.35.0

func (mr *MockECSMockRecorder) DeleteSecurityGroups(id any) *gomock.Call

DeleteSecurityGroups indicates an expected call of DeleteSecurityGroups.

func (*MockECSMockRecorder) DescribeKeyPairs added in v1.24.0

func (mr *MockECSMockRecorder) DescribeKeyPairs(request any) *gomock.Call

DescribeKeyPairs indicates an expected call of DescribeKeyPairs.

func (*MockECSMockRecorder) DescribeSecurityGroupAttribute added in v1.24.0

func (mr *MockECSMockRecorder) DescribeSecurityGroupAttribute(request any) *gomock.Call

DescribeSecurityGroupAttribute indicates an expected call of DescribeSecurityGroupAttribute.

func (*MockECSMockRecorder) DescribeSecurityGroups added in v1.24.0

func (mr *MockECSMockRecorder) DescribeSecurityGroups(request any) *gomock.Call

DescribeSecurityGroups indicates an expected call of DescribeSecurityGroups.

func (*MockECSMockRecorder) DetachECSInstancesFromSSHKeyPair added in v1.27.0

func (mr *MockECSMockRecorder) DetachECSInstancesFromSSHKeyPair(keyName any) *gomock.Call

DetachECSInstancesFromSSHKeyPair indicates an expected call of DetachECSInstancesFromSSHKeyPair.

func (*MockECSMockRecorder) GetAvailableInstanceType added in v1.57.0

func (mr *MockECSMockRecorder) GetAvailableInstanceType(core, zoneID any) *gomock.Call

GetAvailableInstanceType indicates an expected call of GetAvailableInstanceType.

func (*MockECSMockRecorder) GetImageInfo added in v1.57.0

func (mr *MockECSMockRecorder) GetImageInfo(imageID any) *gomock.Call

GetImageInfo indicates an expected call of GetImageInfo.

func (*MockECSMockRecorder) GetInstances added in v1.35.0

func (mr *MockECSMockRecorder) GetInstances(name any) *gomock.Call

GetInstances indicates an expected call of GetInstances.

func (*MockECSMockRecorder) GetSecurityGroup added in v1.35.0

func (mr *MockECSMockRecorder) GetSecurityGroup(name any) *gomock.Call

GetSecurityGroup indicates an expected call of GetSecurityGroup.

func (*MockECSMockRecorder) GetSecurityGroupWithID added in v1.40.0

func (mr *MockECSMockRecorder) GetSecurityGroupWithID(id any) *gomock.Call

GetSecurityGroupWithID indicates an expected call of GetSecurityGroupWithID.

func (*MockECSMockRecorder) ListAllInstanceType added in v1.57.0

func (mr *MockECSMockRecorder) ListAllInstanceType() *gomock.Call

ListAllInstanceType indicates an expected call of ListAllInstanceType.

func (*MockECSMockRecorder) ListTagResources added in v1.50.0

func (mr *MockECSMockRecorder) ListTagResources(request any) *gomock.Call

ListTagResources indicates an expected call of ListTagResources.

func (*MockECSMockRecorder) RevokeEgressRule added in v1.35.0

func (mr *MockECSMockRecorder) RevokeEgressRule(request any) *gomock.Call

RevokeEgressRule indicates an expected call of RevokeEgressRule.

func (*MockECSMockRecorder) RevokeIngressRule added in v1.35.0

func (mr *MockECSMockRecorder) RevokeIngressRule(request any) *gomock.Call

RevokeIngressRule indicates an expected call of RevokeIngressRule.

func (*MockECSMockRecorder) RevokeSecurityGroup added in v1.50.0

func (mr *MockECSMockRecorder) RevokeSecurityGroup(request any) *gomock.Call

RevokeSecurityGroup indicates an expected call of RevokeSecurityGroup.

func (*MockECSMockRecorder) RevokeSecurityGroupEgress added in v1.50.0

func (mr *MockECSMockRecorder) RevokeSecurityGroupEgress(request any) *gomock.Call

RevokeSecurityGroupEgress indicates an expected call of RevokeSecurityGroupEgress.

func (*MockECSMockRecorder) ShareImageToAccount

func (mr *MockECSMockRecorder) ShareImageToAccount(ctx, regionID, imageID, accountID any) *gomock.Call

ShareImageToAccount indicates an expected call of ShareImageToAccount.

func (*MockECSMockRecorder) TagResources added in v1.50.0

func (mr *MockECSMockRecorder) TagResources(request any) *gomock.Call

TagResources indicates an expected call of TagResources.

func (*MockECSMockRecorder) UntagResources added in v1.50.0

func (mr *MockECSMockRecorder) UntagResources(request any) *gomock.Call

UntagResources indicates an expected call of UntagResources.

type MockOSS added in v1.24.0

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

MockOSS is a mock of OSS interface.

func NewMockOSS added in v1.24.0

func NewMockOSS(ctrl *gomock.Controller) *MockOSS

NewMockOSS creates a new mock instance.

func (*MockOSS) CreateBucketIfNotExists added in v1.24.0

func (m *MockOSS) CreateBucketIfNotExists(ctx context.Context, bucketName string) error

CreateBucketIfNotExists mocks base method.

func (*MockOSS) DeleteBucketIfExists added in v1.24.0

func (m *MockOSS) DeleteBucketIfExists(ctx context.Context, bucketName string) error

DeleteBucketIfExists mocks base method.

func (*MockOSS) DeleteObjectsWithPrefix added in v1.24.0

func (m *MockOSS) DeleteObjectsWithPrefix(ctx context.Context, bucketName, prefix string) error

DeleteObjectsWithPrefix mocks base method.

func (*MockOSS) EXPECT added in v1.24.0

func (m *MockOSS) EXPECT() *MockOSSMockRecorder

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

func (*MockOSS) GetBucketInfo added in v1.52.0

func (m *MockOSS) GetBucketInfo(ctx context.Context, bucketName string) (*oss.BucketInfo, error)

GetBucketInfo mocks base method.

type MockOSSMockRecorder added in v1.24.0

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

MockOSSMockRecorder is the mock recorder for MockOSS.

func (*MockOSSMockRecorder) CreateBucketIfNotExists added in v1.24.0

func (mr *MockOSSMockRecorder) CreateBucketIfNotExists(ctx, bucketName any) *gomock.Call

CreateBucketIfNotExists indicates an expected call of CreateBucketIfNotExists.

func (*MockOSSMockRecorder) DeleteBucketIfExists added in v1.24.0

func (mr *MockOSSMockRecorder) DeleteBucketIfExists(ctx, bucketName any) *gomock.Call

DeleteBucketIfExists indicates an expected call of DeleteBucketIfExists.

func (*MockOSSMockRecorder) DeleteObjectsWithPrefix added in v1.24.0

func (mr *MockOSSMockRecorder) DeleteObjectsWithPrefix(ctx, bucketName, prefix any) *gomock.Call

DeleteObjectsWithPrefix indicates an expected call of DeleteObjectsWithPrefix.

func (*MockOSSMockRecorder) GetBucketInfo added in v1.52.0

func (mr *MockOSSMockRecorder) GetBucketInfo(ctx, bucketName any) *gomock.Call

GetBucketInfo indicates an expected call of GetBucketInfo.

type MockRAM added in v1.21.0

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

MockRAM is a mock of RAM interface.

func NewMockRAM added in v1.21.0

func NewMockRAM(ctrl *gomock.Controller) *MockRAM

NewMockRAM creates a new mock instance.

func (*MockRAM) CreateServiceLinkedRole added in v1.21.0

func (m *MockRAM) CreateServiceLinkedRole(regionID, serviceName string) error

CreateServiceLinkedRole mocks base method.

func (*MockRAM) EXPECT added in v1.21.0

func (m *MockRAM) EXPECT() *MockRAMMockRecorder

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

func (*MockRAM) GetServiceLinkedRole added in v1.21.0

func (m *MockRAM) GetServiceLinkedRole(roleName string) (*resourcemanager.Role, error)

GetServiceLinkedRole mocks base method.

type MockRAMMockRecorder added in v1.21.0

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

MockRAMMockRecorder is the mock recorder for MockRAM.

func (*MockRAMMockRecorder) CreateServiceLinkedRole added in v1.21.0

func (mr *MockRAMMockRecorder) CreateServiceLinkedRole(regionID, serviceName any) *gomock.Call

CreateServiceLinkedRole indicates an expected call of CreateServiceLinkedRole.

func (*MockRAMMockRecorder) GetServiceLinkedRole added in v1.21.0

func (mr *MockRAMMockRecorder) GetServiceLinkedRole(roleName any) *gomock.Call

GetServiceLinkedRole indicates an expected call of GetServiceLinkedRole.

type MockROS added in v1.25.0

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

MockROS is a mock of ROS interface.

func NewMockROS added in v1.25.0

func NewMockROS(ctrl *gomock.Controller) *MockROS

NewMockROS creates a new mock instance.

func (*MockROS) CreateStack added in v1.25.0

func (m *MockROS) CreateStack(request *ros.CreateStackRequest) (*ros.CreateStackResponse, error)

CreateStack mocks base method.

func (*MockROS) DeleteStack added in v1.25.0

func (m *MockROS) DeleteStack(request *ros.DeleteStackRequest) (*ros.DeleteStackResponse, error)

DeleteStack mocks base method.

func (*MockROS) EXPECT added in v1.25.0

func (m *MockROS) EXPECT() *MockROSMockRecorder

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

func (*MockROS) GetStack added in v1.25.0

func (m *MockROS) GetStack(request *ros.GetStackRequest) (*ros.GetStackResponse, error)

GetStack mocks base method.

func (*MockROS) ListStacks added in v1.25.0

func (m *MockROS) ListStacks(request *ros.ListStacksRequest) (*ros.ListStacksResponse, error)

ListStacks mocks base method.

type MockROSMockRecorder added in v1.25.0

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

MockROSMockRecorder is the mock recorder for MockROS.

func (*MockROSMockRecorder) CreateStack added in v1.25.0

func (mr *MockROSMockRecorder) CreateStack(request any) *gomock.Call

CreateStack indicates an expected call of CreateStack.

func (*MockROSMockRecorder) DeleteStack added in v1.25.0

func (mr *MockROSMockRecorder) DeleteStack(request any) *gomock.Call

DeleteStack indicates an expected call of DeleteStack.

func (*MockROSMockRecorder) GetStack added in v1.25.0

func (mr *MockROSMockRecorder) GetStack(request any) *gomock.Call

GetStack indicates an expected call of GetStack.

func (*MockROSMockRecorder) ListStacks added in v1.25.0

func (mr *MockROSMockRecorder) ListStacks(request any) *gomock.Call

ListStacks indicates an expected call of ListStacks.

type MockSLB

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

MockSLB is a mock of SLB interface.

func NewMockSLB

func NewMockSLB(ctrl *gomock.Controller) *MockSLB

NewMockSLB creates a new mock instance.

func (*MockSLB) DeleteLoadBalancer

func (m *MockSLB) DeleteLoadBalancer(ctx context.Context, region, loadBalancerID string) error

DeleteLoadBalancer mocks base method.

func (*MockSLB) EXPECT

func (m *MockSLB) EXPECT() *MockSLBMockRecorder

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

func (*MockSLB) GetFirstVServerGroupName

func (m *MockSLB) GetFirstVServerGroupName(ctx context.Context, region, loadBalancerID string) (string, error)

GetFirstVServerGroupName mocks base method.

func (*MockSLB) GetLoadBalancerIDs

func (m *MockSLB) GetLoadBalancerIDs(ctx context.Context, region string) ([]string, error)

GetLoadBalancerIDs mocks base method.

func (*MockSLB) SetLoadBalancerDeleteProtection added in v1.19.0

func (m *MockSLB) SetLoadBalancerDeleteProtection(ctx context.Context, region, loadBalancerID string, protection bool) error

SetLoadBalancerDeleteProtection mocks base method.

type MockSLBMockRecorder

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

MockSLBMockRecorder is the mock recorder for MockSLB.

func (*MockSLBMockRecorder) DeleteLoadBalancer

func (mr *MockSLBMockRecorder) DeleteLoadBalancer(ctx, region, loadBalancerID any) *gomock.Call

DeleteLoadBalancer indicates an expected call of DeleteLoadBalancer.

func (*MockSLBMockRecorder) GetFirstVServerGroupName

func (mr *MockSLBMockRecorder) GetFirstVServerGroupName(ctx, region, loadBalancerID any) *gomock.Call

GetFirstVServerGroupName indicates an expected call of GetFirstVServerGroupName.

func (*MockSLBMockRecorder) GetLoadBalancerIDs

func (mr *MockSLBMockRecorder) GetLoadBalancerIDs(ctx, region any) *gomock.Call

GetLoadBalancerIDs indicates an expected call of GetLoadBalancerIDs.

func (*MockSLBMockRecorder) SetLoadBalancerDeleteProtection added in v1.19.0

func (mr *MockSLBMockRecorder) SetLoadBalancerDeleteProtection(ctx, region, loadBalancerID, protection any) *gomock.Call

SetLoadBalancerDeleteProtection indicates an expected call of SetLoadBalancerDeleteProtection.

type MockSTS

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

MockSTS is a mock of STS interface.

func NewMockSTS

func NewMockSTS(ctrl *gomock.Controller) *MockSTS

NewMockSTS creates a new mock instance.

func (*MockSTS) EXPECT

func (m *MockSTS) EXPECT() *MockSTSMockRecorder

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

func (*MockSTS) GetAccountIDFromCallerIdentity

func (m *MockSTS) GetAccountIDFromCallerIdentity(ctx context.Context) (string, error)

GetAccountIDFromCallerIdentity mocks base method.

type MockSTSMockRecorder

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

MockSTSMockRecorder is the mock recorder for MockSTS.

func (*MockSTSMockRecorder) GetAccountIDFromCallerIdentity

func (mr *MockSTSMockRecorder) GetAccountIDFromCallerIdentity(ctx any) *gomock.Call

GetAccountIDFromCallerIdentity indicates an expected call of GetAccountIDFromCallerIdentity.

type MockVPC

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

MockVPC is a mock of VPC interface.

func NewMockVPC

func NewMockVPC(ctrl *gomock.Controller) *MockVPC

NewMockVPC creates a new mock instance.

func (*MockVPC) AllocateEipAddress added in v1.50.0

func (m *MockVPC) AllocateEipAddress(request *vpc.AllocateEipAddressRequest) (*vpc.AllocateEipAddressResponse, error)

AllocateEipAddress mocks base method.

func (*MockVPC) AssociateEipAddress added in v1.50.0

func (m *MockVPC) AssociateEipAddress(request *vpc.AssociateEipAddressRequest) (*vpc.AssociateEipAddressResponse, error)

AssociateEipAddress mocks base method.

func (*MockVPC) CreateNatGateway added in v1.24.0

func (m *MockVPC) CreateNatGateway(request *vpc.CreateNatGatewayRequest) (*vpc.CreateNatGatewayResponse, error)

CreateNatGateway mocks base method.

func (*MockVPC) CreateSnatEntry added in v1.50.0

func (m *MockVPC) CreateSnatEntry(request *vpc.CreateSnatEntryRequest) (*vpc.CreateSnatEntryResponse, error)

CreateSnatEntry mocks base method.

func (*MockVPC) CreateVSwitch added in v1.24.0

func (m *MockVPC) CreateVSwitch(request *vpc.CreateVSwitchRequest) (*vpc.CreateVSwitchResponse, error)

CreateVSwitch mocks base method.

func (*MockVPC) CreateVpc added in v1.24.0

func (m *MockVPC) CreateVpc(request *vpc.CreateVpcRequest) (*vpc.CreateVpcResponse, error)

CreateVpc mocks base method.

func (*MockVPC) DeleteNatGateway added in v1.24.0

func (m *MockVPC) DeleteNatGateway(request *vpc.DeleteNatGatewayRequest) (*vpc.DeleteNatGatewayResponse, error)

DeleteNatGateway mocks base method.

func (*MockVPC) DeleteSnatEntry added in v1.50.0

func (m *MockVPC) DeleteSnatEntry(request *vpc.DeleteSnatEntryRequest) (*vpc.DeleteSnatEntryResponse, error)

DeleteSnatEntry mocks base method.

func (*MockVPC) DeleteVSwitch added in v1.24.0

func (m *MockVPC) DeleteVSwitch(request *vpc.DeleteVSwitchRequest) (*vpc.DeleteVSwitchResponse, error)

DeleteVSwitch mocks base method.

func (*MockVPC) DeleteVpc added in v1.24.0

func (m *MockVPC) DeleteVpc(request *vpc.DeleteVpcRequest) (*vpc.DeleteVpcResponse, error)

DeleteVpc mocks base method.

func (*MockVPC) DescribeEipAddresses

func (m *MockVPC) DescribeEipAddresses(request *vpc.DescribeEipAddressesRequest) (*vpc.DescribeEipAddressesResponse, error)

DescribeEipAddresses mocks base method.

func (*MockVPC) DescribeNatGateways

func (m *MockVPC) DescribeNatGateways(request *vpc.DescribeNatGatewaysRequest) (*vpc.DescribeNatGatewaysResponse, error)

DescribeNatGateways mocks base method.

func (*MockVPC) DescribeSnatTableEntries added in v1.24.0

func (m *MockVPC) DescribeSnatTableEntries(request *vpc.DescribeSnatTableEntriesRequest) (*vpc.DescribeSnatTableEntriesResponse, error)

DescribeSnatTableEntries mocks base method.

func (*MockVPC) DescribeVSwitches added in v1.24.0

func (m *MockVPC) DescribeVSwitches(request *vpc.DescribeVSwitchesRequest) (*vpc.DescribeVSwitchesResponse, error)

DescribeVSwitches mocks base method.

func (*MockVPC) DescribeVpcs

func (m *MockVPC) DescribeVpcs(request *vpc.DescribeVpcsRequest) (*vpc.DescribeVpcsResponse, error)

DescribeVpcs mocks base method.

func (*MockVPC) EXPECT

func (m *MockVPC) EXPECT() *MockVPCMockRecorder

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

func (*MockVPC) FetchEIPInternetChargeType added in v1.24.0

func (m *MockVPC) FetchEIPInternetChargeType(ctx context.Context, natGateway *vpc.NatGateway, vpcID string) (string, error)

FetchEIPInternetChargeType mocks base method.

func (*MockVPC) GetEIPWithID added in v1.24.0

func (m *MockVPC) GetEIPWithID(ctx context.Context, eipID string) ([]vpc.EipAddress, error)

GetEIPWithID mocks base method.

func (*MockVPC) GetEnhanhcedNatGatewayAvailableZones added in v1.34.0

func (m *MockVPC) GetEnhanhcedNatGatewayAvailableZones(ctx context.Context, region string) ([]string, error)

GetEnhanhcedNatGatewayAvailableZones mocks base method.

func (*MockVPC) GetNatGatewaysWithVPCID added in v1.24.0

func (m *MockVPC) GetNatGatewaysWithVPCID(ctx context.Context, vpcID string) ([]vpc.NatGateway, error)

GetNatGatewaysWithVPCID mocks base method.

func (*MockVPC) GetVPCInfo added in v1.24.0

func (m *MockVPC) GetVPCInfo(ctx context.Context, vpcID string) (*client.VPCInfo, error)

GetVPCInfo mocks base method.

func (*MockVPC) GetVPCInfoByName added in v1.35.0

func (m *MockVPC) GetVPCInfoByName(name string) (*client.VPCInfo, error)

GetVPCInfoByName mocks base method.

func (*MockVPC) GetVPCWithID added in v1.24.0

func (m *MockVPC) GetVPCWithID(ctx context.Context, vpcID string) ([]vpc.Vpc, error)

GetVPCWithID mocks base method.

func (*MockVPC) GetVSwitchesInfoByID added in v1.35.0

func (m *MockVPC) GetVSwitchesInfoByID(name string) (*client.VSwitchInfo, error)

GetVSwitchesInfoByID mocks base method.

func (*MockVPC) ListEnhanhcedNatGatewayAvailableZones added in v1.51.0

ListEnhanhcedNatGatewayAvailableZones mocks base method.

func (*MockVPC) ListTagResources added in v1.50.0

func (m *MockVPC) ListTagResources(request *vpc.ListTagResourcesRequest) (*vpc.ListTagResourcesResponse, error)

ListTagResources mocks base method.

func (*MockVPC) ModifyEipAddressAttribute added in v1.50.0

func (m *MockVPC) ModifyEipAddressAttribute(request *vpc.ModifyEipAddressAttributeRequest) (*vpc.ModifyEipAddressAttributeResponse, error)

ModifyEipAddressAttribute mocks base method.

func (*MockVPC) ReleaseEipAddress added in v1.50.0

func (m *MockVPC) ReleaseEipAddress(request *vpc.ReleaseEipAddressRequest) (*vpc.ReleaseEipAddressResponse, error)

ReleaseEipAddress mocks base method.

func (*MockVPC) TagResources added in v1.50.0

func (m *MockVPC) TagResources(request *vpc.TagResourcesRequest) (*vpc.TagResourcesResponse, error)

TagResources mocks base method.

func (*MockVPC) UnTagResources added in v1.50.0

func (m *MockVPC) UnTagResources(request *vpc.UnTagResourcesRequest) (*vpc.UnTagResourcesResponse, error)

UnTagResources mocks base method.

func (*MockVPC) UnassociateEipAddress added in v1.50.0

func (m *MockVPC) UnassociateEipAddress(request *vpc.UnassociateEipAddressRequest) (*vpc.UnassociateEipAddressResponse, error)

UnassociateEipAddress mocks base method.

type MockVPCMockRecorder

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

MockVPCMockRecorder is the mock recorder for MockVPC.

func (*MockVPCMockRecorder) AllocateEipAddress added in v1.50.0

func (mr *MockVPCMockRecorder) AllocateEipAddress(request any) *gomock.Call

AllocateEipAddress indicates an expected call of AllocateEipAddress.

func (*MockVPCMockRecorder) AssociateEipAddress added in v1.50.0

func (mr *MockVPCMockRecorder) AssociateEipAddress(request any) *gomock.Call

AssociateEipAddress indicates an expected call of AssociateEipAddress.

func (*MockVPCMockRecorder) CreateNatGateway added in v1.24.0

func (mr *MockVPCMockRecorder) CreateNatGateway(request any) *gomock.Call

CreateNatGateway indicates an expected call of CreateNatGateway.

func (*MockVPCMockRecorder) CreateSnatEntry added in v1.50.0

func (mr *MockVPCMockRecorder) CreateSnatEntry(request any) *gomock.Call

CreateSnatEntry indicates an expected call of CreateSnatEntry.

func (*MockVPCMockRecorder) CreateVSwitch added in v1.24.0

func (mr *MockVPCMockRecorder) CreateVSwitch(request any) *gomock.Call

CreateVSwitch indicates an expected call of CreateVSwitch.

func (*MockVPCMockRecorder) CreateVpc added in v1.24.0

func (mr *MockVPCMockRecorder) CreateVpc(request any) *gomock.Call

CreateVpc indicates an expected call of CreateVpc.

func (*MockVPCMockRecorder) DeleteNatGateway added in v1.24.0

func (mr *MockVPCMockRecorder) DeleteNatGateway(request any) *gomock.Call

DeleteNatGateway indicates an expected call of DeleteNatGateway.

func (*MockVPCMockRecorder) DeleteSnatEntry added in v1.50.0

func (mr *MockVPCMockRecorder) DeleteSnatEntry(request any) *gomock.Call

DeleteSnatEntry indicates an expected call of DeleteSnatEntry.

func (*MockVPCMockRecorder) DeleteVSwitch added in v1.24.0

func (mr *MockVPCMockRecorder) DeleteVSwitch(request any) *gomock.Call

DeleteVSwitch indicates an expected call of DeleteVSwitch.

func (*MockVPCMockRecorder) DeleteVpc added in v1.24.0

func (mr *MockVPCMockRecorder) DeleteVpc(request any) *gomock.Call

DeleteVpc indicates an expected call of DeleteVpc.

func (*MockVPCMockRecorder) DescribeEipAddresses

func (mr *MockVPCMockRecorder) DescribeEipAddresses(request any) *gomock.Call

DescribeEipAddresses indicates an expected call of DescribeEipAddresses.

func (*MockVPCMockRecorder) DescribeNatGateways

func (mr *MockVPCMockRecorder) DescribeNatGateways(request any) *gomock.Call

DescribeNatGateways indicates an expected call of DescribeNatGateways.

func (*MockVPCMockRecorder) DescribeSnatTableEntries added in v1.24.0

func (mr *MockVPCMockRecorder) DescribeSnatTableEntries(request any) *gomock.Call

DescribeSnatTableEntries indicates an expected call of DescribeSnatTableEntries.

func (*MockVPCMockRecorder) DescribeVSwitches added in v1.24.0

func (mr *MockVPCMockRecorder) DescribeVSwitches(request any) *gomock.Call

DescribeVSwitches indicates an expected call of DescribeVSwitches.

func (*MockVPCMockRecorder) DescribeVpcs

func (mr *MockVPCMockRecorder) DescribeVpcs(request any) *gomock.Call

DescribeVpcs indicates an expected call of DescribeVpcs.

func (*MockVPCMockRecorder) FetchEIPInternetChargeType added in v1.24.0

func (mr *MockVPCMockRecorder) FetchEIPInternetChargeType(ctx, natGateway, vpcID any) *gomock.Call

FetchEIPInternetChargeType indicates an expected call of FetchEIPInternetChargeType.

func (*MockVPCMockRecorder) GetEIPWithID added in v1.24.0

func (mr *MockVPCMockRecorder) GetEIPWithID(ctx, eipID any) *gomock.Call

GetEIPWithID indicates an expected call of GetEIPWithID.

func (*MockVPCMockRecorder) GetEnhanhcedNatGatewayAvailableZones added in v1.34.0

func (mr *MockVPCMockRecorder) GetEnhanhcedNatGatewayAvailableZones(ctx, region any) *gomock.Call

GetEnhanhcedNatGatewayAvailableZones indicates an expected call of GetEnhanhcedNatGatewayAvailableZones.

func (*MockVPCMockRecorder) GetNatGatewaysWithVPCID added in v1.24.0

func (mr *MockVPCMockRecorder) GetNatGatewaysWithVPCID(ctx, vpcID any) *gomock.Call

GetNatGatewaysWithVPCID indicates an expected call of GetNatGatewaysWithVPCID.

func (*MockVPCMockRecorder) GetVPCInfo added in v1.24.0

func (mr *MockVPCMockRecorder) GetVPCInfo(ctx, vpcID any) *gomock.Call

GetVPCInfo indicates an expected call of GetVPCInfo.

func (*MockVPCMockRecorder) GetVPCInfoByName added in v1.35.0

func (mr *MockVPCMockRecorder) GetVPCInfoByName(name any) *gomock.Call

GetVPCInfoByName indicates an expected call of GetVPCInfoByName.

func (*MockVPCMockRecorder) GetVPCWithID added in v1.24.0

func (mr *MockVPCMockRecorder) GetVPCWithID(ctx, vpcID any) *gomock.Call

GetVPCWithID indicates an expected call of GetVPCWithID.

func (*MockVPCMockRecorder) GetVSwitchesInfoByID added in v1.35.0

func (mr *MockVPCMockRecorder) GetVSwitchesInfoByID(name any) *gomock.Call

GetVSwitchesInfoByID indicates an expected call of GetVSwitchesInfoByID.

func (*MockVPCMockRecorder) ListEnhanhcedNatGatewayAvailableZones added in v1.51.0

func (mr *MockVPCMockRecorder) ListEnhanhcedNatGatewayAvailableZones(request any) *gomock.Call

ListEnhanhcedNatGatewayAvailableZones indicates an expected call of ListEnhanhcedNatGatewayAvailableZones.

func (*MockVPCMockRecorder) ListTagResources added in v1.50.0

func (mr *MockVPCMockRecorder) ListTagResources(request any) *gomock.Call

ListTagResources indicates an expected call of ListTagResources.

func (*MockVPCMockRecorder) ModifyEipAddressAttribute added in v1.50.0

func (mr *MockVPCMockRecorder) ModifyEipAddressAttribute(request any) *gomock.Call

ModifyEipAddressAttribute indicates an expected call of ModifyEipAddressAttribute.

func (*MockVPCMockRecorder) ReleaseEipAddress added in v1.50.0

func (mr *MockVPCMockRecorder) ReleaseEipAddress(request any) *gomock.Call

ReleaseEipAddress indicates an expected call of ReleaseEipAddress.

func (*MockVPCMockRecorder) TagResources added in v1.50.0

func (mr *MockVPCMockRecorder) TagResources(request any) *gomock.Call

TagResources indicates an expected call of TagResources.

func (*MockVPCMockRecorder) UnTagResources added in v1.50.0

func (mr *MockVPCMockRecorder) UnTagResources(request any) *gomock.Call

UnTagResources indicates an expected call of UnTagResources.

func (*MockVPCMockRecorder) UnassociateEipAddress added in v1.50.0

func (mr *MockVPCMockRecorder) UnassociateEipAddress(request any) *gomock.Call

UnassociateEipAddress indicates an expected call of UnassociateEipAddress.

Jump to

Keyboard shortcuts

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