state

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayState

type GatewayState struct {
	ConsulNamespace string
	Status          status.GatewayStatus
	PodReady        bool
	ServiceReady    bool
	Generation      int64
	Addresses       []string

	Listeners []*ListenerState
}

GatewayState holds ephemeral state for gateways

func InitialGatewayState

func InitialGatewayState(g *gwv1beta1.Gateway) *GatewayState

func (*GatewayState) GetStatus

func (g *GatewayState) GetStatus(gateway *gwv1beta1.Gateway) gwv1beta1.GatewayStatus

type ListenerState

type ListenerState struct {
	Routes   ResolvedRoutes
	Protocol gwv1beta1.ProtocolType
	Name     gwv1beta1.SectionName
	TLS      core.TLSParams
	Status   status.ListenerStatus
}

ListenerState holds ephemeral state for listeners

func (*ListenerState) Valid

func (l *ListenerState) Valid() bool

type ResolvedRoutes

type ResolvedRoutes map[string]core.ResolvedRoute

func (ResolvedRoutes) MarshalJSON

func (r ResolvedRoutes) MarshalJSON() ([]byte, error)

func (*ResolvedRoutes) UnmarshalJSON

func (r *ResolvedRoutes) UnmarshalJSON(b []byte) error

type RouteState

type RouteState struct {
	References       service.RouteRuleReferenceMap
	ResolutionErrors *service.ResolutionErrors
	ParentStatuses   status.RouteStatuses
}

RouteState holds ephemeral state for routes

func NewRouteState

func NewRouteState() *RouteState

func (*RouteState) BindFailed

func (r *RouteState) BindFailed(err error, ref gwv1alpha2.ParentReference)

func (*RouteState) Bound

func (r *RouteState) Bound(ref gwv1alpha2.ParentReference)

func (*RouteState) Remove

func (r *RouteState) Remove(ref gwv1alpha2.ParentReference)

Jump to

Keyboard shortcuts

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