util

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2017 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