Documentation
¶
Index ¶
- Constants
- func ContainsTarget(ctx context.Context, region, lbId string, port int64, protocol string, ...) (bool, error)
- func Create(ctx context.Context, region, vpcId, extensiveParameters string, num int) (ids []string, err error)
- func CreateListener(ctx context.Context, region, lbId string, port int64, ...) (id string, err error)
- func DefaultRegion() string
- func DefaultVpcId() string
- func Delete(ctx context.Context, region string, lbIds ...string) error
- func DeleteListener(ctx context.Context, region, lbId, listenerId string) error
- func DeleteListenerByPort(ctx context.Context, region, lbId string, port int64, protocol string) (id string, err error)
- func DeregisterAllTargets(ctx context.Context, region, lbId, listenerId string) error
- func DeregisterTargetsForListener(ctx context.Context, region, lbId, listenerId string, targets ...Target) error
- func GetClb(ctx context.Context, lbId, region string) (instance *clb.LoadBalancer, err error)
- func GetClbExternalAddress(ctx context.Context, lbId, region string) (address string, err error)
- func GetClient(region string) *clb.Client
- func GetQuota(ctx context.Context, region, id string) (int64, error)
- func Init(secretId, secretKey, region, vpcId, clusterID string)
- func IsLbIdNotFoundError(err error) bool
- func RegisterTargets(ctx context.Context, region, lbId, listenerId string, targets ...Target) error
- func SyncQuota(ctx context.Context, region string) (map[string]int64, error)
- func Wait(ctx context.Context, region, reqId, taskName string) (ids []string, err error)
- type BatchTarget
- type Listener
- type Target
Constants ¶
View Source
const ( TOTAL_INTERNAL_CLB_QUOTA = "TOTAL_INTERNAL_CLB_QUOTA" TOTAL_TARGET_BIND_QUOTA = "TOTAL_TARGET_BIND_QUOTA" TOTAL_OPEN_CLB_QUOTA = "TOTAL_OPEN_CLB_QUOTA" TOTAL_LISTENER_QUOTA = "TOTAL_LISTENER_QUOTA" TOTAL_SNAT_IP_QUOTA = "TOTAL_SNAT_IP_QUOTA" TOTAL_LISTENER_RULE_QUOTA = "TOTAL_LISTENER_RULE_QUOTA" TOTAL_FULL_PORT_RANGE_LISTENER_QUOTA = "TOTAL_FULL_PORT_RANGE_LISTENER_QUOTA" TOTAL_ISP_CLB_QUOTA = "TOTAL_ISP_CLB_QUOTA" )
View Source
const TkePodListenerName = "TKE-DEDICATED-POD"
Variables ¶
This section is empty.
Functions ¶
func ContainsTarget ¶
func Create ¶
func Create(ctx context.Context, region, vpcId, extensiveParameters string, num int) (ids []string, err error)
TODO: 支持部分成功
func CreateListener ¶
func DefaultRegion ¶
func DefaultRegion() string
func DefaultVpcId ¶
func DefaultVpcId() string
func DeleteListener ¶
func DeleteListenerByPort ¶
func DeregisterAllTargets ¶
func GetClbExternalAddress ¶
func IsLbIdNotFoundError ¶ added in v0.1.13
func RegisterTargets ¶
Types ¶
type BatchTarget ¶
type Listener ¶
func GetListener ¶
Click to show internal directories.
Click to hide internal directories.