Documentation ¶
Index ¶
- func GetRuntimeObjectKey(rtobj runtime.Object) (rv string, err error)
- func GetRuntimeObjectNamespacedName(rtobj runtime.Object) (types.NamespacedName, error)
- func IdentTextBlock(indent int, miltilineTextBlock string) string
- func IsNotFound(err error) bool
- func IsNotFoundOrMoreThanOne(err error) bool
- func KeyToNamespacedName(ref string) (rv types.NamespacedName)
- func RecursiveUnwrap(err error) (rv error)
- func UnstructuredObj(gvk *schema.GroupVersionKind, nName types.NamespacedName) *unstructured.Unstructured
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRuntimeObjectNamespacedName ¶
func GetRuntimeObjectNamespacedName(rtobj runtime.Object) (types.NamespacedName, error)
func IdentTextBlock ¶ added in v0.0.18
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 IsNotFoundOrMoreThanOne ¶ added in v0.0.21
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 UnstructuredObj ¶ added in v0.0.27
func UnstructuredObj(gvk *schema.GroupVersionKind, nName types.NamespacedName) *unstructured.Unstructured
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.