Documentation ¶
Index ¶
- Variables
- type CLBOperator
- func (o *CLBOperator) DescribeLoadBalancer(ctx context.Context, r *provider.DescribeRequest) (*lb.LoadBalancer, error)
- func (o *CLBOperator) PageQueryLoadBalancer(req *provider.QueryRequest) pager.Pager
- func (o *CLBOperator) QueryLoadBalancer(ctx context.Context, req *clb.DescribeLoadBalancersRequest) (*lb.LoadBalancerSet, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 0:创建中 // 1:正常运行。 CLB_STATUS_MAP = map[uint64]lb.STATUS{ 0: lb.STATUS_PENDING, 1: lb.STATUS_RUNNING, } )
Functions ¶
This section is empty.
Types ¶
type CLBOperator ¶
type CLBOperator struct {
// contains filtered or unexported fields
}
func NewCLBOperator ¶
func NewCLBOperator(client *clb.Client) *CLBOperator
func (*CLBOperator) DescribeLoadBalancer ¶
func (o *CLBOperator) DescribeLoadBalancer(ctx context.Context, r *provider.DescribeRequest) ( *lb.LoadBalancer, error)
func (*CLBOperator) PageQueryLoadBalancer ¶
func (o *CLBOperator) PageQueryLoadBalancer(req *provider.QueryRequest) pager.Pager
func (*CLBOperator) QueryLoadBalancer ¶
func (o *CLBOperator) QueryLoadBalancer(ctx context.Context, req *clb.DescribeLoadBalancersRequest) (*lb.LoadBalancerSet, error)
查询一个地域的负载均衡实例列表。 参考: https://console.cloud.tencent.com/api/explorer?Product=clb&Version=2018-03-17&Action=DescribeLoadBalancers&SignVersion=
Click to show internal directories.
Click to hide internal directories.