annotations

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyStatus = errors.New("emptyST")

Functions

func HandleAnnotation

func HandleAnnotation(a Annotation, value store.StringW, forceParse bool) (updated bool)

func HandleBackendAnnotations

func HandleBackendAnnotations(k8sStore store.K8s, client api.HAProxyClient, backend *models.Backend, forceParse bool, annotations ...store.MapStringW) (reload bool)

func HandleGlobalAnnotations

func HandleGlobalAnnotations(k8sStore store.K8s, client api.HAProxyClient, forcePase bool, annotations store.MapStringW) (restart bool, reload bool)

func HandleServerAnnotations

func HandleServerAnnotations(k8sStore store.K8s, client api.HAProxyClient, haproxyCerts *haproxy.Certificates, server *models.Server, forceParse bool, annotations ...store.MapStringW) (reload bool)

Types

type Annotation

type Annotation interface {
	Parse(value store.StringW, forceParse bool) error
	GetName() string
	Update() error
}

func GetBackendAnnotations

func GetBackendAnnotations(client api.HAProxyClient, b *models.Backend) []Annotation

func GetGlobalAnnotations

func GetGlobalAnnotations(client api.HAProxyClient) []Annotation

func GetServerAnnotations

func GetServerAnnotations(s *models.Server, k8sStore store.K8s, certs *haproxy.Certificates) []Annotation

type BackendAbortOnClose

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

func NewBackendAbortOnClose

func NewBackendAbortOnClose(n string, b *models.Backend) *BackendAbortOnClose

func (*BackendAbortOnClose) GetName

func (a *BackendAbortOnClose) GetName() string

func (*BackendAbortOnClose) Parse

func (a *BackendAbortOnClose) Parse(input store.StringW, forceParse bool) error

func (*BackendAbortOnClose) Update

func (a *BackendAbortOnClose) Update() error

type BackendCfgSnippet

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

func NewBackendCfgSnippet

func NewBackendCfgSnippet(n string, c api.HAProxyClient, b *models.Backend) *BackendCfgSnippet

func (*BackendCfgSnippet) GetName

func (a *BackendCfgSnippet) GetName() string

func (*BackendCfgSnippet) Parse

func (a *BackendCfgSnippet) Parse(input store.StringW, forceParse bool) error

func (*BackendCfgSnippet) Update

func (a *BackendCfgSnippet) Update() error

type BackendCheckHTTP

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

func NewBackendCheckHTTP

func NewBackendCheckHTTP(n string, b *models.Backend) *BackendCheckHTTP

func (*BackendCheckHTTP) GetName

func (a *BackendCheckHTTP) GetName() string

func (*BackendCheckHTTP) Parse

func (a *BackendCheckHTTP) Parse(input store.StringW, forceParse bool) error

func (*BackendCheckHTTP) Update

func (a *BackendCheckHTTP) Update() error

type BackendCookie

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

func NewBackendCookie

func NewBackendCookie(n string, b *models.Backend) *BackendCookie

func (*BackendCookie) GetName

func (a *BackendCookie) GetName() string

func (*BackendCookie) Parse

func (a *BackendCookie) Parse(input store.StringW, forceParse bool) error

func (*BackendCookie) Update

func (a *BackendCookie) Update() error

type BackendForwardedFor

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

func NewBackendForwardedFor

func NewBackendForwardedFor(n string, b *models.Backend) *BackendForwardedFor

func (*BackendForwardedFor) GetName

func (a *BackendForwardedFor) GetName() string

func (*BackendForwardedFor) Parse

func (a *BackendForwardedFor) Parse(input store.StringW, forceParse bool) error

func (*BackendForwardedFor) Update

func (a *BackendForwardedFor) Update() error

type BackendLoadBalance

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

func NewBackendLoadBalance

func NewBackendLoadBalance(n string, b *models.Backend) *BackendLoadBalance

func (*BackendLoadBalance) GetName

func (a *BackendLoadBalance) GetName() string

func (*BackendLoadBalance) Parse

func (a *BackendLoadBalance) Parse(input store.StringW, forceParse bool) error

func (*BackendLoadBalance) Update

func (a *BackendLoadBalance) Update() error

type BackendTimeoutCheck

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

func NewBackendTimeoutCheck

func NewBackendTimeoutCheck(n string, b *models.Backend) *BackendTimeoutCheck

func (*BackendTimeoutCheck) GetName

func (a *BackendTimeoutCheck) GetName() string

func (*BackendTimeoutCheck) Parse

func (a *BackendTimeoutCheck) Parse(input store.StringW, forceParse bool) error

func (*BackendTimeoutCheck) Update

func (a *BackendTimeoutCheck) Update() error

type DefaultLogFormat

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

func NewDefaultLogFormat

func NewDefaultLogFormat(n string, c api.HAProxyClient) *DefaultLogFormat

func (*DefaultLogFormat) GetName

func (a *DefaultLogFormat) GetName() string

func (*DefaultLogFormat) Parse

func (a *DefaultLogFormat) Parse(input store.StringW, forceParse bool) error

func (*DefaultLogFormat) Update

func (a *DefaultLogFormat) Update() error

type DefaultOption

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

func NewDefaultOption

func NewDefaultOption(n string, c api.HAProxyClient) *DefaultOption

func (*DefaultOption) GetName

func (a *DefaultOption) GetName() string

func (*DefaultOption) Parse

func (a *DefaultOption) Parse(input store.StringW, forceParse bool) error

func (*DefaultOption) Update

func (a *DefaultOption) Update() error

type DefaultTimeout

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

func NewDefaultTimeout

func NewDefaultTimeout(n string, c api.HAProxyClient) *DefaultTimeout

func (*DefaultTimeout) GetName

func (a *DefaultTimeout) GetName() string

func (*DefaultTimeout) Parse

func (a *DefaultTimeout) Parse(input store.StringW, forceParse bool) error

func (*DefaultTimeout) Update

func (a *DefaultTimeout) Update() error

type FrontendCfgSnippet added in v1.6.0

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

func NewFrontendCfgSnippet added in v1.6.0

func NewFrontendCfgSnippet(n string, c api.HAProxyClient, frontendNames []string) *FrontendCfgSnippet

func (*FrontendCfgSnippet) GetName added in v1.6.0

func (a *FrontendCfgSnippet) GetName() string

func (*FrontendCfgSnippet) Parse added in v1.6.0

func (a *FrontendCfgSnippet) Parse(input store.StringW, forceParse bool) error

func (*FrontendCfgSnippet) Update added in v1.6.0

func (a *FrontendCfgSnippet) Update() error

type GlobalCfgSnippet

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

func NewGlobalCfgSnippet

func NewGlobalCfgSnippet(n string, c api.HAProxyClient) *GlobalCfgSnippet

func (*GlobalCfgSnippet) GetName

func (a *GlobalCfgSnippet) GetName() string

func (*GlobalCfgSnippet) Parse

func (a *GlobalCfgSnippet) Parse(input store.StringW, forceParse bool) error

func (*GlobalCfgSnippet) Update

func (a *GlobalCfgSnippet) Update() error

type GlobalHardStopAfter

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

func NewGlobalHardStopAfter

func NewGlobalHardStopAfter(n string, c api.HAProxyClient) *GlobalHardStopAfter

func (*GlobalHardStopAfter) Delete

func (a *GlobalHardStopAfter) Delete() error

func (*GlobalHardStopAfter) GetName

func (a *GlobalHardStopAfter) GetName() string

func (*GlobalHardStopAfter) Parse

func (a *GlobalHardStopAfter) Parse(input store.StringW, forceParse bool) error

func (*GlobalHardStopAfter) Update

func (a *GlobalHardStopAfter) Update() error

type GlobalMaxconn

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

func NewGlobalMaxconn

func NewGlobalMaxconn(n string, c api.HAProxyClient) *GlobalMaxconn

func (*GlobalMaxconn) GetName

func (a *GlobalMaxconn) GetName() string

func (*GlobalMaxconn) Parse

func (a *GlobalMaxconn) Parse(input store.StringW, forceParse bool) error

func (*GlobalMaxconn) Update

func (a *GlobalMaxconn) Update() error

type GlobalNbthread

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

func NewGlobalNbthread

func NewGlobalNbthread(n string, c api.HAProxyClient) *GlobalNbthread

func (*GlobalNbthread) GetName

func (a *GlobalNbthread) GetName() string

func (*GlobalNbthread) Parse

func (a *GlobalNbthread) Parse(input store.StringW, forceParse bool) error

func (*GlobalNbthread) Update

func (a *GlobalNbthread) Update() error

type GlobalSyslogServers

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

func NewGlobalSyslogServers

func NewGlobalSyslogServers(n string, c api.HAProxyClient) *GlobalSyslogServers

func (*GlobalSyslogServers) GetName

func (a *GlobalSyslogServers) GetName() string

func (*GlobalSyslogServers) Parse

func (a *GlobalSyslogServers) Parse(input store.StringW, forceParse bool) error

Input is multiple syslog lines Each syslog line is a list of params Example:

syslog-server: |
  address:127.0.0.1, port:514, facility:local0
  address:192.168.1.1, port:514, facility:local1

func (*GlobalSyslogServers) Restart

func (a *GlobalSyslogServers) Restart() bool

func (*GlobalSyslogServers) Update

func (a *GlobalSyslogServers) Update() error

type ServerCA

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

func NewServerCA

func NewServerCA(n string, k store.K8s, c *haproxy.Certificates, s *models.Server) *ServerCA

func (*ServerCA) GetName

func (a *ServerCA) GetName() string

func (*ServerCA) Parse

func (a *ServerCA) Parse(input store.StringW, forceParse bool) error

func (*ServerCA) Update

func (a *ServerCA) Update() error

type ServerCheck

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

func NewServerCheck

func NewServerCheck(n string, s *models.Server) *ServerCheck

func (*ServerCheck) GetName

func (a *ServerCheck) GetName() string

func (*ServerCheck) Parse

func (a *ServerCheck) Parse(input store.StringW, forceParse bool) error

func (*ServerCheck) Update

func (a *ServerCheck) Update() error

type ServerCheckInter

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

func NewServerCheckInter

func NewServerCheckInter(n string, s *models.Server) *ServerCheckInter

func (*ServerCheckInter) GetName

func (a *ServerCheckInter) GetName() string

func (*ServerCheckInter) Parse

func (a *ServerCheckInter) Parse(input store.StringW, forceParse bool) error

func (*ServerCheckInter) Update

func (a *ServerCheckInter) Update() error

type ServerCookie

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

func NewServerCookie

func NewServerCookie(n string, s *models.Server) *ServerCookie

func (*ServerCookie) GetName

func (a *ServerCookie) GetName() string

func (*ServerCookie) Parse

func (a *ServerCookie) Parse(input store.StringW, forceParse bool) error

func (*ServerCookie) Update

func (a *ServerCookie) Update() error

type ServerCrt

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

func NewServerCrt

func NewServerCrt(n string, k store.K8s, c *haproxy.Certificates, s *models.Server) *ServerCrt

func (*ServerCrt) GetName

func (a *ServerCrt) GetName() string

func (*ServerCrt) Parse

func (a *ServerCrt) Parse(input store.StringW, forceParse bool) error

func (*ServerCrt) Update

func (a *ServerCrt) Update() error

type ServerMaxconn

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

func NewServerMaxconn

func NewServerMaxconn(n string, s *models.Server) *ServerMaxconn

func (*ServerMaxconn) GetName

func (a *ServerMaxconn) GetName() string

func (*ServerMaxconn) Parse

func (a *ServerMaxconn) Parse(input store.StringW, forceParse bool) error

func (*ServerMaxconn) Update

func (a *ServerMaxconn) Update() error

type ServerProto

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

func NewServerProto

func NewServerProto(n string, s *models.Server) *ServerProto

func (*ServerProto) GetName

func (a *ServerProto) GetName() string

func (*ServerProto) Parse

func (a *ServerProto) Parse(input store.StringW, forceParse bool) error

func (*ServerProto) Update

func (a *ServerProto) Update() error

type ServerSSL

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

func NewServerSSL

func NewServerSSL(n string, s *models.Server) *ServerSSL

func (*ServerSSL) GetName

func (a *ServerSSL) GetName() string

func (*ServerSSL) Parse

func (a *ServerSSL) Parse(input store.StringW, forceParse bool) error

func (*ServerSSL) Update

func (a *ServerSSL) Update() error

type ServerSendProxy

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

func NewServerSendProxy

func NewServerSendProxy(n string, s *models.Server) *ServerSendProxy

func (*ServerSendProxy) GetName

func (a *ServerSendProxy) GetName() string

func (*ServerSendProxy) Parse

func (a *ServerSendProxy) Parse(input store.StringW, forceParse bool) error

func (*ServerSendProxy) Update

func (a *ServerSendProxy) Update() error

Jump to

Keyboard shortcuts

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