cli

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: GPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReturnCodeSuccess = iota
	ReturnCodeCliError
	ReturnCodeServerCommunicationError
	ReturnCodeResponseFalseError
	ReturnCodeTimeout
	ReturnCodeParameterError
	ReturnCodeSysError
	ReturnCodeFormatError
	ReturnCodeServerFailureError
)

Variables

View Source
var (

	// AddressOptional means the command does not require a server address (version, start, ...)
	AddressOptional bool

	// Debug receives log messages in verbose mode
	Debug *golog.Logger
	// Log is the standard logger
	Log *golog.Logger
)

global variables

View Source
var ErrCallByValue = errors.New("you shall not call setFieldValue by value")
View Source
var ErrEmptyNodeIdent = errors.New("Empty node identifier")
View Source
var ErrInvalidAttribute = errors.New("Invalid attribute")
View Source
var QmstrVersion string

QmstrVersion holds the qmstr version The variable is initialiazed in the makefile

Functions

func Execute

func Execute()

Execute the control program and perform the command

func ParseNodeID

func ParseNodeID(nodeid string) (interface{}, error)

func SetupLogging

func SetupLogging(cmd *cobra.Command, args []string)

SetupLogging sets up logging

func TokenizeNodeID

func TokenizeNodeID(nodeid string) (string, []string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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