shared

package
v6.49.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 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 NewClient

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

NewClient 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 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