shared

package
v6.28.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package shared should not be imported by external consumers. It was not designed for external use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayAppSummary

func DisplayAppSummary(ui command.UI, appSummary v2action.ApplicationSummary, displayStartCommand bool)

DisplayAppSummary displays the application summary to the UI, and optionally the command to start the app.

func HandleError

func HandleError(err error) error

func NewClients

func NewClients(config command.Config, ui command.UI, targetCF bool) (*ccv2.Client, *uaa.Client, error)

NewClients creates a new V2 Cloud Controller client and UAA client using the passed in config.

func NewNOAAClient

func NewNOAAClient(apiURL string, config command.Config, uaaClient *uaa.Client, ui command.UI) *consumer.Consumer

NewNOAAClient returns back a configured NOAA Client.

func PollStart

func PollStart(ui command.UI, config command.Config, messages <-chan *v2action.LogMessage, logErrs <-chan error, appStarting <-chan bool, apiWarnings <-chan string, apiErrs <-chan error) error

Types

type DebugPrinter

type DebugPrinter struct {
	// contains filtered or unexported fields
}

func (DebugPrinter) Print

func (p DebugPrinter) Print(title string, dump string)

type EmptyDirectoryError

type EmptyDirectoryError struct {
	Path string
}

func (EmptyDirectoryError) Error

func (e EmptyDirectoryError) Error() string

func (EmptyDirectoryError) Translate

func (e EmptyDirectoryError) Translate(translate func(string, ...interface{}) string) string

type FileChangedError

type FileChangedError struct {
	Filename string
}

func (FileChangedError) Error

func (e FileChangedError) Error() string

func (FileChangedError) Translate

func (e FileChangedError) Translate(translate func(string, ...interface{}) string) string

type HTTPHealthCheckInvalidError

type HTTPHealthCheckInvalidError struct {
}

func (HTTPHealthCheckInvalidError) Error

func (HTTPHealthCheckInvalidError) Translate

func (e HTTPHealthCheckInvalidError) Translate(translate func(string, ...interface{}) string) string

type InvalidRefreshTokenError

type InvalidRefreshTokenError struct {
}

func (InvalidRefreshTokenError) Error

func (_ InvalidRefreshTokenError) Error() string

func (InvalidRefreshTokenError) Translate

func (e InvalidRefreshTokenError) Translate(translate func(string, ...interface{}) string) string

type JobFailedError

type JobFailedError struct {
	JobGUID string
	Message string
}

func (JobFailedError) Error

func (_ JobFailedError) Error() string

func (JobFailedError) Translate

func (e JobFailedError) Translate(translate func(string, ...interface{}) string) string

type JobTimeoutError

type JobTimeoutError struct {
	JobGUID string
	Timeout time.Duration
}

func (JobTimeoutError) Error

func (_ JobTimeoutError) Error() string

func (JobTimeoutError) Translate

func (e JobTimeoutError) Translate(translate func(string, ...interface{}) string) string

type NoDomainsFoundError

type NoDomainsFoundError struct {
}

func (NoDomainsFoundError) Error

func (_ NoDomainsFoundError) Error() string

func (NoDomainsFoundError) Translate

func (e NoDomainsFoundError) Translate(translate func(string, ...interface{}) string) string

type OrganizationNotFoundError

type OrganizationNotFoundError struct {
	Name string
}

func (OrganizationNotFoundError) Error

func (OrganizationNotFoundError) Translate

func (e OrganizationNotFoundError) Translate(translate func(string, ...interface{}) string) string

type RequestLoggerOutput

type RequestLoggerOutput interface {
	Start() error
	Stop() error
	DisplayType(name string, requestDate time.Time) error
	DisplayDump(dump string) error
}

type RouteInDifferentSpaceError

type RouteInDifferentSpaceError struct {
	Route string
}

func (RouteInDifferentSpaceError) Error

func (RouteInDifferentSpaceError) Translate

func (e RouteInDifferentSpaceError) Translate(translate func(string, ...interface{}) string) string

type SecurityGroupNotFoundError

type SecurityGroupNotFoundError struct {
	Name string
}

func (SecurityGroupNotFoundError) Error

func (SecurityGroupNotFoundError) Translate

func (e SecurityGroupNotFoundError) Translate(translate func(string, ...interface{}) string) string

type SpaceNotFoundError

type SpaceNotFoundError struct {
	Name string
}

func (SpaceNotFoundError) Error

func (_ SpaceNotFoundError) Error() string

func (SpaceNotFoundError) Translate

func (e SpaceNotFoundError) Translate(translate func(string, ...interface{}) string) string

type StagingFailedError

type StagingFailedError struct {
	Message string
}

func (StagingFailedError) Error

func (_ StagingFailedError) Error() string

func (StagingFailedError) Translate

func (e StagingFailedError) Translate(translate func(string, ...interface{}) string) string

type StagingFailedNoAppDetectedError

type StagingFailedNoAppDetectedError struct {
	Message    string
	BinaryName string
}

func (StagingFailedNoAppDetectedError) Error

func (StagingFailedNoAppDetectedError) Translate

func (e StagingFailedNoAppDetectedError) Translate(translate func(string, ...interface{}) string) string

type StagingTimeoutError

type StagingTimeoutError struct {
	AppName string
	Timeout time.Duration
}

func (StagingTimeoutError) Error

func (_ StagingTimeoutError) Error() string

func (StagingTimeoutError) Translate

func (e StagingTimeoutError) Translate(translate func(string, ...interface{}) string) string

type StartupTimeoutError

type StartupTimeoutError struct {
	AppName    string
	BinaryName string
}

func (StartupTimeoutError) Error

func (_ StartupTimeoutError) Error() string

func (StartupTimeoutError) Translate

func (e StartupTimeoutError) Translate(translate func(string, ...interface{}) string) string

type UnsuccessfulStartError

type UnsuccessfulStartError struct {
	AppName    string
	BinaryName string
}

func (UnsuccessfulStartError) Error

func (_ UnsuccessfulStartError) Error() string

func (UnsuccessfulStartError) Translate

func (e UnsuccessfulStartError) Translate(translate func(string, ...interface{}) string) string

type UploadFailedError

type UploadFailedError struct {
	Err error
}

func (UploadFailedError) Error

func (_ UploadFailedError) Error() string

func (UploadFailedError) Translate

func (e UploadFailedError) Translate(translate func(string, ...interface{}) string) string

Jump to

Keyboard shortcuts

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