gw

package
v1.4.14 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-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 GatewayStatusUpdate

type GatewayStatusUpdate struct {
	// contains filtered or unexported fields
}

func NewGatewayStatusUpdate

func NewGatewayStatusUpdate(resource client.Object, meta *metav1.ObjectMeta, typeMeta *metav1.TypeMeta, gs *gwv1.GatewayStatus) *GatewayStatusUpdate

func (*GatewayStatusUpdate) AddCondition

func (g *GatewayStatusUpdate) AddCondition(
	conditionType gwv1.GatewayConditionType,
	status metav1.ConditionStatus,
	reason gwv1.GatewayConditionReason,
	message string,
) metav1.Condition

AddCondition returns a metav1.Condition for a given GatewayConditionType.

func (*GatewayStatusUpdate) AddListenerCondition

func (g *GatewayStatusUpdate) AddListenerCondition(
	listenerName string,
	cond gwv1.ListenerConditionType,
	status metav1.ConditionStatus,
	reason gwv1.ListenerConditionReason,
	message string,
) metav1.Condition

AddListenerCondition adds a Condition for the specified listener.

func (*GatewayStatusUpdate) ConditionExists

func (g *GatewayStatusUpdate) ConditionExists(conditionType gwv1.GatewayConditionType) bool

func (*GatewayStatusUpdate) GetListenerStatus

func (g *GatewayStatusUpdate) GetListenerStatus(listenerName string) *gwv1.ListenerStatus

func (*GatewayStatusUpdate) IsStatusConditionTrue

func (g *GatewayStatusUpdate) IsStatusConditionTrue(conditionType gwv1.GatewayConditionType) bool

func (*GatewayStatusUpdate) Mutate

func (*GatewayStatusUpdate) SetAddresses

func (g *GatewayStatusUpdate) SetAddresses(addresses []gwv1.GatewayStatusAddress)

func (*GatewayStatusUpdate) SetListenerAttachedRoutes

func (g *GatewayStatusUpdate) SetListenerAttachedRoutes(listenerName string, numRoutes int)

func (*GatewayStatusUpdate) SetListenerSupportedKinds

func (g *GatewayStatusUpdate) SetListenerSupportedKinds(listenerName string, groupKinds []gwv1.RouteGroupKind)

Jump to

Keyboard shortcuts

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