utils

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPrefixToList

func AddPrefixToList(list []string, prefix string) []string

func BPtr added in v1.1.2

func BPtr(b bool) *bool

func ConvertYAMLListToJSONList

func ConvertYAMLListToJSONList(yamlString string) ([]byte, error)

func ConvertYAMLToJSON added in v1.1.2

func ConvertYAMLToJSON(yamlString []byte) ([]byte, error)

func ExtractStringsBetweenTags added in v1.5.0

func ExtractStringsBetweenTags(input string) []string

func GetClientConfig

func GetClientConfig(kubeConfig string) (*rest.Config, error)

func GetFileData

func GetFileData(filePath string) ([]byte, error)

func GetFilesData

func GetFilesData(directory string) (map[string][]byte, error)

func GetFilesInLinkDirectory

func GetFilesInLinkDirectory(linkPath string) (*string, []string, error)

func IPtr added in v1.4.0

func IPtr(i int64) *int64

func IsElementExists

func IsElementExists(list []string, element string) bool

func IsElementMatch

func IsElementMatch(element string, elements []string) bool

func ListContains

func ListContains(subList, list []string) bool

func RemoveBraces added in v1.5.0

func RemoveBraces(input string) string

func SPtr added in v1.1.2

func SPtr(str string) *string

func SanitizeString added in v1.5.0

func SanitizeString(input string) string

func StringToInt64 added in v1.5.0

func StringToInt64(input string) int64

func StringToMap

func StringToMap(str string) map[string]string

func TrimString added in v1.5.0

func TrimString(s string, maxLength int) string

func ValidateHTTPFormat added in v1.3.0

func ValidateHTTPFormat(input string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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