shared

package
v6.26.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2017 License: Apache-2.0 Imports: 16 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 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 (e 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 (e 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 (e JobTimeoutError) Error() string

func (JobTimeoutError) Translate

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

type NoOrganizationTargetedError

type NoOrganizationTargetedError struct{}

func (NoOrganizationTargetedError) Error

func (NoOrganizationTargetedError) Translate

func (e NoOrganizationTargetedError) 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 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 (e 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 (e 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 (e 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 (e 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 (e UnsuccessfulStartError) Error() string

func (UnsuccessfulStartError) Translate

func (e UnsuccessfulStartError) 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