common

package
v0.0.0-...-a1208dc Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 21 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AnnotationStringToSlice

func AnnotationStringToSlice(AnnotationValue string) []string

AnnotationStringToSlice split value by "_"

func CompressString

func CompressString(input string) ([]byte, error)

CompressString compress string

func DecompressString

func DecompressString(input []byte) (string, error)

DecompressString decompress string

func GenerateID

func GenerateID(len int) string

GenerateID generates a random unique id.

func GenerateRandomBytes

func GenerateRandomBytes(l int) []byte

func QueryByFields

func QueryByFields(value any, query string) (res any)

func RenderConfig

func RenderConfig(configPathTmpl, configPath string, s interface{}) error

func RenderRuntimeObject

func RenderRuntimeObject(configPathTmpl string, object runtime.Object, input interface{}) error

func SliceToAnnotationString

func SliceToAnnotationString(slice []string) (AnnotationValue string)

SliceToAnnotationString split annotation from string to slice by ","

Types

This section is empty.

Jump to

Keyboard shortcuts

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