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 ¶ added in v1.4.0
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.
func NewDecorator ¶
func NewDecorator() *Decorator
NewDecorator returns Decorator object to add additional functionality to the base K8s GatewayClass.
func (*Decorator) GetConditions ¶
GetConditions returns status conditions of GatewayClass.
func (*Decorator) IsAccepted ¶
IsAccepted returns true if the GatewayClass has been accepted by the operator.
func (*Decorator) IsControlled ¶
IsControlled returns boolean if the GatewayClass is controlled by this controller.
func (*Decorator) SetConditions ¶
SetConditions sets status conditions of GatewayClass.