helper

package
v1.2.35-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const ProtocolHttps = "https"
View Source
const True = "true"

Variables

This section is empty.

Functions

func ChunkSlice added in v1.2.33

func ChunkSlice[T any](slice []T, chunkSize int) [][]T

func Contains

func Contains[T comparable](slice []T, element T) bool

func ContainsPrefix added in v1.2.29

func ContainsPrefix(slice []string, prefix string) bool

func DisplaySpinnerWithDelay added in v1.2.1

func DisplaySpinnerWithDelay(reporter *reporter.Object, infoMessage string, delay time.Duration)

func GigybyteStringer added in v1.2.26

func GigybyteStringer(size int) string

func HandleEmptyStringOnSlice added in v1.2.9

func HandleEmptyStringOnSlice(slice []string) []string

func HandleEscapedEmptyString added in v1.2.9

func HandleEscapedEmptyString(input string) string

func IsBYOVPC added in v1.2.34

func IsBYOVPC(cluster *cmv1.Cluster) bool

func IsValidUUID added in v1.2.7

func IsValidUUID(u string) bool

func KeysByValue added in v1.2.28

func KeysByValue(m map[string]string, value string) []string

func LongestCommonPrefixBySorting added in v1.2.11

func LongestCommonPrefixBySorting(stringSlice []string) string

func MapKeys added in v1.2.26

func MapKeys[K comparable, V any](m map[K]V) []K

func MapKeysToString added in v1.2.9

func MapKeysToString[T any](m map[string]T) string

func RandomLabel added in v1.2.9

func RandomLabel(size int) string

func RankMapStringInt added in v1.2.9

func RankMapStringInt(values map[string]int) []string

func RemoveStrFromSlice

func RemoveStrFromSlice(s []string, str string) []string

RemoveStrFromSlice removes one occurrence of 'str' from the 's' slice if exists.

func SaveDocument added in v1.2.3

func SaveDocument(doc, filename string) error

func SliceToMap

func SliceToMap(s []string) map[string]bool

func SliceToSortedString added in v1.2.11

func SliceToSortedString(s []string) string

func SortStringRespectLength added in v1.2.11

func SortStringRespectLength(s []string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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