f5

package
v0.0.0-...-df140f9 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderF5

type ProviderF5 struct {
	Clusteralias string
	// contains filtered or unexported fields
}

ProviderF5 is an implementation of Interface for F5.

func NewProviderF5

func NewProviderF5() *ProviderF5

NewProviderF5 returns new f5 provider for testing purposes

func (*ProviderF5) AddMonitorToPool

func (f5 *ProviderF5) AddMonitorToPool(name string, port string) error

AddMonitorToPool adds monitor to pool

func (*ProviderF5) AddPoolMember

func (f5 *ProviderF5) AddPoolMember(membername string, name string, port string) error

AddPoolMember adds new member to pool

func (*ProviderF5) Calls

func (f5 *ProviderF5) Calls() []string

Calls returns list of methodcalls, not in use in this provider

func (*ProviderF5) CheckAndClean

func (f5 *ProviderF5) CheckAndClean(name string, port string)

CheckAndClean checks pool members and if 0 members left in pool, delete monitor and delete pool

func (*ProviderF5) CheckPools

func (f5 *ProviderF5) CheckPools(routes []v1.Route, hosttowatch string, membername string) map[string]bool

CheckPools compares current load balancer setup and what routes we have. It returns list of pools which should be removed

func (*ProviderF5) CleanCalls

func (f5 *ProviderF5) CleanCalls()

CleanCalls cleans calls, not in use in this provider

func (*ProviderF5) CreateMonitor

func (f5 *ProviderF5) CreateMonitor(host string, port string, uri string, httpMethod string, interval int, timeout int) error

CreateMonitor creates new monitor

func (*ProviderF5) CreatePool

func (f5 *ProviderF5) CreatePool(name string, port string) error

CreatePool creates new loadbalancer pool

func (*ProviderF5) DeletePoolMember

func (f5 *ProviderF5) DeletePoolMember(membername string, poolname string, poolport string) error

DeletePoolMember delete pool member

func (*ProviderF5) Initialize

func (f5 *ProviderF5) Initialize()

Initialize initilizes new provider

func (*ProviderF5) ModifyMonitor

func (f5 *ProviderF5) ModifyMonitor(host string, port string, uri string, httpMethod string, interval int, timeout int) error

ModifyMonitor modifies monitor

func (*ProviderF5) ModifyPool

func (f5 *ProviderF5) ModifyPool(name string, port string, loadBalancingMethod string, pga int, maintenance bool, prio int, role string) error

ModifyPool modifies loadbalancer pool

func (*ProviderF5) PostUpdate

func (f5 *ProviderF5) PostUpdate()

PostUpdate syncs the configuration in f5 cluster

func (*ProviderF5) PreUpdate

func (f5 *ProviderF5) PreUpdate()

PreUpdate checks are we running in HA mode, if yes write to active member

Jump to

Keyboard shortcuts

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