Documentation ¶
Index ¶
- Variables
- func Check(e error)
- func DeleteWant(path string, jsonStr []byte)
- func GetSkipLimit(args []string) (string, string)
- func GetTLSConfig() *tls.Config
- func GetWantReturn(path string) string
- func IsHTTPS() bool
- func PostWant(path string, jsonStr []byte) string
- func PutWant(path string, jsonStr []byte)
- func PutWantReturn(path string) string
- func ReadConfig()
- func ReqWant(method string, wantCode int, path string, jsonStr []byte) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Verbose conditions the quantity of output of api requests Verbose bool // ConfigFile is $HOME/.tatcli/config.json per default // contains user, password and url of tat ConfigFile string // SSLInsecureSkipVerify Skip certificate check with SSL connection SSLInsecureSkipVerify bool // Pretty prints json return in pretty format Pretty bool // URL of tat engine URL string // Username of tat user Username string // Password of tat user Password string )
Functions ¶
func DeleteWant ¶
DeleteWant DELETE on path and check is http return code is 200
func GetSkipLimit ¶
GetSkipLimit gets skip and limit in args array default skip to 0 and limit to 10
func GetTLSConfig ¶
GetTLSConfig returns tls.config with flag InsecureSkipVerify
func GetWantReturn ¶
GetWantReturn GET on path and check is http return code is 200 and returns results
func PutWantReturn ¶
PutWantReturn PUT on path, check is http return code is 200 and returns results
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.