nlb

package
v0.0.0-...-a1c3796 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 (p *NLBProvider) AttachCommonBandwidthPackageToLoadBalancer(ctx context.Context, lbId string, bandwidthPackageId string) error

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 (p *NLBProvider) DetachCommonBandwidthPackageFromLoadBalancer(ctx context.Context, lbId string, bandwidthPackageId string) error

func (*NLBProvider) FindNLB

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 (p *NLBProvider) ListNLBTagResources(ctx context.Context, lbId string) ([]tag.Tag, error)

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

Jump to

Keyboard shortcuts

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