common

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsJSON

func AsJSON(item interface{}) string

AsJSON serializes a given item into a JSON string. The item is assumed to be JSON-serializable as this function will panic otherwise.

func ParseParent

func ParseParent(stringified string) gwv1alpha2.ParentReference

ParseParent deserializes a JSON string into a gwv1alpha2.ParentReference. The string is assumed to be a valid JSON representation as this function will panic otherwise.

func SupportedKindsFor

func SupportedKindsFor(protocol gwv1beta1.ProtocolType) []gwv1beta1.RouteGroupKind

SupportedKindsFor returns the list of xRoute Kinds that support a given protocol

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL