shared

package
v6.32.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 21 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 GetApplicationChanges

func GetApplicationChanges(appConfig pushaction.ApplicationConfig) []ui.Change

func HandleError

func HandleError(err error) error

func MegabytesToString

func MegabytesToString(value uint64) string

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, appState <-chan v2action.ApplicationStateChange, apiWarnings <-chan string, apiErrs <-chan error) error

func SelectNonBlankValue

func SelectNonBlankValue(str ...string) string

Types

type DebugPrinter

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

func (DebugPrinter) Print

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

type RequestLoggerOutput

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

Jump to

Keyboard shortcuts

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