utils

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRuntimeObjectKey

func GetRuntimeObjectKey(rtobj runtime.Object) (rv string, err error)

func GetRuntimeObjectNamespacedName

func GetRuntimeObjectNamespacedName(rtobj runtime.Object) (types.NamespacedName, error)

func IdentTextBlock added in v0.0.18

func IdentTextBlock(indent int, miltilineTextBlock string) string

IdentTextBlock -- returns indented multiline text block

by default the extra `\n` will be added before block if negative `indent` given the `\n` at the start will not be added

func IsNotFound added in v0.0.21

func IsNotFound(err error) bool

func IsNotFoundOrMoreThanOne added in v0.0.21

func IsNotFoundOrMoreThanOne(err error) bool

func KeyToNamespacedName

func KeyToNamespacedName(ref string) (rv types.NamespacedName)

KeyToNamespacedName convert key ("namespace/name" string) to types.NamespacedName

func RecursiveUnwrap added in v0.0.21

func RecursiveUnwrap(err error) (rv error)

func UnstructuredObj added in v0.0.27

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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