cmd

package
v3.0.1-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: MIT Imports: 31 Imported by: 0

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",
	Usage:     "create deployments and services",
	UsageText: `chkit create deployment|service`,
	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

func Run

func Run(args []string) error

Run -- root action

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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