Documentation ¶
Index ¶
- Constants
- func AddConfigFlags(cmd *cobra.Command, serviceAddress string)
- func CaptureOutput(capture io.Writer)
- func GetConfigCommand() *cobra.Command
- func GetConnection(cmd *cobra.Command) (*grpc.ClientConn, error)
- func GetOutput() io.Writer
- func InitConfig(configNameInit string)
- func NewContextWithAuthHeaderFromFlag(ctx context.Context, authHeaderFlag *pflag.Flag) context.Context
- func Output(msg string, args ...interface{})
Constants ¶
View Source
const ( // AuthHeaderFlag - the flag name AuthHeaderFlag = "auth-header" // Authorization the header keyword Authorization = "authorization" )
View Source
const ( // ExitSuccess means nominal status ExitSuccess = iota // ExitError means general error ExitError // ExitBadConnection means failed connection to remote service ExitBadConnection // ExitBadArgs means invalid argument values were given ExitBadArgs = 128 )
Variables ¶
This section is empty.
Functions ¶
func AddConfigFlags ¶
AddConfigFlags :
func CaptureOutput ¶
CaptureOutput allows a test harness to redirect output to an alternate source for testing
func GetConnection ¶
func GetConnection(cmd *cobra.Command) (*grpc.ClientConn, error)
GetConnection returns a gRPC client connection to the onos service
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.