Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendPath ¶ added in v1.4.0
type DomainConfig ¶ added in v1.4.0
type DomainConfig struct { BackendPaths []*BackendPath TlsCert *TlsCert }
type IngressState ¶
type IngressState map[string]*DomainConfig
type IngressStateManager ¶
type IngressStateManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, client kubernetes.Interface, ingressClassName string, hostIp net.IP) (*IngressStateManager, error)
New creates a new Kubernetes IngressInformer state. The ctx can be used to cancel the listening to updates from the Kubernetes API. The hostIp is an optional argument. If and only if it is set the ingress status is updated.
func (*IngressStateManager) CleanIngressStatus ¶ added in v1.4.0
func (stateManager *IngressStateManager) CleanIngressStatus(ctx context.Context) []error
CleanIngressStatus is supposed to be called during shutdown and removes all ingress status entries set by this instance. The internal state channel is not updated.
func (*IngressStateManager) GetStateChan ¶ added in v0.1.1
func (stateManager *IngressStateManager) GetStateChan() <-chan IngressState
GetStateChan returns a channel where state updates are delivered. This is the main method used to fetch the current status.
Click to show internal directories.
Click to hide internal directories.