Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClbAdapter ¶
type ClbAdapter interface { //loadbalance CreateLoadBalance(lb *cloudListenerType.CloudLoadBalancer) (lbID string, vips []string, err error) DescribeLoadBalance(name string) (*cloudListenerType.CloudLoadBalancer, bool, error) //listener CreateListener(listener *cloudListenerType.CloudListener) (listenerID string, err error) DeleteListener(lbID, listenerID string) error DescribeListener(lbID, listenerID string, port int) (listener *cloudListenerType.CloudListener, isExisted bool, err error) ModifyListenerAttribute(listener *cloudListenerType.CloudListener) (err error) //rule CreateRules(lbID, listenerID string, rules cloudListenerType.RuleList) error DeleteRule(lbID, listenerID, domain, url string) error DescribeRuleByDomainAndURL(loadBalanceID, listenerID, Domain, URL string) (rule *cloudListenerType.Rule, isExisted bool, err error) ModifyRuleAttribute(loadBalanceID, listenerID string, rule *cloudListenerType.Rule) error //7 layer backend Register7LayerBackends(lbID, listenerID, ruleID string, backendsRegister cloudListenerType.BackendList) error DeRegister7LayerBackends(lbID, listenerID, ruleID string, backendsDeRegister cloudListenerType.BackendList) error //4 layer backend Register4LayerBackends(lbID, listenerID string, backendsRegister cloudListenerType.BackendList) error DeRegister4LayerBackends(lbID, listenerID string, backendsDeRegister cloudListenerType.BackendList) error // list all listener ListListener(lbID string) ([]*cloudListenerType.CloudListener, error) }
ClbAdapter interface to operate clb
Click to show internal directories.
Click to hide internal directories.