format

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-1.1, Apache-2.0, BSD-3-Clause, + 1 more Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoServiceKeyMessage = "Please create a service key for %s.\n" +
		"To create a key enter:\n\n" +
		"cf create-service-key %s <your_key_name>\n\n" +
		"use --help or -h for help"
	GenericErrorMessage       = "Cannot retrieve credentials. Error: %s"
	InvalidServiceKeyResponse = "The cf service-key response is invalid."
	GeneralOptions            = "\t\t--user, -u <username> or set 'GEODE_USERNAME' environment variable to set the username\n" +
		"\t\t--password, -p <password> or set 'GEODE_PASSWORD' environment variable to set the password\n" +
		"\t\t--table, -t [<jqFilter>] to get tabular output"
)

Collection of common strings used by the application

Variables

This section is empty.

Functions

func Fill

func Fill(columnSize int, value string, filler string) (response string)

Fill ensures that a column is filled with desired filler characters to desired size

func GetString

func GetString(value interface{}) string

func New

func New(jsonFilter JSONFilter) (*formatter, error)

NewFormatter constructs the implementation of the JSONFilter interface

func Tabular

func Tabular(jsonString string) (string, error)

Tabular provides tabular string output for a given JSON string

Types

type JSONFilter

type JSONFilter func(jsonString string, expr string) ([]json.RawMessage, error)

JSONFilter function type

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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