state

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendPaths added in v0.2.0

type BackendPaths map[string][]*IngressPathConfig // host->ingressPath

type IngressPathConfig

type IngressPathConfig struct {
	Namespace   string
	Config      *v1Net.HTTPIngressPath
	ServicePort *v1Core.ServicePort
}

type IngressState

type IngressState struct {
	PathMap    BackendPaths
	TlsSecrets TlsSecrets
}

type IngressStateManager

type IngressStateManager struct {
	Ready bool
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, config *rest.Config, ingressClassName string) *IngressStateManager

New creates a new Kubernetes Ingress state. The ctx can be used to cancel the listening to updates from the Kubernetes API.

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 TlsSecrets added in v0.2.0

type TlsSecrets map[string]*v1Core.Secret // host->secret

Jump to

Keyboard shortcuts

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