Documentation ¶
Index ¶
- Variables
- type HAProxyProvider
- func (p *HAProxyProvider) Close() error
- func (p *HAProxyProvider) CloseError() error
- func (p *HAProxyProvider) Connect() error
- func (p *HAProxyProvider) Create(ctx context.Context, lbBackend lbv1.Provider, username string, password string) error
- func (p *HAProxyProvider) CreateMonitor(m *lbv1.Monitor) error
- func (p *HAProxyProvider) CreatePool(pool *lbv1.Pool) error
- func (p *HAProxyProvider) CreatePoolMember(m *lbv1.PoolMember, pool *lbv1.Pool) error
- func (p *HAProxyProvider) CreateVIP(v *lbv1.VIP) error
- func (p *HAProxyProvider) DeleteMonitor(m *lbv1.Monitor) error
- func (p *HAProxyProvider) DeletePool(pool *lbv1.Pool) error
- func (p *HAProxyProvider) DeletePoolMember(m *lbv1.PoolMember, pool *lbv1.Pool) error
- func (p *HAProxyProvider) DeleteVIP(v *lbv1.VIP) error
- func (p *HAProxyProvider) EditMonitor(m *lbv1.Monitor) error
- func (p *HAProxyProvider) EditPool(pool *lbv1.Pool) error
- func (p *HAProxyProvider) EditPoolMember(m *lbv1.PoolMember, pool *lbv1.Pool, status string) error
- func (p *HAProxyProvider) EditVIP(v *lbv1.VIP) error
- func (p *HAProxyProvider) GetMonitor(monitor *lbv1.Monitor) (*lbv1.Monitor, error)
- func (p *HAProxyProvider) GetPool(pool *lbv1.Pool) (*lbv1.Pool, error)
- func (p *HAProxyProvider) GetPoolMembers(pool *lbv1.Pool) (*lbv1.Pool, error)
- func (p *HAProxyProvider) GetVIP(v *lbv1.VIP) (*lbv1.VIP, error)
- func (p *HAProxyProvider) HealthCheck() error
Constants ¶
This section is empty.
Variables ¶
var LBMethodMap = map[string]string{"ROUNDROBIN": "roundrobin", "LEASTCONNECTION": "leastconn", "LEASTRESPONSETIME": "roundrobin", "SOURCEIPHASH": "source"}
We use round robin for the backend servers if least response is choosen since HAProxy doesn't have it. SOURCEIPHASH not enabled yet in CRD since it is not supported by F5.
Functions ¶
This section is empty.
Types ¶
type HAProxyProvider ¶
type HAProxyProvider struct {
// contains filtered or unexported fields
}
Provider is the object for the HAProxy Provider implementing the Provider interface
func (*HAProxyProvider) Close ¶
func (p *HAProxyProvider) Close() error
Close closes the connection to the Load Balancer
func (*HAProxyProvider) CloseError ¶
func (p *HAProxyProvider) CloseError() error
Close closes the connection to the Load Balancer
func (*HAProxyProvider) Connect ¶
func (p *HAProxyProvider) Connect() error
Connect creates a connection to the IP Load Balancer
func (*HAProxyProvider) Create ¶
func (p *HAProxyProvider) Create(ctx context.Context, lbBackend lbv1.Provider, username string, password string) error
Create creates a new Load Balancer backend provider
func (*HAProxyProvider) CreateMonitor ¶
func (p *HAProxyProvider) CreateMonitor(m *lbv1.Monitor) error
CreateMonitor creates a monitor in the IP Load Balancer if port argument is 0, no port override is configured
func (*HAProxyProvider) CreatePool ¶
func (p *HAProxyProvider) CreatePool(pool *lbv1.Pool) error
CreatePool creates a server pool in the Load Balancer
func (*HAProxyProvider) CreatePoolMember ¶
func (p *HAProxyProvider) CreatePoolMember(m *lbv1.PoolMember, pool *lbv1.Pool) error
CreatePoolMember creates a member to be added to pool in the Load Balancer
func (*HAProxyProvider) CreateVIP ¶
func (p *HAProxyProvider) CreateVIP(v *lbv1.VIP) error
CreateVIP creates a Virtual Server in the Load Balancer
func (*HAProxyProvider) DeleteMonitor ¶
func (p *HAProxyProvider) DeleteMonitor(m *lbv1.Monitor) error
DeleteMonitor deletes a monitor in the IP Load Balancer
func (*HAProxyProvider) DeletePool ¶
func (p *HAProxyProvider) DeletePool(pool *lbv1.Pool) error
DeletePool removes a server pool in the Load Balancer
func (*HAProxyProvider) DeletePoolMember ¶
func (p *HAProxyProvider) DeletePoolMember(m *lbv1.PoolMember, pool *lbv1.Pool) error
DeletePoolMember deletes a member in the Load Balancer
func (*HAProxyProvider) DeleteVIP ¶
func (p *HAProxyProvider) DeleteVIP(v *lbv1.VIP) error
DeleteVIP deletes a Virtual Server in the Load Balancer
func (*HAProxyProvider) EditMonitor ¶
func (p *HAProxyProvider) EditMonitor(m *lbv1.Monitor) error
EditMonitor edits a monitor in the IP Load Balancer if port argument is 0, no port override is configured
func (*HAProxyProvider) EditPool ¶
func (p *HAProxyProvider) EditPool(pool *lbv1.Pool) error
EditPool modifies a server pool in the Load Balancer
func (*HAProxyProvider) EditPoolMember ¶
func (p *HAProxyProvider) EditPoolMember(m *lbv1.PoolMember, pool *lbv1.Pool, status string) error
EditPoolMember modifies a server pool member in the Load Balancer status could be "enable" or "disable"
func (*HAProxyProvider) EditVIP ¶
func (p *HAProxyProvider) EditVIP(v *lbv1.VIP) error
EditVIP modifies a Virtual Server in the Load Balancer
func (*HAProxyProvider) GetMonitor ¶
GetMonitor gets a monitor in the IP Load Balancer
func (*HAProxyProvider) GetPoolMembers ¶
GetPoolMembers gets the pool members and return them in Pool object
func (*HAProxyProvider) HealthCheck ¶
func (p *HAProxyProvider) HealthCheck() error
HealthCheck checks if a connection to the Load Balancer is established