util

package
v0.0.63 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(inputFormat string, outputFormat string, input string) (string, error)

func DownloadFile

func DownloadFile(filepath string, url string) error

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 GetJsonPath

func GetJsonPath(source string, sourceFormat string, jsonPath string) (string, error)

func GetParameterFromTerminalAsSecret added in v0.0.22

func GetParameterFromTerminalAsSecret(text1 string, text2 string, errorText string) (string, error)

func Merge added in v0.0.28

func Merge(destination string, source string, serializationType string) (string, error)

func RandomString added in v0.0.22

func RandomString(n int) string

func ReadFileFromUrl added in v0.0.22

func ReadFileFromUrl(resourceUrl string) ([]byte, error)

func UseSourceUrl

func UseSourceUrl(resourceUrl string) (string, error)

This function allows using a filepath or http/s url to get resource from

func VerifyCertForHost

func VerifyCertForHost(resourceUrl string, cert string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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