state

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: UPL-1.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultIngressName      = "default_ingress"
	ArtifactTypeSecret      = "secret"
	ArtifactTypeCertificate = "certificate"

	PortConflictMessage          = "validation failure: service port %d configured with multiple certificates or secrets"
	HealthCheckerConflictMessage = "validation failure: conflict with health checker configured for backend set %s"
	PolicyConflictMessage        = "validation failure: conflict with policy configured for backend set %s"
	ProtocolConflictMessage      = "validation failure: conflict with protocol configured for listener %d"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IngressClassState

type IngressClassState struct {
	BackendSets                sets.String
	BackendSetHealthCheckerMap map[string]*ociloadbalancer.HealthCheckerDetails
	BackendSetPolicyMap        map[string]string
	BackendSetTLSConfigMap     map[string]TlsConfig
	Listeners                  sets.Int32
	ListenerProtocolMap        map[int32]string
	ListenerTLSConfigMap       map[int32]TlsConfig
}

type IngressState

type IngressState struct {
	BackendSets sets.String
	Ports       sets.Int32
	ClassName   string
}

type StateStore

type StateStore struct {
	IngressClassLister networkinglisters.IngressClassLister
	IngressLister      networkinglisters.IngressLister
	ServiceLister      corelisters.ServiceLister
	IngressGroupState  IngressClassState
	IngressState       map[string]IngressState
	// contains filtered or unexported fields
}

func NewStateStore

func NewStateStore(ingressClassLister networkinglisters.IngressClassLister,
	ingressLister networkinglisters.IngressLister,
	serviceLister corelisters.ServiceLister, collector *metric.IngressCollector) *StateStore

func (*StateStore) BuildState

func (s *StateStore) BuildState(ingressClass *networkingv1.IngressClass) error

func (*StateStore) GetAllBackendSetForIngressClass

func (s *StateStore) GetAllBackendSetForIngressClass() sets.String

func (*StateStore) GetAllListenersForIngressClass

func (s *StateStore) GetAllListenersForIngressClass() sets.Int32

func (*StateStore) GetBackendSetHealthChecker

func (s *StateStore) GetBackendSetHealthChecker(bsName string) *ociloadbalancer.HealthCheckerDetails

func (*StateStore) GetBackendSetPolicy

func (s *StateStore) GetBackendSetPolicy(bsName string) string

func (*StateStore) GetIngressBackendSets

func (s *StateStore) GetIngressBackendSets(ingressName string) sets.String

func (*StateStore) GetIngressPorts

func (s *StateStore) GetIngressPorts(ingressName string) sets.Int32

func (*StateStore) GetListenerProtocol

func (s *StateStore) GetListenerProtocol(listenerPort int32) string

func (*StateStore) GetTLSConfigForBackendSet

func (s *StateStore) GetTLSConfigForBackendSet(bsName string) (string, string)

func (*StateStore) GetTLSConfigForListener

func (s *StateStore) GetTLSConfigForListener(port int32) (string, string)

type TlsConfig

type TlsConfig struct {
	Artifact string
	Type     string
}

Jump to

Keyboard shortcuts

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