qcloudif

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: MIT Imports: 1 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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