util

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package util contains common utility functions.

Package util contains common utility functions.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTenantNotFound        = errors.New("tenant not found")
	ErrUnimplementedFeature  = errors.New("unimplemented feature")
	ErrInvalidPlatform       = errors.New("invalid platform")
	ErrUnimplementedPlatform = errors.New("unimplemented platform")
)

Functions

func JSONIndent

func JSONIndent(inStr string) string

JSONIndent indents the JSON input string, return input string if it fails.

func UsageError

func UsageError(cmd *cli.Command, format string, args ...interface{}) error

UsageError shows command line help for errors caused due to few or more arguments being passed to the commands or sub-commands of romana command line tools.

Types

This section is empty.

Jump to

Keyboard shortcuts

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