Documentation ¶
Index ¶
- Constants
- type Configuration
- type GenericController
- func (ic GenericController) GetAuthCertificate(secretName string) (*resolver.AuthSSLCert, error)
- func (ic GenericController) GetDefaultBackend() defaults.Backend
- func (ic GenericController) GetSecret(name string) (*api.Secret, error)
- func (ic GenericController) Info() *ingress.BackendInfo
- func (ic GenericController) IngressClass() string
- func (ic GenericController) Start()
- func (ic GenericController) Stop() error
Constants ¶
View Source
const DeniedKeyName = "Denied"
DeniedKeyName name of the key that contains the reason to deny a location
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Client clientset.Interface ResyncPeriod time.Duration DefaultService string IngressClass string Namespace string ConfigMapName string ForceNamespaceIsolation bool // optional TCPConfigMapName string // optional UDPConfigMapName string DefaultSSLCertificate string DefaultHealthzURL string DefaultIngressClass string // optional PublishService string // Backend is the particular implementation to be used. // (for instance NGINX) Backend ingress.Controller UpdateStatus bool ElectionID string }
Configuration contains all the settings required by an Ingress controller
type GenericController ¶
type GenericController struct {
// contains filtered or unexported fields
}
GenericController holds the boilerplate code required to build an Ingress controlller.
func NewIngressController ¶
func NewIngressController(backend ingress.Controller) *GenericController
NewIngressController returns a configured Ingress controller
func (GenericController) GetAuthCertificate ¶
func (ic GenericController) GetAuthCertificate(secretName string) (*resolver.AuthSSLCert, error)
GetAuthCertificate ...
func (GenericController) GetDefaultBackend ¶
func (ic GenericController) GetDefaultBackend() defaults.Backend
GetDefaultBackend returns the default backend
func (GenericController) GetSecret ¶
func (ic GenericController) GetSecret(name string) (*api.Secret, error)
GetSecret searches for a secret in the local secrets Store
func (GenericController) Info ¶
func (ic GenericController) Info() *ingress.BackendInfo
Info returns information about the backend
func (GenericController) IngressClass ¶
func (ic GenericController) IngressClass() string
IngressClass returns information about the backend
func (GenericController) Start ¶
func (ic GenericController) Start()
Start starts the Ingress controller.
func (GenericController) Stop ¶
func (ic GenericController) Stop() error
Stop stops the loadbalancer controller.
Click to show internal directories.
Click to hide internal directories.