bosh

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	UploadingReleases = "uploading-releases"
	Deploying         = "deploying"
	RunningErrand     = "running-errand"
)

Variables

View Source
var VMProgressInterval = 1 * time.Second

Functions

This section is empty.

Types

type Bosh

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

func New

func New(config Config) (*Bosh, error)

func NewWithDirector

func NewWithDirector(dir boshdir.Director) *Bosh

func (*Bosh) GetVMProgress

func (b *Bosh) GetVMProgress(start time.Time, deploymentName string, isErrand bool) VMProgress

func (*Bosh) VMProgress

func (b *Bosh) VMProgress(deploymentName string) chan VMProgress

type Config

type Config struct {
	AdminUsername   string
	AdminPassword   string
	CACertificate   string
	DirectorAddress string

	GatewayHost       string
	GatewayPrivateKey string
	GatewayUsername   string
}

type FileReporter

type FileReporter struct{}

func (*FileReporter) TrackDownload

func (f *FileReporter) TrackDownload(int64, io.Writer) io.Writer

func (*FileReporter) TrackUpload

func (f *FileReporter) TrackUpload(_ int64, r io.ReadCloser) ui.ReadSeekCloser

type Logger

type Logger struct{}

func (*Logger) Debug

func (l *Logger) Debug(tag, msg string, args ...interface{})

func (*Logger) DebugWithDetails

func (l *Logger) DebugWithDetails(tag, msg string, args ...interface{})

func (*Logger) Error

func (l *Logger) Error(tag, msg string, args ...interface{})

func (*Logger) ErrorWithDetails

func (l *Logger) ErrorWithDetails(tag, msg string, args ...interface{})

func (*Logger) Flush

func (l *Logger) Flush() error

func (*Logger) FlushTimeout

func (l *Logger) FlushTimeout(time.Duration) error

func (*Logger) HandlePanic

func (l *Logger) HandlePanic(tag string)

func (*Logger) Info

func (l *Logger) Info(tag, msg string, args ...interface{})

func (*Logger) ToggleForcedDebug

func (l *Logger) ToggleForcedDebug()

func (*Logger) Warn

func (l *Logger) Warn(tag, msg string, args ...interface{})

type ReadCloserProxy

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

func (*ReadCloserProxy) Close

func (p *ReadCloserProxy) Close() error

func (*ReadCloserProxy) Read

func (p *ReadCloserProxy) Read(bs []byte) (int, error)

func (ReadCloserProxy) Seek

func (p ReadCloserProxy) Seek(offset int64, whence int) (int64, error)

type TaskReporter

type TaskReporter struct{}

func (*TaskReporter) TaskFinished

func (t *TaskReporter) TaskFinished(int, string)

func (*TaskReporter) TaskOutputChunk

func (t *TaskReporter) TaskOutputChunk(int, []byte)

func (*TaskReporter) TaskStarted

func (t *TaskReporter) TaskStarted(int)

type VMProgress

type VMProgress struct {
	State    string
	Releases int
	Total    int
	Done     int
	Duration time.Duration
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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