Documentation
¶
Index ¶
- type SvcContext
- func (s *SvcContext) GetBackendName() (name string, err error)
- func (s *SvcContext) GetService() *store.Service
- func (s *SvcContext) GetStatus() store.Status
- func (s *SvcContext) HandleBackend(client api.HAProxyClient, store store.K8s) (reload bool, err error)
- func (s *SvcContext) HandleHAProxySrvs(client api.HAProxyClient, store store.K8s) (reload bool)
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)
Click to show internal directories.
Click to hide internal directories.