shared

package
v6.29.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 25, 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 HandleError

func HandleError(err error) error

func NewClient

func NewClient(config command.Config, ui command.UI, skipSSLValidation bool) *plugin.Client

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

Types

type Config

type Config interface {
	DialTimeout() time.Duration
	Verbose() (bool, []string)
}

type PluginInstallationCancelled

type PluginInstallationCancelled struct {
}

PluginInstallationCancelled is used to ignore the scenario when the user responds with 'no' when prompted to install plugin and exit 0.

func (PluginInstallationCancelled) Error

type ProgressBarProxyReader

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

ProgressBarProxyReader wraps a progress bar in a ProxyReader interface.

func NewProgressBarProxyReader

func NewProgressBarProxyReader(writer io.Writer) *ProgressBarProxyReader

func (ProgressBarProxyReader) Finish

func (p ProgressBarProxyReader) Finish()

func (*ProgressBarProxyReader) Start

func (p *ProgressBarProxyReader) Start(size int64)

func (ProgressBarProxyReader) Wrap

func (p ProgressBarProxyReader) Wrap(reader io.Reader) io.ReadCloser

type RPCService

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

func NewRPCService

func NewRPCService(config Config, ui UI) (*RPCService, error)

func (RPCService) GetMetadata

func (r RPCService) GetMetadata(path string) (configv3.Plugin, error)

func (RPCService) Run

func (r RPCService) Run(path string, command string) error

type UI

type UI interface {
	Writer() io.Writer
}

Jump to

Keyboard shortcuts

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