ui

package
v0.0.95 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2016 License: Apache-2.0 Imports: 7 Imported by: 413

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SkipStageError

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

func NewSkipStageError

func NewSkipStageError(cause error, skipMessage string) SkipStageError

func (SkipStageError) Cause

func (e SkipStageError) Cause() error

func (SkipStageError) Error

func (e SkipStageError) Error() string

func (SkipStageError) SkipMessage

func (e SkipStageError) SkipMessage() string

type Stage

type Stage interface {
	Perform(name string, closure func() error) error
	PerformComplex(name string, closure func(Stage) error) error
}

func NewStage

func NewStage(ui UI, timeService clock.Clock, logger boshlog.Logger) Stage

type UI

type UI interface {
	ErrorLinef(pattern string, args ...interface{})
	PrintLinef(pattern string, args ...interface{})
	BeginLinef(pattern string, args ...interface{})
	EndLinef(pattern string, args ...interface{})
}

func NewConsoleUI

func NewConsoleUI(logger boshlog.Logger) UI

func NewIndentingUI

func NewIndentingUI(parent UI) UI

func NewWriterUI

func NewWriterUI(outWriter, errWriter io.Writer, logger boshlog.Logger) UI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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