internal

package
v5.2.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Verbose display return from Tat Engine
	Verbose bool

	// Debug display Request and response from Tat Engine
	Debug 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

	// ShowStackTrace prints stacktrace on tatcli panic
	ShowStackTrace bool

	// BasicAuth enables basic auth support
	BasicAuth bool

	// URL of tat engine
	URL string

	// TatwebuiURL of tat Web UI, used only by tatcli ui and facultative
	TatwebuiURL string

	// Username of tat user
	Username string

	// Password of tat user
	Password string
)

Functions

func Check

func Check(e error)

Check checks error, if != nil, throw panic

func Client

func Client() *tat.Client

Client return a new Tat Client

func Exit

func Exit(format string, args ...interface{})

Exit func display an error message on stderr and exit 1

func GetSkipLimit

func GetSkipLimit(args []string) (int, int)

GetSkipLimit gets skip and limit in args array default skip to 0 and limit to 10

func Print

func Print(v interface{})

Print prints json return

func ReadConfig

func ReadConfig()

ReadConfig reads config in .tatcli/config per default

Types

This section is empty.

Jump to

Keyboard shortcuts

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