utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatMemory

func FormatMemory(quantity resource.Quantity) string

func GetAPIVersion

func GetAPIVersion(obj interface{}) string

func GetEnv

func GetEnv(key, fallback string) string

func GetJSONPath

func GetJSONPath(prefix, key string) string

func GetKind

func GetKind(obj interface{}) string

func GetObjectMetadata

func GetObjectMetadata(obj interface{}) (metav1.Object, string, string)

func GetOblikAnnotations

func GetOblikAnnotations(annotations map[string]string) map[string]string

func ParseDuration

func ParseDuration(durationStr string, defaultDuration time.Duration) time.Duration

Types

This section is empty.

Jump to

Keyboard shortcuts

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