dummy

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyProvider

type DummyProvider struct {
	// contains filtered or unexported fields
}

Provider is the object for the dummy provider implementing the Provider interface

func (*DummyProvider) Close

func (p *DummyProvider) Close() error

Close closes the connection to the IP Load Balancer

func (*DummyProvider) Connect

func (p *DummyProvider) Connect() error

Connect creates a connection to the IP Load Balancer

func (*DummyProvider) Create

func (p *DummyProvider) Create(ctx context.Context, lbBackend lbv1.Provider, username string, password string) error

Create creates a new Load Balancer backend provider

func (*DummyProvider) CreateMonitor

func (p *DummyProvider) 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 (*DummyProvider) CreatePool

func (p *DummyProvider) CreatePool(pool *lbv1.Pool) error

CreatePool creates a server pool in the Load Balancer

func (*DummyProvider) CreatePoolMember

func (p *DummyProvider) CreatePoolMember(m *lbv1.PoolMember, pool *lbv1.Pool) error

GetPoolMembers gets the pool members and return them in Pool object

func (*DummyProvider) CreateVIP

func (p *DummyProvider) CreateVIP(v *lbv1.VIP) error

CreateVIP creates a Virtual Server in the Load Balancer

func (*DummyProvider) DeleteMonitor

func (p *DummyProvider) DeleteMonitor(m *lbv1.Monitor) error

DeleteMonitor deletes a monitor in the IP Load Balancer

func (*DummyProvider) DeletePool

func (p *DummyProvider) DeletePool(pool *lbv1.Pool) error

DeletePool removes a server pool in the Load Balancer

func (*DummyProvider) DeletePoolMember

func (p *DummyProvider) DeletePoolMember(m *lbv1.PoolMember, pool *lbv1.Pool) error

DeletePoolMember deletes a member in the Load Balancer

func (*DummyProvider) DeleteVIP

func (p *DummyProvider) DeleteVIP(v *lbv1.VIP) error

DeleteVIP deletes a Virtual Server in the Load Balancer

func (*DummyProvider) EditMonitor

func (p *DummyProvider) 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 (*DummyProvider) EditPool

func (p *DummyProvider) EditPool(pool *lbv1.Pool) error

EditPool modifies a server pool in the Load Balancer

func (*DummyProvider) EditPoolMember

func (p *DummyProvider) 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 (*DummyProvider) EditVIP

func (p *DummyProvider) EditVIP(v *lbv1.VIP) error

EditVIP modifies a Virtual Server in the Load Balancer

func (*DummyProvider) GetMonitor

func (p *DummyProvider) GetMonitor(monitor *lbv1.Monitor) (*lbv1.Monitor, error)

GetMonitor gets a monitor in the IP Load Balancer

func (*DummyProvider) GetPool

func (p *DummyProvider) GetPool(pool *lbv1.Pool) (*lbv1.Pool, error)

GetPool gets a server pool from the Load Balancer

func (*DummyProvider) GetPoolMembers

func (p *DummyProvider) GetPoolMembers(pool *lbv1.Pool) (*lbv1.Pool, error)

func (*DummyProvider) GetVIP

func (p *DummyProvider) GetVIP(v *lbv1.VIP) (*lbv1.VIP, error)

GetVIP gets a VIP in the IP Load Balancer

Jump to

Keyboard shortcuts

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