application

package
v5.6.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BBLNotFound error = errors.New("A bbl environment could not be found, please create a new environment before running this command again.")
View Source
var DirectorNotReachable error = errors.New("We couldn't communicate to the director in your state file. You may need to run `bbl up`.")

Functions

This section is empty.

Types

type App

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

func New

func New(commands CommandSet, configuration Configuration, usage usage) App

func (App) Run

func (a App) Run() error

type CommandSet

type CommandSet map[string]commands.Command

type Configuration

type Configuration struct {
	Global          GlobalConfiguration
	Command         string
	SubcommandFlags StringSlice
	State           storage.State
	ShowCommandHelp bool
}

type EnvironmentValidator

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

func NewEnvironmentValidator

func NewEnvironmentValidator(boshClientProvider boshClientProvider) EnvironmentValidator

func (EnvironmentValidator) Validate

func (e EnvironmentValidator) Validate(state storage.State) error

type GlobalConfiguration

type GlobalConfiguration struct {
	StateDir string
	Debug    bool
}

type Logger

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

func NewLogger

func NewLogger(writer io.Writer) *Logger

func (*Logger) Dot

func (l *Logger) Dot()

func (*Logger) Printf

func (l *Logger) Printf(message string, a ...interface{})

func (*Logger) Println

func (l *Logger) Println(message string)

func (*Logger) Prompt

func (l *Logger) Prompt(message string)

func (*Logger) Step

func (l *Logger) Step(message string, a ...interface{})

type StateValidator added in v1.2.1

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

func NewStateValidator added in v1.2.1

func NewStateValidator(stateDir string) StateValidator

func (StateValidator) Validate added in v1.2.1

func (s StateValidator) Validate() error

type StringSlice

type StringSlice []string

func (StringSlice) ContainsAny

func (s StringSlice) ContainsAny(targets ...string) bool

Jump to

Keyboard shortcuts

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