Documentation
¶
Index ¶
- func GetCPForRef(ctx context.Context, cl client.Client, cpRef commonv1alpha1.ControlPlaneRef, ...) (*konnectv1alpha2.KonnectGatewayControlPlane, error)
- func GetControlPlaneRef[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]](e TEnt) mo.Option[commonv1alpha1.ControlPlaneRef]
- func SpecDeepEqual(spec1, spec2 *gwtypes.ControlPlaneOptions) bool
- type DefaultsArgs
- type ReferencedControlPlaneDoesNotExistError
- type ReferencedKongGatewayControlPlaneIsUnsupported
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCPForRef ¶
func GetCPForRef( ctx context.Context, cl client.Client, cpRef commonv1alpha1.ControlPlaneRef, namespace string, ) (*konnectv1alpha2.KonnectGatewayControlPlane, error)
GetCPForRef returns the KonnectGatewayControlPlane for the given ControlPlaneRef.
func GetControlPlaneRef ¶
func GetControlPlaneRef[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]]( e TEnt, ) mo.Option[commonv1alpha1.ControlPlaneRef]
GetControlPlaneRef returns the ControlPlaneRef for the given entity.
func SpecDeepEqual ¶
func SpecDeepEqual(spec1, spec2 *gwtypes.ControlPlaneOptions) bool
SpecDeepEqual returns true if the two ControlPlaneOptions are equal.
Types ¶
type DefaultsArgs ¶
type DefaultsArgs struct {
Namespace string
ControlPlaneName string
DataPlaneIngressServiceName string
DataPlaneAdminServiceName string
OwnedByGateway string
}
DefaultsArgs contains the parameters to pass to setControlPlaneDefaults
type ReferencedControlPlaneDoesNotExistError ¶
type ReferencedControlPlaneDoesNotExistError struct {
Reference commonv1alpha1.ControlPlaneRef
Err error
}
ReferencedControlPlaneDoesNotExistError is an error type that is returned when a Konnect entity references a KonnectGatewayControlPlane that does not exist.
func (ReferencedControlPlaneDoesNotExistError) Error ¶
func (e ReferencedControlPlaneDoesNotExistError) Error() string
Error implements the error interface.
func (ReferencedControlPlaneDoesNotExistError) Unwrap ¶
func (e ReferencedControlPlaneDoesNotExistError) Unwrap() error
Unwrap returns the underlying error.
type ReferencedKongGatewayControlPlaneIsUnsupported ¶
type ReferencedKongGatewayControlPlaneIsUnsupported struct {
Reference commonv1alpha1.ControlPlaneRef
}
ReferencedKongGatewayControlPlaneIsUnsupported is an error type that is returned when a given CP reference type is not supported.
func (ReferencedKongGatewayControlPlaneIsUnsupported) Error ¶
func (e ReferencedKongGatewayControlPlaneIsUnsupported) Error() string