service

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: 9 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, tcpService bool) (*SvcContext, error)

func (*SvcContext) GetBackendName

func (s *SvcContext) GetBackendName() (string, 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, backendName string, err error)

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

func (*SvcContext) HandleEndpoints

func (s *SvcContext) HandleEndpoints(client api.HAProxyClient, store store.K8s, certs *haproxy.Certificates) (reload bool)

HandleEndpoints lookups the IngressPath related endpoints and handles corresponding backend servers configuration in HAProxy

Jump to

Keyboard shortcuts

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