utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FloatToQuantity

func FloatToQuantity(n float64) resource.Quantity

func GetKeys

func GetKeys[K, V comparable](m map[K]V) []K

func PointerToString

func PointerToString(o any) string

func ReverseMap

func ReverseMap[K, V comparable](m map[K]V) map[V]K

func SlicesWithUniqueValuesEqual

func SlicesWithUniqueValuesEqual[V comparable](a, b []V) bool

func StringSliceToWrappedStringSlice

func StringSliceToWrappedStringSlice(arr []string) []*wrapperspb.StringValue

func WrappedStringSliceToStringSlice

func WrappedStringSliceToStringSlice(arr []*wrapperspb.StringValue) []string

Types

type Diff

type Diff struct {
	Name            string
	Desired, Actual interface{}
}

Directories

Path Synopsis
coralogix
v1alpha1
Package v1alpha1 contains API Schema definitions for the coralogix v1alpha1 API group +kubebuilder:object:generate=true +groupName=coralogix.coralogix
Package v1alpha1 contains API Schema definitions for the coralogix v1alpha1 API group +kubebuilder:object:generate=true +groupName=coralogix.coralogix

Jump to

Keyboard shortcuts

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