common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultLanguage .
	DefaultLanguage = "en-US"
)

Global Configurations

View Source
const (
	// Empty .
	Empty = "empty"
)

Other

View Source
const (
	// Terminal .
	Terminal = "term"
)

App Metadata

Variables

View Source
var (
	// ErrControllerURLInvalid .
	ErrControllerURLInvalid = errors.New("Invalid Controller URL")
	// ErrControllerURLNotFound .
	ErrControllerURLNotFound = errors.New("Controller URL has not been set")
	// ErrGremlinURLInvalid .
	ErrGremlinURLInvalid = errors.New("Invalid Gremlin URL")
	// ErrGremlinURLNotFound .
	ErrGremlinURLNotFound = errors.New("Gremlin URL has not been set")
	// ErrUnsoportedFormat .
	ErrUnsoportedFormat = errors.New("Unsupported format")
	// ErrInvalidFormat .
	ErrInvalidFormat = errors.New("Invalid format")
	// ErrFileNotFound .
	ErrFileNotFound = errors.New("File does not exist")
	// ErrInvalidFile .
	ErrInvalidFile = errors.New("Invalid file")
	// ErrNotFound .
	ErrNotFound = errors.New("Not found")
	// ErrUnknowFlag .
	ErrUnknowFlag = errors.New("flag provided but not defined")
	// ErrInvalidFlagArg .
	ErrInvalidFlagArg = errors.New("flag needs an argument")
	// ErrIncorrectAmountRange .
	ErrIncorrectAmountRange = errors.New("--amount must be between 0 and 100")
	// ErrNotRulesFoundForService .
	ErrNotRulesFoundForService = errors.New("No rules found for service")
	// ErrInvalidStateForTrafficStart .
	ErrInvalidStateForTrafficStart = errors.New("Invalid state for start operation")
	// ErrInvalidStateForTrafficStep .
	ErrInvalidStateForTrafficStep = errors.New("Invalid state for step operation")
	// ErrTopologyOrScenariosNotFound .
	ErrTopologyOrScenariosNotFound = errors.New("You must specify -topology and -scenarios")
)

Functions

This section is empty.

Types

type Const

type Const string

Const .

const (
	// ControllerURL .
	ControllerURL Const = "CONTROLLER_URL"
	// ControllerToken .
	ControllerToken Const = "CONTROLLER_TOKEN"
	// GremlinURL .
	GremlinURL Const = "GREMLIN_URL"
	// GremlinToken .
	GremlinToken Const = "GREMLIN_TOKEN"

	// Debug .
	Debug Const = "DEBUG"
)

Used for EnvVars or Flags

func (Const) EnvVar

func (c Const) EnvVar() string

EnvVar returns the env var representation of a given Const. For 'CONSTANT_STRING' it will return 'A8_CONSTANT_STRING'

func (Const) Flag

func (c Const) Flag() string

Flag returns the flag representation of a given Const. For 'CONSTANT_STRING' it will return 'constant-string'

Jump to

Keyboard shortcuts

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