util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GVKEquals added in v0.3.2

func GVKEquals(r1, r2 schema.GroupVersionKind) bool

func GVKForResource added in v0.3.2

func GVKForResource(resource *v1.APIResource) schema.GroupVersionKind

func GVREquals

func GVREquals(r1, r2 schema.GroupVersionResource) bool

func GVRForResource added in v0.3.2

func GVRForResource(resource *v1.APIResource) schema.GroupVersionResource

func HumanizeApproximateDuration

func HumanizeApproximateDuration(d time.Duration) string

func Index

func Index[T comparable](vs []T, t T) int

func JsonToYaml

func JsonToYaml(data []byte) ([]byte, error)

func ResourceEquals

func ResourceEquals(r1, r2 *v1.APIResource) bool

func SetSourceColorScheme

func SetSourceColorScheme(buf *gtksource.Buffer)

func YamlToJson

func YamlToJson(data []byte) ([]byte, error)

func YamlToUnstructured added in v0.2.0

func YamlToUnstructured(data []byte) (*unstructured.Unstructured, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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