Documentation ¶
Index ¶
- func APIPostLogin(endpoint, username, password, proxy, cookie string) ([]byte, error)
- func BytesToString(b []byte) string
- func GetActionLabel(action string) string
- func GetDirectFolder(path string) string
- func GetExtension(path string) string
- func GetOutputDebug(code, debug string) string
- func GetPathFolder(path string) string
- func GetPathSeparator() string
- func GetPathWithoutExtension(path string) string
- func GetStatusColorFromOutput(code string) (string, string)
- func JSONAvoidEscapeText(data []byte) []byte
- func ReplacePathSeparatorByOS(path string) string
- func RestCall(jsonString []byte, endpoint, method, token, proxy, cookie string, ...) ([]byte, int, error)
- func RightPad(s, padStr string, length int) string
- func SoapCall(request, endpoint, proxy string) (string, error)
- func Unzip(src, destinationFolder string) ([]string, error)
- func ValidateFolder(folder string) error
- type Rest
- type Soap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIPostLogin ¶
APIPostLogin send a post to get the auth token
func BytesToString ¶
BytesToString convert an array of bytes to a string
func GetActionLabel ¶
GetActionLabel returns the properly formatted string according to the constant action
func GetDirectFolder ¶
GetDirectFolder returns the file closest folder
func GetOutputDebug ¶
GetOutputDebug formats the string from the debug when it has errors or warnings
func GetPathFolder ¶
GetPathFolder returns only the folders without filename and extension
func GetPathSeparator ¶
func GetPathSeparator() string
GetPathSeparator returns the folder separator by OS
func GetPathWithoutExtension ¶
GetPathWithoutExtension returns the folders and filename without the file extension
func GetStatusColorFromOutput ¶
GetStatusColorFromOutput returns the status and color from the output struct
func JSONAvoidEscapeText ¶
JSONAvoidEscapeText avoid escaping caracters like <, > and & from json byte array
func ReplacePathSeparatorByOS ¶
ReplacePathSeparatorByOS returns path with right folder separator by OS
func RestCall ¶
func RestCall(jsonString []byte, endpoint, method, token, proxy, cookie string, params map[string]string) ([]byte, int, error)
RestCall executes a rest call to the defined environment executing a json
func ValidateFolder ¶
ValidateFolder creates the folder structure if it do not exists