service

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 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 SvcContext

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

func NewCtx

func NewCtx(k8s store.K8s, ingress *store.Ingress, path *store.IngressPath, certs *haproxy.Certificates, tcpService bool) (*SvcContext, error)

func (*SvcContext) GetBackendName

func (s *SvcContext) GetBackendName() (name string, err error)

GetBackendName checks if servicePort provided in IngressPath exists and construct corresponding backend name Backend name is in format "ServiceNS-ServiceName-PortName"

func (*SvcContext) GetService

func (s *SvcContext) GetService() *store.Service

func (*SvcContext) GetStatus

func (s *SvcContext) GetStatus() store.Status

func (*SvcContext) HandleBackend

func (s *SvcContext) HandleBackend(client api.HAProxyClient, store store.K8s) (reload bool, err error)

HandleBackend processes a Service Context and creates/updates corresponding backend configuration in HAProxy

func (*SvcContext) HandleHAProxySrvs added in v1.7.0

func (s *SvcContext) HandleHAProxySrvs(client api.HAProxyClient, store store.K8s) (reload bool)

HandleHAProxySrvs handles the haproxy backend servers of the corresponding IngressPath (service + port)

Jump to

Keyboard shortcuts

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