cmd

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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

func NewValidationError(format string, a ...interface{}) error

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.

Jump to

Keyboard shortcuts

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