Documentation
¶
Index ¶
- Constants
- func ContainsTarget(ctx context.Context, region, lbId string, port int64, protocol string, ...) (bool, error)
- func Create(ctx context.Context, region, vpcId, name string) (lbId string, err error)
- func CreateListener(ctx context.Context, region string, req *clb.CreateListenerRequest) (id string, err error)
- func DefaultRegion() string
- func DefaultVpcId() string
- 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 Init(secretId, secretKey, region, vpcId, clusterID string)
- func RegisterTargets(ctx context.Context, region, lbId, listenerId string, targets ...Target) error
- func Wait(ctx context.Context, region, reqId string) error
- type BatchTarget
- type Listener
- type Target
Constants ¶
View Source
const TkePodListenerName = "TKE-DEDICATED-POD"
Variables ¶
This section is empty.
Functions ¶
func ContainsTarget ¶
func CreateListener ¶
func DefaultRegion ¶
func DefaultRegion() string
func DefaultVpcId ¶
func DefaultVpcId() string
func DeleteListener ¶
func DeleteListenerByPort ¶
func DeregisterAllTargets ¶
func GetClbExternalAddress ¶
func RegisterTargets ¶
Types ¶
type BatchTarget ¶
type Listener ¶
func GetListener ¶
Click to show internal directories.
Click to hide internal directories.