Documentation ¶
Index ¶
- func Convert(inputFormat string, outputFormat string, input string) (string, error)
- func DownloadFile(filepath string, url string) error
- func EncodeString(value string, algorithm string, salt string) string
- func GetHostFromUrl(resourceUrl string) (string, error)
- func GetJsonPath(source string, sourceFormat string, jsonPath string) (string, error)
- func GetParameterFromTerminalAsSecret(text1 string, text2 string, errorText string) (string, error)
- func HexAsBigInt(bytes []byte) string
- func PrettyJson(input string) string
- func RandomEncodedString(length int) string
- func RandomString(n int) string
- func ReadFilesIndirectory(root string) (map[string]string, error)
- func Timestamp() string
- func UUID() string
- func UseSourceUrl(resourceUrl string) (string, error)
- func ValidateName(name string) bool
- func VerifyCertForHost(resourceUrl string, cert string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
DownloadFile will download a url to a local file. It's efficient because it will write as it downloads and not load the whole file into memory.
func GetHostFromUrl ¶
func GetJsonPath ¶
func HexAsBigInt ¶
This is the hex conversion algorithm implemented in vamp
func PrettyJson ¶
func RandomEncodedString ¶
func RandomString ¶
func UseSourceUrl ¶
This function allows using a filepath or http/s url to get resource from
func ValidateName ¶
func VerifyCertForHost ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.