gatewayclass

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decorator

type Decorator struct {
	*gatewayv1.GatewayClass
}

Decorator is a wrapper around upstream GatewayClass to add additional functionality.

func DecorateGatewayClass

func DecorateGatewayClass(gwc *gatewayv1.GatewayClass) *Decorator

DecorateGatewayClass returns a Decorator object wrapping the provided GatewayClass object.

func NewDecorator

func NewDecorator() *Decorator

NewDecorator returns Decorator object to add additional functionality to the base K8s GatewayClass.

func (*Decorator) GetConditions

func (gwc *Decorator) GetConditions() []metav1.Condition

GetConditions returns status conditions of GatewayClass.

func (*Decorator) IsAccepted

func (gwc *Decorator) IsAccepted() bool

IsAccepted returns true if the GatewayClass has been accepted by the operator.

func (*Decorator) IsControlled

func (gwc *Decorator) IsControlled() bool

IsControlled returns boolean if the GatewayClass is controlled by this controller.

func (*Decorator) SetConditions

func (gwc *Decorator) SetConditions(conditions []metav1.Condition)

SetConditions sets status conditions of GatewayClass.

Jump to

Keyboard shortcuts

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