Documentation
¶
Index ¶
- func FromUnstructured(in unstructured.Unstructured, out client.Object) error
- func HTTPBackendRefsToBackendRefs(refs []gwtypes.HTTPBackendRef) []gwtypes.BackendRef
- func Hash32(obj any) string
- func Hash64(obj any) string
- func HostnameIntersection(listenerHostname, routeHostname string) (string, bool)
- func ToUnstructured(obj client.Object, scheme *runtime.Scheme) (unstructured.Unstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromUnstructured ¶
func FromUnstructured(in unstructured.Unstructured, out client.Object) error
FromUnstructured converts an unstructured.Unstructured object to a typed client.Object. It returns an error if the conversion fails.
func HTTPBackendRefsToBackendRefs ¶ added in v2.2.0
func HTTPBackendRefsToBackendRefs(refs []gwtypes.HTTPBackendRef) []gwtypes.BackendRef
HTTPBackendRefsToBackendRefs unwraps []HTTPBackendRef to []BackendRef.
func HostnameIntersection ¶ added in v2.1.1
HostnameIntersection returns the most specific hostname that satisfies both constraints and whether an intersection exists. Empty input hostnames are treated as the Gateway API match-any wildcard ("*").
func ToUnstructured ¶
func ToUnstructured(obj client.Object, scheme *runtime.Scheme) (unstructured.Unstructured, error)
ToUnstructured converts a client.Object to an unstructured.Unstructured object. It infers TypeMeta using the provided scheme if not set. Returns the unstructured object and any error encountered during conversion.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.