Documentation ¶
Index ¶
- Constants
- func NewMockCloud(auth *base.ClientMgr) prvd.Provider
- func NewMockMetaData(vpcID string) prvd.IMetaData
- type MockALB
- func (p MockALB) CreateALB(ctx context.Context, resLB *albmodel.AlbLoadBalancer, ...) (albmodel.LoadBalancerStatus, error)
- func (p MockALB) CreateALBListener(ctx context.Context, resLS *albmodel.Listener) (albmodel.ListenerStatus, error)
- func (p MockALB) CreateALBListenerRule(ctx context.Context, resLR *albmodel.ListenerRule) (albmodel.ListenerRuleStatus, error)
- func (p MockALB) CreateALBListenerRules(ctx context.Context, resLR []*albmodel.ListenerRule) (map[int]albmodel.ListenerRuleStatus, error)
- func (p MockALB) CreateALBServerGroup(ctx context.Context, resSGP *albmodel.ServerGroup, ...) (albmodel.ServerGroupStatus, error)
- func (p MockALB) DeleteALB(ctx context.Context, lbID string) error
- func (p MockALB) DeleteALBListener(ctx context.Context, lsID string) error
- func (p MockALB) DeleteALBListenerRule(ctx context.Context, sdkLRId string) error
- func (p MockALB) DeleteALBListenerRules(ctx context.Context, sdkLRIds []string) error
- func (p MockALB) DeleteALBServerGroup(ctx context.Context, serverGroupID string) error
- func (p MockALB) DeregisterALBServers(ctx context.Context, serverGroupID string, sdkServers []albsdk.BackendServer) error
- func (p MockALB) DescribeALBZones(request *albsdk.DescribeZonesRequest) (response *albsdk.DescribeZonesResponse, err error)
- func (p MockALB) ListALBListenerRules(ctx context.Context, lsID string) ([]albsdk.Rule, error)
- func (p MockALB) ListALBListeners(ctx context.Context, lbID string) ([]albsdk.Listener, error)
- func (p MockALB) ListALBServerGroupsWithTags(ctx context.Context, tagFilters map[string]string) ([]albmodel.ServerGroupWithTags, error)
- func (p MockALB) ListALBServers(ctx context.Context, serverGroupID string) ([]albsdk.BackendServer, error)
- func (p MockALB) ListALBsWithTags(ctx context.Context, tagFilters map[string]string) ([]albmodel.AlbLoadBalancerWithTags, error)
- func (p MockALB) RegisterALBServers(ctx context.Context, serverGroupID string, resServers []albmodel.BackendItem) error
- func (p MockALB) ReplaceALBServers(ctx context.Context, serverGroupID string, resServers []albmodel.BackendItem, ...) error
- func (p MockALB) ReuseALB(ctx context.Context, resLB *albmodel.AlbLoadBalancer, lbID string, ...) (albmodel.LoadBalancerStatus, error)
- func (p MockALB) TagALBResources(request *albsdk.TagResourcesRequest) (response *albsdk.TagResourcesResponse, err error)
- func (p MockALB) UpdateALB(ctx context.Context, resLB *albmodel.AlbLoadBalancer, ...) (albmodel.LoadBalancerStatus, error)
- func (p MockALB) UpdateALBListener(ctx context.Context, resLS *albmodel.Listener, sdkLB *albsdk.Listener) (albmodel.ListenerStatus, error)
- func (p MockALB) UpdateALBListenerRule(ctx context.Context, resLR *albmodel.ListenerRule, sdkLR *albsdk.Rule) (albmodel.ListenerRuleStatus, error)
- func (p MockALB) UpdateALBListenerRules(ctx context.Context, matches []albmodel.ResAndSDKListenerRulePair) error
- func (p MockALB) UpdateALBServerGroup(ctx context.Context, resSGP *albmodel.ServerGroup, ...) (albmodel.ServerGroupStatus, error)
- type MockCAS
- type MockCLB
- func (m *MockCLB) AddVServerGroupBackendServers(ctx context.Context, vGroupId string, backends string) error
- func (m *MockCLB) CreateLoadBalancer(ctx context.Context, mdl *model.LoadBalancer, clientToken string) error
- func (m *MockCLB) CreateLoadBalancerHTTPListener(ctx context.Context, lbId string, listener model.ListenerAttribute) error
- func (m *MockCLB) CreateLoadBalancerHTTPSListener(ctx context.Context, lbId string, listener model.ListenerAttribute) error
- func (m *MockCLB) CreateLoadBalancerTCPListener(ctx context.Context, lbId string, listener model.ListenerAttribute) error
- func (m *MockCLB) CreateLoadBalancerUDPListener(ctx context.Context, lbId string, listener model.ListenerAttribute) error
- func (m *MockCLB) CreateVServerGroup(ctx context.Context, vg *model.VServerGroup, lbId string) error
- func (m *MockCLB) DeleteLoadBalancer(ctx context.Context, mdl *model.LoadBalancer) error
- func (m *MockCLB) DeleteLoadBalancerListener(ctx context.Context, lbId string, port int, proto string) error
- func (m *MockCLB) DeleteVServerGroup(ctx context.Context, vGroupId string) error
- func (m *MockCLB) DescribeLoadBalancer(ctx context.Context, mdl *model.LoadBalancer) error
- func (m *MockCLB) DescribeLoadBalancerListeners(ctx context.Context, lbId string) ([]model.ListenerAttribute, error)
- func (m *MockCLB) DescribeServerCertificateById(ctx context.Context, serverCertificateId string) (*model.CertAttribute, error)
- func (m *MockCLB) DescribeVServerGroupAttribute(ctx context.Context, vGroupId string) (model.VServerGroup, error)
- func (m *MockCLB) DescribeVServerGroups(ctx context.Context, lbId string) ([]model.VServerGroup, error)
- func (m *MockCLB) FindLoadBalancer(ctx context.Context, mdl *model.LoadBalancer) error
- func (m *MockCLB) ListCLBTagResources(ctx context.Context, lbId string) ([]tag.Tag, error)
- func (m *MockCLB) ModifyLoadBalancerInstanceChargeType(ctx context.Context, lbId string, instanceChargeType string, spec string) error
- func (m *MockCLB) ModifyLoadBalancerInstanceSpec(ctx context.Context, lbId string, spec string) error
- func (m *MockCLB) ModifyLoadBalancerInternetSpec(ctx context.Context, lbId string, chargeType string, bandwidth int) error
- func (m *MockCLB) ModifyVServerGroupBackendServers(ctx context.Context, vGroupId string, old string, new string) error
- func (m *MockCLB) RemoveVServerGroupBackendServers(ctx context.Context, vGroupId string, backends string) error
- func (m *MockCLB) SetLoadBalancerDeleteProtection(ctx context.Context, lbId string, flag string) error
- func (m *MockCLB) SetLoadBalancerHTTPListenerAttribute(ctx context.Context, lbId string, listener model.ListenerAttribute) error
- func (m *MockCLB) SetLoadBalancerHTTPSListenerAttribute(ctx context.Context, lbId string, listener model.ListenerAttribute) error
- func (m *MockCLB) SetLoadBalancerModificationProtection(ctx context.Context, lbId string, flag string) error
- func (m *MockCLB) SetLoadBalancerName(ctx context.Context, lbId string, name string) error
- func (m *MockCLB) SetLoadBalancerTCPListenerAttribute(ctx context.Context, lbId string, listener model.ListenerAttribute) error
- func (m *MockCLB) SetLoadBalancerUDPListenerAttribute(ctx context.Context, lbId string, listener model.ListenerAttribute) error
- func (m *MockCLB) SetVServerGroupAttribute(ctx context.Context, vGroupId string, backends string) error
- func (m *MockCLB) StartLoadBalancerListener(ctx context.Context, lbId string, port int, proto string) error
- func (m *MockCLB) StopLoadBalancerListener(ctx context.Context, lbId string, port int, proto string) error
- func (m *MockCLB) TagCLBResource(ctx context.Context, resourceId string, tags []tag.Tag) error
- func (m *MockCLB) UntagResources(ctx context.Context, lbId string, tagKey *[]string) error
- type MockCloud
- type MockECS
- func (d *MockECS) DescribeNetworkInterfaces(vpcId string, ips []string, ipVersionType model.AddressIPVersionType) (map[string]string, error)
- func (d *MockECS) GetInstancesByIP(ctx context.Context, ips []string) (*prvd.NodeAttribute, error)
- func (d *MockECS) ListInstances(ctx context.Context, ids []string) (map[string]*prvd.NodeAttribute, error)
- type MockMetaData
- func (m *MockMetaData) ClusterID() string
- func (m *MockMetaData) DNSNameServers() ([]string, error)
- func (m *MockMetaData) EIPv4() (string, error)
- func (m *MockMetaData) HostName() (string, error)
- func (m *MockMetaData) ImageID() (string, error)
- func (m *MockMetaData) InstanceID() (string, error)
- func (m *MockMetaData) Mac() (string, error)
- func (m *MockMetaData) NTPConfigServers() ([]string, error)
- func (m *MockMetaData) NetworkType() (string, error)
- func (m *MockMetaData) OwnerAccountID() (string, error)
- func (m *MockMetaData) PrivateIPv4() (string, error)
- func (m *MockMetaData) RamRoleToken(role string) (prvd.RoleAuth, error)
- func (m *MockMetaData) Region() (string, error)
- func (m *MockMetaData) RoleName() (string, error)
- func (m *MockMetaData) SerialNumber() (string, error)
- func (m *MockMetaData) SourceAddress() (string, error)
- func (m *MockMetaData) VpcCIDRBlock() (string, error)
- func (m *MockMetaData) VpcID() (string, error)
- func (m *MockMetaData) VswitchCIDRBlock() (string, error)
- func (m *MockMetaData) VswitchID() (string, error)
- func (m *MockMetaData) Zone() (string, error)
- type MockNLB
- func (m MockNLB) AddNLBServers(ctx context.Context, sgId string, backends []nlbmodel.ServerGroupServer) error
- func (m MockNLB) AttachCommonBandwidthPackageToLoadBalancer(ctx context.Context, lbId string, bandwidthPackageId string) error
- func (m MockNLB) CreateNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (m MockNLB) CreateNLBListener(ctx context.Context, lbId string, lis *nlbmodel.ListenerAttribute) error
- func (m MockNLB) CreateNLBServerGroup(ctx context.Context, sg *nlbmodel.ServerGroup) error
- func (m MockNLB) DeleteNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (m MockNLB) DeleteNLBListener(ctx context.Context, listenerId string) error
- func (m MockNLB) DeleteNLBServerGroup(ctx context.Context, sgId string) error
- func (m MockNLB) DescribeNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (m MockNLB) DetachCommonBandwidthPackageFromLoadBalancer(ctx context.Context, lbId string, bandwidthPackageId string) error
- func (m MockNLB) FindNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (m MockNLB) GetNLBServerGroup(ctx context.Context, sgId string) (*nlbmodel.ServerGroup, error)
- func (m MockNLB) ListNLBListeners(ctx context.Context, lbId string) ([]*nlbmodel.ListenerAttribute, error)
- func (m MockNLB) ListNLBServerGroups(ctx context.Context, tags []tag.Tag) ([]*nlbmodel.ServerGroup, error)
- func (m MockNLB) ListNLBTagResources(ctx context.Context, lbId string) ([]tag.Tag, error)
- func (m MockNLB) RemoveNLBServers(ctx context.Context, sgId string, backends []nlbmodel.ServerGroupServer) error
- func (m MockNLB) StartNLBListener(ctx context.Context, listenerId string) error
- func (m MockNLB) TagNLBResource(ctx context.Context, resourceId string, resourceType nlbmodel.TagResourceType, ...) error
- func (m MockNLB) UntagNLBResources(ctx context.Context, resourceId string, resourceType nlbmodel.TagResourceType, ...) error
- func (m MockNLB) UpdateLoadBalancerProtection(ctx context.Context, lbId string, delCfg *nlbmodel.DeletionProtectionConfig, ...) error
- func (m MockNLB) UpdateNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (m MockNLB) UpdateNLBAddressType(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (m MockNLB) UpdateNLBIPv6AddressType(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (m MockNLB) UpdateNLBListener(ctx context.Context, lis *nlbmodel.ListenerAttribute) error
- func (m MockNLB) UpdateNLBSecurityGroupIds(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer, ...) error
- func (m MockNLB) UpdateNLBServerGroup(ctx context.Context, sg *nlbmodel.ServerGroup) error
- func (m MockNLB) UpdateNLBServers(ctx context.Context, sgId string, backends []nlbmodel.ServerGroupServer) error
- func (m MockNLB) UpdateNLBZones(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- type MockPVTZ
- func (p *MockPVTZ) DeletePVTZ(ctx context.Context, ep *model.PvtzEndpoint) error
- func (p *MockPVTZ) ListPVTZ(ctx context.Context) ([]*model.PvtzEndpoint, error)
- func (p *MockPVTZ) SearchPVTZ(ctx context.Context, ep *model.PvtzEndpoint, exact bool) ([]*model.PvtzEndpoint, error)
- func (p *MockPVTZ) UpdatePVTZ(ctx context.Context, ep *model.PvtzEndpoint) error
- type MockSLS
- type MockVPC
- func (m *MockVPC) CreateRoute(ctx context.Context, table string, provideID string, destinationCIDR string) (*model.Route, error)
- func (m *MockVPC) DeleteRoute(ctx context.Context, table, provideID, destinationCIDR string) error
- func (m *MockVPC) DescribeEipAddresses(ctx context.Context, instanceType string, instanceId string) ([]string, error)
- func (m *MockVPC) DescribeVSwitches(ctx context.Context, vpcID string) ([]servicesvpc.VSwitch, error)
- func (m *MockVPC) DescribeVpcCIDRBlock(ctx context.Context, vpcId string, ipVersion model.AddressIPVersionType) ([]*net.IPNet, error)
- func (m *MockVPC) FindRoute(ctx context.Context, table, pvid, cidr string) (*model.Route, error)
- func (m *MockVPC) ListRoute(ctx context.Context, table string) ([]*model.Route, error)
- func (m *MockVPC) ListRouteTables(ctx context.Context, vpcID string) ([]string, error)
Constants ¶
View Source
const ( ZoneID = "cn-hangzhou-a" RegionID = "cn-hangzhou" InstanceIP = "192.0.168.68" InstanceType = "ecs.c6.xlarge" NodePoolID = "np-123456" InstanceChargeType = "PostPaid" )
View Source
const ( NLBDNSName = "nlb-id.cn-hangzhou.nlb.aliyuncs.com" ExistNLBID = "nlb-exist-id" )
View Source
const ( LoadBalancerIP = "47.168.0.1" ExistLBID = "lb-exist-id" ExistVGroupID = "rsp-reuse-id" )
Variables ¶
This section is empty.
Functions ¶
func NewMockCloud ¶
func NewMockMetaData ¶
Types ¶
type MockALB ¶
type MockALB struct {
// contains filtered or unexported fields
}
func NewMockALB ¶
func (MockALB) CreateALB ¶
func (p MockALB) CreateALB(ctx context.Context, resLB *albmodel.AlbLoadBalancer, trackingProvider tracking.TrackingProvider) (albmodel.LoadBalancerStatus, error)
func (MockALB) CreateALBListener ¶
func (p MockALB) CreateALBListener(ctx context.Context, resLS *albmodel.Listener) (albmodel.ListenerStatus, error)
ALB Listener
func (MockALB) CreateALBListenerRule ¶
func (p MockALB) CreateALBListenerRule(ctx context.Context, resLR *albmodel.ListenerRule) (albmodel.ListenerRuleStatus, error)
ALB Listener Rule
func (MockALB) CreateALBListenerRules ¶
func (p MockALB) CreateALBListenerRules(ctx context.Context, resLR []*albmodel.ListenerRule) (map[int]albmodel.ListenerRuleStatus, error)
func (MockALB) CreateALBServerGroup ¶
func (p MockALB) CreateALBServerGroup(ctx context.Context, resSGP *albmodel.ServerGroup, trackingProvider tracking.TrackingProvider) (albmodel.ServerGroupStatus, error)
ALB ServerGroup
func (MockALB) DeleteALBListener ¶
func (MockALB) DeleteALBListenerRule ¶
func (MockALB) DeleteALBListenerRules ¶
func (MockALB) DeleteALBServerGroup ¶
func (MockALB) DeregisterALBServers ¶
func (MockALB) DescribeALBZones ¶
func (p MockALB) DescribeALBZones(request *albsdk.DescribeZonesRequest) (response *albsdk.DescribeZonesResponse, err error)
func (MockALB) ListALBListenerRules ¶
func (MockALB) ListALBListeners ¶
func (MockALB) ListALBServerGroupsWithTags ¶
func (p MockALB) ListALBServerGroupsWithTags(ctx context.Context, tagFilters map[string]string) ([]albmodel.ServerGroupWithTags, error)
ALB Tags
func (MockALB) ListALBServers ¶
func (MockALB) ListALBsWithTags ¶
func (MockALB) RegisterALBServers ¶
func (p MockALB) RegisterALBServers(ctx context.Context, serverGroupID string, resServers []albmodel.BackendItem) error
ALB Server
func (MockALB) ReplaceALBServers ¶
func (p MockALB) ReplaceALBServers(ctx context.Context, serverGroupID string, resServers []albmodel.BackendItem, sdkServers []albsdk.BackendServer) error
func (MockALB) ReuseALB ¶
func (p MockALB) ReuseALB(ctx context.Context, resLB *albmodel.AlbLoadBalancer, lbID string, trackingProvider tracking.TrackingProvider) (albmodel.LoadBalancerStatus, error)
func (MockALB) TagALBResources ¶
func (p MockALB) TagALBResources(request *albsdk.TagResourcesRequest) (response *albsdk.TagResourcesResponse, err error)
func (MockALB) UpdateALB ¶
func (p MockALB) UpdateALB(ctx context.Context, resLB *albmodel.AlbLoadBalancer, sdkLB albsdk.LoadBalancer) (albmodel.LoadBalancerStatus, error)
func (MockALB) UpdateALBListener ¶
func (MockALB) UpdateALBListenerRule ¶
func (p MockALB) UpdateALBListenerRule(ctx context.Context, resLR *albmodel.ListenerRule, sdkLR *albsdk.Rule) (albmodel.ListenerRuleStatus, error)
func (MockALB) UpdateALBListenerRules ¶
func (MockALB) UpdateALBServerGroup ¶
func (p MockALB) UpdateALBServerGroup(ctx context.Context, resSGP *albmodel.ServerGroup, sdkSGP albmodel.ServerGroupWithTags) (albmodel.ServerGroupStatus, error)
type MockCAS ¶
type MockCAS struct {
// contains filtered or unexported fields
}
func NewMockCAS ¶
func (MockCAS) DescribeSSLCertificateList ¶
func (MockCAS) DescribeSSLCertificatePublicKeyDetail ¶
type MockCLB ¶
type MockCLB struct {
// contains filtered or unexported fields
}
func NewMockCLB ¶
func (*MockCLB) AddVServerGroupBackendServers ¶
func (*MockCLB) CreateLoadBalancer ¶
func (*MockCLB) CreateLoadBalancerHTTPListener ¶
func (*MockCLB) CreateLoadBalancerHTTPSListener ¶
func (*MockCLB) CreateLoadBalancerTCPListener ¶
func (*MockCLB) CreateLoadBalancerUDPListener ¶
func (*MockCLB) CreateVServerGroup ¶
func (*MockCLB) DeleteLoadBalancer ¶
func (*MockCLB) DeleteLoadBalancerListener ¶
func (*MockCLB) DeleteVServerGroup ¶
func (*MockCLB) DescribeLoadBalancer ¶
func (*MockCLB) DescribeLoadBalancerListeners ¶
func (m *MockCLB) DescribeLoadBalancerListeners(ctx context.Context, lbId string) ([]model.ListenerAttribute, error)
Listener
func (*MockCLB) DescribeServerCertificateById ¶
func (*MockCLB) DescribeVServerGroupAttribute ¶
func (*MockCLB) DescribeVServerGroups ¶
func (m *MockCLB) DescribeVServerGroups(ctx context.Context, lbId string) ([]model.VServerGroup, error)
VServerGroup
func (*MockCLB) FindLoadBalancer ¶
func (*MockCLB) ListCLBTagResources ¶
func (*MockCLB) ModifyLoadBalancerInstanceChargeType ¶
func (*MockCLB) ModifyLoadBalancerInstanceSpec ¶
func (*MockCLB) ModifyLoadBalancerInternetSpec ¶
func (*MockCLB) ModifyVServerGroupBackendServers ¶
func (*MockCLB) RemoveVServerGroupBackendServers ¶
func (*MockCLB) SetLoadBalancerDeleteProtection ¶
func (*MockCLB) SetLoadBalancerHTTPListenerAttribute ¶
func (*MockCLB) SetLoadBalancerHTTPSListenerAttribute ¶
func (*MockCLB) SetLoadBalancerModificationProtection ¶
func (*MockCLB) SetLoadBalancerName ¶
func (*MockCLB) SetLoadBalancerTCPListenerAttribute ¶
func (*MockCLB) SetLoadBalancerUDPListenerAttribute ¶
func (*MockCLB) SetVServerGroupAttribute ¶
func (*MockCLB) StartLoadBalancerListener ¶
func (*MockCLB) StopLoadBalancerListener ¶
func (*MockCLB) TagCLBResource ¶
type MockCloud ¶
type MockCloud struct { *MockECS *MockPVTZ *MockVPC *MockCLB *MockALB *MockCAS *MockSLS *MockNLB prvd.IMetaData }
MockCloud for unit test
type MockECS ¶
type MockECS struct {
// contains filtered or unexported fields
}
func NewMockECS ¶
func (*MockECS) DescribeNetworkInterfaces ¶
func (*MockECS) GetInstancesByIP ¶
type MockMetaData ¶
type MockMetaData struct {
// contains filtered or unexported fields
}
func (*MockMetaData) ClusterID ¶
func (m *MockMetaData) ClusterID() string
func (*MockMetaData) DNSNameServers ¶
func (m *MockMetaData) DNSNameServers() ([]string, error)
func (*MockMetaData) EIPv4 ¶
func (m *MockMetaData) EIPv4() (string, error)
func (*MockMetaData) HostName ¶
func (m *MockMetaData) HostName() (string, error)
func (*MockMetaData) ImageID ¶
func (m *MockMetaData) ImageID() (string, error)
func (*MockMetaData) InstanceID ¶
func (m *MockMetaData) InstanceID() (string, error)
func (*MockMetaData) Mac ¶
func (m *MockMetaData) Mac() (string, error)
func (*MockMetaData) NTPConfigServers ¶
func (m *MockMetaData) NTPConfigServers() ([]string, error)
func (*MockMetaData) NetworkType ¶
func (m *MockMetaData) NetworkType() (string, error)
func (*MockMetaData) OwnerAccountID ¶
func (m *MockMetaData) OwnerAccountID() (string, error)
func (*MockMetaData) PrivateIPv4 ¶
func (m *MockMetaData) PrivateIPv4() (string, error)
func (*MockMetaData) RamRoleToken ¶
func (m *MockMetaData) RamRoleToken(role string) (prvd.RoleAuth, error)
func (*MockMetaData) Region ¶
func (m *MockMetaData) Region() (string, error)
func (*MockMetaData) RoleName ¶
func (m *MockMetaData) RoleName() (string, error)
func (*MockMetaData) SerialNumber ¶
func (m *MockMetaData) SerialNumber() (string, error)
func (*MockMetaData) SourceAddress ¶
func (m *MockMetaData) SourceAddress() (string, error)
func (*MockMetaData) VpcCIDRBlock ¶
func (m *MockMetaData) VpcCIDRBlock() (string, error)
func (*MockMetaData) VpcID ¶
func (m *MockMetaData) VpcID() (string, error)
func (*MockMetaData) VswitchCIDRBlock ¶
func (m *MockMetaData) VswitchCIDRBlock() (string, error)
func (*MockMetaData) VswitchID ¶
func (m *MockMetaData) VswitchID() (string, error)
func (*MockMetaData) Zone ¶
func (m *MockMetaData) Zone() (string, error)
type MockNLB ¶
type MockNLB struct {
// contains filtered or unexported fields
}
func NewMockNLB ¶
func (MockNLB) AddNLBServers ¶
func (MockNLB) AttachCommonBandwidthPackageToLoadBalancer ¶
func (MockNLB) CreateNLBListener ¶
func (MockNLB) CreateNLBServerGroup ¶
func (MockNLB) DeleteNLBListener ¶
func (MockNLB) DeleteNLBServerGroup ¶
func (MockNLB) DescribeNLB ¶
func (MockNLB) DetachCommonBandwidthPackageFromLoadBalancer ¶
func (MockNLB) GetNLBServerGroup ¶
func (MockNLB) ListNLBListeners ¶
func (MockNLB) ListNLBServerGroups ¶
func (MockNLB) ListNLBTagResources ¶
func (MockNLB) RemoveNLBServers ¶
func (MockNLB) StartNLBListener ¶
func (MockNLB) TagNLBResource ¶
func (MockNLB) UntagNLBResources ¶
func (MockNLB) UpdateLoadBalancerProtection ¶
func (m MockNLB) UpdateLoadBalancerProtection(ctx context.Context, lbId string, delCfg *nlbmodel.DeletionProtectionConfig, modCfg *nlbmodel.ModificationProtectionConfig) error
func (MockNLB) UpdateNLBAddressType ¶
func (MockNLB) UpdateNLBIPv6AddressType ¶
func (MockNLB) UpdateNLBListener ¶
func (MockNLB) UpdateNLBSecurityGroupIds ¶
func (MockNLB) UpdateNLBServerGroup ¶
func (MockNLB) UpdateNLBServers ¶
func (MockNLB) UpdateNLBZones ¶
type MockPVTZ ¶
type MockPVTZ struct {
// contains filtered or unexported fields
}
func NewMockPVTZ ¶
func (*MockPVTZ) DeletePVTZ ¶
func (*MockPVTZ) SearchPVTZ ¶
func (p *MockPVTZ) SearchPVTZ(ctx context.Context, ep *model.PvtzEndpoint, exact bool) ([]*model.PvtzEndpoint, error)
func (*MockPVTZ) UpdatePVTZ ¶
type MockSLS ¶
type MockSLS struct {
// contains filtered or unexported fields
}
func NewMockSLS ¶
func (MockSLS) AnalyzeProductLog ¶
func (s MockSLS) AnalyzeProductLog(request *sls.AnalyzeProductLogRequest) (response *sls.AnalyzeProductLogResponse, err error)
type MockVPC ¶
type MockVPC struct {
// contains filtered or unexported fields
}
func NewMockVPC ¶
func (*MockVPC) CreateRoute ¶
func (*MockVPC) DeleteRoute ¶
func (*MockVPC) DescribeEipAddresses ¶
func (*MockVPC) DescribeVSwitches ¶
func (*MockVPC) DescribeVpcCIDRBlock ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.