cli

package
v0.0.0-...-73a5168 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: GPL-3.0 Imports: 30 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")

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