Documentation ¶
Index ¶
- func NewApp(o *globals.GlobalOpts) *cli.App
- func NewRunCmd(o *globals.GlobalOpts) *cli.Command
- func NewUseCmd(o *globals.GlobalOpts) *cli.Command
- func NewValidationError(format string, a ...interface{}) error
- func NewVersionsCmd(o *globals.GlobalOpts) *cli.Command
- func NewWhichCmd(o *globals.GlobalOpts) *cli.Command
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApp ¶
func NewApp(o *globals.GlobalOpts) *cli.App
NewApp create a new root command. The globals.GlobalOpts parameter allows tests to scope overrides, which avoids having to define a flag for everything needed in tests.
func NewRunCmd ¶
func NewRunCmd(o *globals.GlobalOpts) *cli.Command
NewRunCmd create a command responsible for starting an Envoy process
func NewUseCmd ¶
func NewUseCmd(o *globals.GlobalOpts) *cli.Command
NewUseCmd create a command responsible for downloading and extracting Envoy
func NewValidationError ¶
NewValidationError generates an error with a given format string. As noted on ValidationError, this is used by main.go to tell the difference between a validation failure vs a runtime error. We don't want to clutter output with help suggestions if Envoy failed due to a runtime concern.
func NewVersionsCmd ¶
func NewVersionsCmd(o *globals.GlobalOpts) *cli.Command
NewVersionsCmd returns command that lists available Envoy versions for the current platform.
func NewWhichCmd ¶ added in v0.7.0
func NewWhichCmd(o *globals.GlobalOpts) *cli.Command
NewWhichCmd create a command responsible for downloading printing the path to the Envoy binary
Types ¶
type ValidationError ¶
type ValidationError struct {
// contains filtered or unexported fields
}
ValidationError is a marker of a validation error vs an execution one.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.