utils

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPrefixToList

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

func BPtr

func BPtr(b bool) *bool

func ConvertYAMLListToJSONList

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

func ConvertYAMLToJSON

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

func ExtractStringsBetweenTags

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

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

func RemoveBraces(input string) string

func SPtr

func SPtr(str string) *string

func SanitizeString

func SanitizeString(input string) string

func StringToInt64

func StringToInt64(input string) int64

func StringToMap

func StringToMap(str string) map[string]string

func TrimString

func TrimString(s string, maxLength int) string

func ValidateHTTPFormat

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