Documentation ¶
Index ¶
- Constants
- type LoadBalancerStatus
- type NLBProvider
- func (p *NLBProvider) AddNLBServers(ctx context.Context, sgId string, backends []nlbmodel.ServerGroupServer) error
- func (p *NLBProvider) AttachCommonBandwidthPackageToLoadBalancer(ctx context.Context, lbId string, bandwidthPackageId string) error
- func (p *NLBProvider) CreateNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (p *NLBProvider) CreateNLBListener(ctx context.Context, lbId string, lis *nlbmodel.ListenerAttribute) error
- func (p *NLBProvider) CreateNLBServerGroup(ctx context.Context, sg *nlbmodel.ServerGroup) error
- func (p *NLBProvider) DeleteNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (p *NLBProvider) DeleteNLBListener(ctx context.Context, listenerId string) error
- func (p *NLBProvider) DeleteNLBServerGroup(ctx context.Context, sgId string) error
- func (p *NLBProvider) DescribeNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (p *NLBProvider) DetachCommonBandwidthPackageFromLoadBalancer(ctx context.Context, lbId string, bandwidthPackageId string) error
- func (p *NLBProvider) FindNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (p *NLBProvider) FindNLBByName(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (p *NLBProvider) GetNLBServerGroup(ctx context.Context, sgId string) (*nlbmodel.ServerGroup, error)
- func (p *NLBProvider) ListNLBListeners(ctx context.Context, lbId string) ([]*nlbmodel.ListenerAttribute, error)
- func (p *NLBProvider) ListNLBServerGroups(ctx context.Context, tags []tag.Tag) ([]*nlbmodel.ServerGroup, error)
- func (p *NLBProvider) ListNLBServers(ctx context.Context, sgId string) ([]nlbmodel.ServerGroupServer, error)
- func (p *NLBProvider) ListNLBTagResources(ctx context.Context, lbId string) ([]tag.Tag, error)
- func (p *NLBProvider) NLBRegionIds() ([]string, error)
- func (p *NLBProvider) NLBZoneIds(regionId string) ([]string, error)
- func (p *NLBProvider) RemoveNLBServers(ctx context.Context, sgId string, backends []nlbmodel.ServerGroupServer) error
- func (p *NLBProvider) StartNLBListener(ctx context.Context, listenerId string) error
- func (p *NLBProvider) TagNLBResource(ctx context.Context, resourceId string, resourceType nlbmodel.TagResourceType, ...) error
- func (p *NLBProvider) UntagNLBResources(ctx context.Context, resourceId string, resourceType nlbmodel.TagResourceType, ...) error
- func (p *NLBProvider) UpdateLoadBalancerProtection(ctx context.Context, lbId string, delCfg *nlbmodel.DeletionProtectionConfig, ...) error
- func (p *NLBProvider) UpdateNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (p *NLBProvider) UpdateNLBAddressType(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (p *NLBProvider) UpdateNLBIPv6AddressType(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
- func (p *NLBProvider) UpdateNLBListener(ctx context.Context, lis *nlbmodel.ListenerAttribute) error
- func (p *NLBProvider) UpdateNLBSecurityGroupIds(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer, ...) error
- func (p *NLBProvider) UpdateNLBServerGroup(ctx context.Context, sg *nlbmodel.ServerGroup) error
- func (p *NLBProvider) UpdateNLBServers(ctx context.Context, sgId string, backends []nlbmodel.ServerGroupServer) error
- func (p *NLBProvider) UpdateNLBZones(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
Constants ¶
View Source
const ( Active = LoadBalancerStatus("Active") Provisioning = LoadBalancerStatus("Provisioning") )
View Source
const ( DefaultRetryInterval = 3 * time.Second DefaultRetryTimeout = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadBalancerStatus ¶
type LoadBalancerStatus string
type NLBProvider ¶
type NLBProvider struct {
// contains filtered or unexported fields
}
func NewNLBProvider ¶
func NewNLBProvider( auth *base.ClientMgr, ) *NLBProvider
func (*NLBProvider) AddNLBServers ¶
func (p *NLBProvider) AddNLBServers(ctx context.Context, sgId string, backends []nlbmodel.ServerGroupServer, ) error
ServerGroupServer
func (*NLBProvider) AttachCommonBandwidthPackageToLoadBalancer ¶
func (*NLBProvider) CreateNLB ¶
func (p *NLBProvider) CreateNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
func (*NLBProvider) CreateNLBListener ¶
func (p *NLBProvider) CreateNLBListener(ctx context.Context, lbId string, lis *nlbmodel.ListenerAttribute) error
func (*NLBProvider) CreateNLBServerGroup ¶
func (p *NLBProvider) CreateNLBServerGroup(ctx context.Context, sg *nlbmodel.ServerGroup) error
func (*NLBProvider) DeleteNLB ¶
func (p *NLBProvider) DeleteNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
func (*NLBProvider) DeleteNLBListener ¶
func (p *NLBProvider) DeleteNLBListener(ctx context.Context, listenerId string) error
func (*NLBProvider) DeleteNLBServerGroup ¶
func (p *NLBProvider) DeleteNLBServerGroup(ctx context.Context, sgId string) error
func (*NLBProvider) DescribeNLB ¶
func (p *NLBProvider) DescribeNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
func (*NLBProvider) DetachCommonBandwidthPackageFromLoadBalancer ¶
func (*NLBProvider) FindNLB ¶
func (p *NLBProvider) FindNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
func (*NLBProvider) FindNLBByName ¶
func (p *NLBProvider) FindNLBByName(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
func (*NLBProvider) GetNLBServerGroup ¶
func (p *NLBProvider) GetNLBServerGroup(ctx context.Context, sgId string) (*nlbmodel.ServerGroup, error)
func (*NLBProvider) ListNLBListeners ¶
func (p *NLBProvider) ListNLBListeners(ctx context.Context, lbId string) ([]*nlbmodel.ListenerAttribute, error)
func (*NLBProvider) ListNLBServerGroups ¶
func (p *NLBProvider) ListNLBServerGroups(ctx context.Context, tags []tag.Tag) ([]*nlbmodel.ServerGroup, error)
ServerGroup
func (*NLBProvider) ListNLBServers ¶
func (p *NLBProvider) ListNLBServers(ctx context.Context, sgId string) ([]nlbmodel.ServerGroupServer, error)
func (*NLBProvider) ListNLBTagResources ¶
func (*NLBProvider) NLBRegionIds ¶
func (p *NLBProvider) NLBRegionIds() ([]string, error)
NLBRegionIds used for e2etest
func (*NLBProvider) NLBZoneIds ¶
func (p *NLBProvider) NLBZoneIds(regionId string) ([]string, error)
NLBZoneIds used for e2etest
func (*NLBProvider) RemoveNLBServers ¶
func (p *NLBProvider) RemoveNLBServers(ctx context.Context, sgId string, backends []nlbmodel.ServerGroupServer, ) error
func (*NLBProvider) StartNLBListener ¶
func (p *NLBProvider) StartNLBListener(ctx context.Context, listenerId string) error
func (*NLBProvider) TagNLBResource ¶
func (p *NLBProvider) TagNLBResource(ctx context.Context, resourceId string, resourceType nlbmodel.TagResourceType, tags []tag.Tag, ) error
tag
func (*NLBProvider) UntagNLBResources ¶
func (p *NLBProvider) UntagNLBResources(ctx context.Context, resourceId string, resourceType nlbmodel.TagResourceType, tagKey []*string) error
func (*NLBProvider) UpdateLoadBalancerProtection ¶
func (p *NLBProvider) UpdateLoadBalancerProtection(ctx context.Context, lbId string, delCfg *nlbmodel.DeletionProtectionConfig, modCfg *nlbmodel.ModificationProtectionConfig) error
func (*NLBProvider) UpdateNLB ¶
func (p *NLBProvider) UpdateNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
func (*NLBProvider) UpdateNLBAddressType ¶
func (p *NLBProvider) UpdateNLBAddressType(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
func (*NLBProvider) UpdateNLBIPv6AddressType ¶
func (p *NLBProvider) UpdateNLBIPv6AddressType(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
func (*NLBProvider) UpdateNLBListener ¶
func (p *NLBProvider) UpdateNLBListener(ctx context.Context, lis *nlbmodel.ListenerAttribute) error
func (*NLBProvider) UpdateNLBSecurityGroupIds ¶
func (p *NLBProvider) UpdateNLBSecurityGroupIds(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer, added, removed []string) error
func (*NLBProvider) UpdateNLBServerGroup ¶
func (p *NLBProvider) UpdateNLBServerGroup(ctx context.Context, sg *nlbmodel.ServerGroup) error
func (*NLBProvider) UpdateNLBServers ¶
func (p *NLBProvider) UpdateNLBServers(ctx context.Context, sgId string, backends []nlbmodel.ServerGroupServer, ) error
func (*NLBProvider) UpdateNLBZones ¶
func (p *NLBProvider) UpdateNLBZones(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error
Click to show internal directories.
Click to hide internal directories.