util

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeContinue added in v0.7.0

func DecodeContinue(continueStr string) (string, string, error)

DecodeContinue decodes the continue token and get last resoource name and uid

func EncodeContinue added in v0.7.0

func EncodeContinue(lastName, lastUID string) (string, error)

EncodeContinue encodes the continue token with last resource name and uid

func GetCustomResourceColumnDefinitions

func GetCustomResourceColumnDefinitions(name, version string) []apiextensionsv1.CustomResourceColumnDefinition

GetCustomResourceColumnDefinitions return the column definitions for CRD `name`, version `version`.

func ParseLabelSelector added in v0.7.0

func ParseLabelSelector(labelSelector string) (string, error)

func SendWatchEvent added in v0.7.0

func SendWatchEvent(watchEvent *metav1.WatchEvent, writer io.Writer) error

func ShouldReturnAsTable added in v0.7.0

func ShouldReturnAsTable(ginCtx *gin.Context) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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