state

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 18 Imported by: 0

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 BackendPath struct {
	PathType    *v1Net.PathType
	Path        string
	Namespace   string
	ServiceName string
	ServicePort int32
}

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.

type TlsCert added in v0.3.7

type TlsCert struct {
	Cert []byte
	Key  []byte
}

Jump to

Keyboard shortcuts

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