gatewayclass

package
v2.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Get

func Get(ctx context.Context, cl client.Client, gatewayClassName string) (*Decorator, error)

Get returns a decorated GatewayClass object for the provided GatewayClass name. If the GatewayClass is not found or is not supported, an `ErrUnsupportedGatewayClass` error is returned with a descriptive message. If the GatewayClass is not accepted, an `ErrNotAcceptedGatewayClass` error is returned with a descriptive message.

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