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: 14 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 HandleError

func HandleError(err error) error

func NewClients

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

NewClients creates a new V3 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 PollStage

func PollStage(buildStream <-chan v3action.Build, warningsStream <-chan v3action.Warnings, errStream <-chan error, logStream <-chan *v3action.LogMessage, logErrStream <-chan error, ui command.UI) (error, string)

Types

type AssignDropletError

type AssignDropletError struct {
}

AssignDropletError is returned when assigning the current droplet of an app fails

func (AssignDropletError) Error

func (_ AssignDropletError) Error() string

func (AssignDropletError) Translate

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

type DebugPrinter

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

func (DebugPrinter) Print

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

type IsolationSegmentNotFoundError

type IsolationSegmentNotFoundError struct {
	Name string
}

func (IsolationSegmentNotFoundError) Error

func (IsolationSegmentNotFoundError) Translate

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

type RunTaskError struct {
	Message string
}

func (RunTaskError) Error

func (_ RunTaskError) Error() string

func (RunTaskError) Translate

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

type StartupTimeoutError

type StartupTimeoutError struct {
	AppName string
}

StartupTimeoutError is returned when startup timeout is reached waiting for an application to start.

func (StartupTimeoutError) Error

func (e StartupTimeoutError) Error() string

func (StartupTimeoutError) Translate

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

type V3APIDoesNotExistError

type V3APIDoesNotExistError struct {
	Message string
}

func (V3APIDoesNotExistError) Error

func (_ V3APIDoesNotExistError) Error() string

func (V3APIDoesNotExistError) Translate

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