Documentation ¶
Index ¶
- func Capitalize(s string) string
- func ColoredUnifiedDiff(from, to string) (uDiff string, present bool)
- func ConvertGVKtoGVR(gvk schema.GroupVersionKind, mapper meta.RESTMapper) (gvr schema.GroupVersionResource, namespaced bool, err error)
- func ConvertGVRtoGVK(gvr schema.GroupVersionResource, restMapper meta.RESTMapper) (schema.GroupVersionKind, error)
- func FallbackNamespace(namespace string, fallbackNamespaces ...string) string
- func JsonPatchPathToJsonPath(path string) string
- func MergeJson(mergeA, toB []byte) (result []byte, changed bool, err error)
- func Multierrorf(format string, errs []error, a ...any) error
- func ParseKubectlResourceStringToGVR(resource string) schema.GroupVersionResource
- func ParseKubectlResourceStringtoGVK(resource string, restMapper meta.RESTMapper, ...) (schema.GroupVersionKind, error)
- func ParseProperties(ctx context.Context, input string) (map[string]any, error)
- func ResourcesReallyDiffer(first, second *unstructured.Unstructured) (differ bool, err error)
- func SubtractJson(fromA, subtractB []byte) (result []byte, changed bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capitalize ¶
func ColoredUnifiedDiff ¶
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 JsonPatchPathToJsonPath ¶
func ParseKubectlResourceStringToGVR ¶
func ParseKubectlResourceStringToGVR(resource string) schema.GroupVersionResource
func ParseKubectlResourceStringtoGVK ¶
func ParseKubectlResourceStringtoGVK(resource string, restMapper meta.RESTMapper, discClient discovery.CachedDiscoveryInterface) (schema.GroupVersionKind, error)
func ParseProperties ¶
func ResourcesReallyDiffer ¶
func ResourcesReallyDiffer(first, second *unstructured.Unstructured) (differ bool, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.