utils

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 8 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 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 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 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 SPtr added in v1.1.2

func SPtr(str string) *string

func StringToMap

func StringToMap(str string) map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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