Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FlagConfigFile -- context config data key FlagConfigFile = "config" // FlagAPIaddr -- API address context key FlagAPIaddr = "apiaddr" )
View Source
const ( // ErrUnableToLoadConfig -- unable to load config ErrUnableToLoadConfig chkitErrors.Err = "unable to load config" // ErrInvalidUserInfo -- invalid user info" ErrInvalidUserInfo chkitErrors.Err = "invalid user info" // ErrInvalidAPIurl -- invalid API url ErrInvalidAPIurl chkitErrors.Err = "invalid API url" // ErrUnableToLoadTokens -- unable to load tokens ErrUnableToLoadTokens chkitErrors.Err = "unable to load tokens" // ErrUnableToSaveTokens -- unable to save tokens ErrUnableToSaveTokens chkitErrors.Err = "unable to save tokens" )
View Source
const DEBUG = false
DEBUG -- true if dev version
View Source
const (
ErrUnableToReadLogs chkitErrors.Err = "unable to read logs"
)
View Source
const MOCK = false
MOCK -- true if dev with mock api version
Variables ¶
View Source
var ( // ErrUnableToReadPassword -- unable to read password ErrUnableToReadPassword chkitErrors.Err = "unable to read password" // ErrUnableToReadUsername -- unable to read username ErrUnableToReadUsername chkitErrors.Err = "unable to read username" // ErrInvalidPassword -- invalid password ErrInvalidPassword chkitErrors.Err = "invalid password" // ErrInvalidUsername -- invalid username ErrInvalidUsername chkitErrors.Err = "invalid username" )
View Source
var API_ADDR = ""
API_ADDR -- gateway API addr
View Source
var CommandCreate = &cli.Command{ Name: "create", Before: func(ctx *cli.Context) error { logrus.Debugf("start create action") return setupAll(ctx) }, Action: func(ctx *cli.Context) error { return cli.ShowSubcommandHelp(ctx) }, Subcommands: []*cli.Command{ cliserv.Create, clideployment.Create, }, }
View Source
var ( // ErrFatalError -- unrecoverable fatal error ErrFatalError chkitErrors.Err = "fatal error" )
View Source
var (
// Version -- chkit version
Version = "3.0.0-alpha"
)
Functions ¶
func Fingerprint ¶
func Fingerprint() string
Fingerprint -- generates user computer fingerprint. Panics on error
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.