commands

package
v6.22.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	APIVersion() string
	AccessToken() string
	BinaryName() string
	ClientID() string
	ClientSecret() string
	ColorEnabled() configv3.ColorSetting
	CurrentUser() (configv3.User, error)
	Experimental() bool
	Locale() string
	Plugins() map[string]configv3.Plugin
	RefreshToken() string
	SetAccessToken(token string)
	SetTargetInformation(api string, apiVersion string, auth string, loggregator string, doppler string, uaa string, routing string, skipSSLValidation bool)
	SetTokenInformation(accessToken string, refreshToken string, sshOAuthClient string)
	SkipSSLValidation() bool
	Target() string
	TargetedOrganization() configv3.Organization
	TargetedSpace() configv3.Space
}

Config a way of getting basic CF configuration

type ExtendedCommander

type ExtendedCommander interface {
	flags.Commander
	Setup(Config, UI) error
}

type UI

type UI interface {
	DisplayHeaderFlavorText(text string, keys ...map[string]interface{})
	DisplayHelpHeader(text string)
	DisplayNewline()
	DisplayOK()
	DisplayPair(attribute string, formattedString string, keys ...map[string]interface{})
	DisplayBoolPrompt(prompt string, defaultResponse bool) (bool, error)
	DisplayTable(prefix string, table [][]string)
	DisplayText(template string, data ...map[string]interface{})
	DisplayTextWithKeyTranslations(template string, keysToTranslate []string, data ...map[string]interface{})
	DisplayWarning(formattedString string, keys ...map[string]interface{})
	DisplayWarnings(warnings []string)
}

UI is the interface to STDOUT

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter
v2
v2fakes
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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