internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyMaps

func CopyMaps[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](dst M1, src M2)

CopyMaps helper for copying map contents

func Default

func Default[T any](object *T, defaultValue T) T

func Flatten

func Flatten(m map[string]interface{}) map[string][]byte

func Float32PtrToIntPtr

func Float32PtrToIntPtr(float *float32) *int

func ParseConnectionDetailsFromKubeYaml

func ParseConnectionDetailsFromKubeYaml(kubeConfig []byte) (string, string)

ParseConnectionDetailsFromKubeYaml extracts server Url and certificate bundle from kubeconfig and returns it, if parsing fails empty strings are returned

func Ptr

func Ptr[T any](v T) *T

func SliceContainsIgnoreCase

func SliceContainsIgnoreCase(slice []string, v1 string) bool

func SliceEqualsFold

func SliceEqualsFold(left []string, right []string) bool

func Val

func Val[VAL any, PTR *VAL](ptr PTR) VAL

Types

This section is empty.

Jump to

Keyboard shortcuts

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