Documentation ¶
Index ¶
- Variables
- type App
- type CommandFinder
- type CommandFinderResult
- type CommandLineConfiguration
- type CommandLineParser
- type CommandSet
- type Configuration
- type ConfigurationParser
- type CredentialValidator
- type EnvironmentValidator
- type GlobalConfiguration
- type Logger
- type StateValidator
- type StringSlice
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")
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func New ¶
func New(commands CommandSet, configuration Configuration, stateStore stateStore, usage usage) App
type CommandFinder ¶
type CommandFinder interface {
FindCommand([]string) CommandFinderResult
}
func NewCommandFinder ¶
func NewCommandFinder() CommandFinder
type CommandFinderResult ¶
type CommandLineParser ¶
type CommandLineParser struct {
// contains filtered or unexported fields
}
func NewCommandLineParser ¶
func NewCommandLineParser(usage func(), commandSet CommandSet, envGetter envGetter) CommandLineParser
func (CommandLineParser) Parse ¶
func (p CommandLineParser) Parse(arguments []string) (CommandLineConfiguration, error)
type CommandSet ¶
type Configuration ¶
type Configuration struct { Global GlobalConfiguration Command string SubcommandFlags StringSlice State storage.State }
type ConfigurationParser ¶
type ConfigurationParser struct {
// contains filtered or unexported fields
}
func NewConfigurationParser ¶
func NewConfigurationParser(commandLineParser commandLineParser) ConfigurationParser
func (ConfigurationParser) Parse ¶
func (p ConfigurationParser) Parse(arguments []string) (Configuration, error)
type CredentialValidator ¶
type CredentialValidator struct {
// contains filtered or unexported fields
}
func NewCredentialValidator ¶
func NewCredentialValidator(configuration Configuration, gcpCredentialValidator credentialValidator, awsCredentialValidator credentialValidator) CredentialValidator
func (CredentialValidator) Validate ¶
func (c CredentialValidator) Validate() error
type EnvironmentValidator ¶
type EnvironmentValidator struct {
// contains filtered or unexported fields
}
func NewEnvironmentValidator ¶
func NewEnvironmentValidator(awsEnvironmentValidator environmentValidator, gcpEnvironmentValidator environmentValidator) EnvironmentValidator
type GlobalConfiguration ¶
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.