utls

package
v0.0.0-...-3d5d804 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(s string) string

func ColoredUnifiedDiff

func ColoredUnifiedDiff(from, to string) (uDiff string, present bool)

func ConvertGVKtoGVR

func ConvertGVKtoGVR(gvk schema.GroupVersionKind, mapper meta.RESTMapper) (gvr schema.GroupVersionResource, namespaced bool, err error)

func ConvertGVRtoGVK

func ConvertGVRtoGVK(gvr schema.GroupVersionResource, restMapper meta.RESTMapper) (schema.GroupVersionKind, error)

func FallbackNamespace

func FallbackNamespace(namespace string, fallbackNamespaces ...string) string

func JsonPatchPathToJsonPath

func JsonPatchPathToJsonPath(path string) string

func MergeJson

func MergeJson(mergeA, toB []byte) (result []byte, changed bool, err error)

func Multierrorf

func Multierrorf(format string, errs []error, a ...any) error

func ParseKubectlResourceStringToGVR

func ParseKubectlResourceStringToGVR(resource string) schema.GroupVersionResource

func ParseKubectlResourceStringtoGVK

func ParseKubectlResourceStringtoGVK(resource string, restMapper meta.RESTMapper, discClient discovery.CachedDiscoveryInterface) (schema.GroupVersionKind, error)

func ResourcesReallyDiffer

func ResourcesReallyDiffer(first, second *unstructured.Unstructured) (differ bool, err error)

func SubtractJson

func SubtractJson(fromA, subtractB []byte) (result []byte, changed bool, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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