Documentation
¶
Index ¶
- func IsBackendRefGroupKindSupported(backendRef gatewayv1.BackendObjectReference, extractGVK ExtractGVK) bool
- func IsFilterExtensionRefKindMergeType(extensionRef *gatewayv1.LocalObjectReference, extractGVK ExtractGVK) bool
- func IsFilterExtensionRefKindSupported(extensionRef *gatewayv1.LocalObjectReference, extractGVK ExtractGVK) bool
- func IsParentRefGroupKindSupported(parentRef gatewayv1.ParentReference, extractGVK ExtractGVK) bool
- func IsSecretGroupKindSupported(certRef gatewayv1.SecretObjectReference) bool
- type ExtractGVK
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBackendRefGroupKindSupported ¶
func IsBackendRefGroupKindSupported(backendRef gatewayv1.BackendObjectReference, extractGVK ExtractGVK) bool
IsBackendRefGroupKindSupported checks if the provided HTTPRoute parent reference has a supported Group and Kind. It only supports `corev1.Service` resources.
func IsFilterExtensionRefKindMergeType ¶
func IsFilterExtensionRefKindMergeType(extensionRef *gatewayv1.LocalObjectReference, extractGVK ExtractGVK) bool
func IsFilterExtensionRefKindSupported ¶
func IsFilterExtensionRefKindSupported(extensionRef *gatewayv1.LocalObjectReference, extractGVK ExtractGVK) bool
IsFilterExtensionRefKindSupported checks if the provided filter ExtensionRef has a supported Group and Kind. It only supports `v3.Backend` resources.
func IsParentRefGroupKindSupported ¶
func IsParentRefGroupKindSupported(parentRef gatewayv1.ParentReference, extractGVK ExtractGVK) bool
IsParentRefGroupKindSupported checks if the provided HTTPRoute parent reference has a supported Group and Kind. It only supports `gatewayv1.Gateway` resources.
func IsSecretGroupKindSupported ¶
func IsSecretGroupKindSupported(certRef gatewayv1.SecretObjectReference) bool
IsSecretGroupKindSupported checks if the provided certificate reference has a supported Group and Kind. It only supports core `v1.Secret` resources.
Types ¶
type ExtractGVK ¶
type ExtractGVK func(object client.Object) schema.GroupVersionKind
ExtractGVK is a function that extracts the GroupVersionKind (GVK) of a client.object. It will log an error if the GKV cannot be extracted.
func NewExtractGKV ¶
func NewExtractGKV(scheme *runtime.Scheme, logger *slog.Logger) ExtractGVK
NewExtractGKV creates a new MustExtractGVK function using the scheme.