route

package
v0.0.4-rc6 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAction

func FormatAction(obj interface{}) (string, error)

func FormatOpts

func FormatOpts(obj interface{}) (string, error)

func FormatTarget

func FormatTarget(obj interface{}) (string, error)

func FormatURL

func FormatURL() func(obj interface{}) (string, error)

func ParseDestinations

func ParseDestinations(targets []string) ([]client.WeightedDestination, error)

func Route

func Route(app *cli.App) cli.Command

Types

type Add

type Add struct {
	Cookie          map[string]string `desc:"Match HTTP cookie (format key=value, value optional)"`
	Header          map[string]string `desc:"Match HTTP header (format key=value, value optional)"`
	FaultPercentage int               `desc:"Percentage of matching requests to fault"`
	FaultDelay      string            `desc:"Inject a delay for fault (ms|s|m|h)" default:"0s"`
	FaultHTTPCode   int               `desc:"HTTP code to send for fault injection"`
	FaultHTTP2Error string            `desc:"HTTP2 error to send for fault injection"`
	FaultGRPCError  string            `desc:"gRPC error to send for fault injection"`
	AddHeader       []string          `desc:"Add HTTP header to request (format key=value)"`
	RetryAttempts   int               `desc:"How many times to retry"`
	RetryTimeout    string            `desc:"Timeout per retry (ms|s|m|h)" default:"0s"`
	Timeout         string            `desc:"Timeout for all requests (ms|s|m|h)" default:"0s"`
	Method          string            `desc:"Match HTTP method"`
	From            string            `desc:"Match traffic from specific service"`
}

type Append added in v0.1.0

type Append struct {
	Add
}

func (*Append) Run added in v0.1.0

func (a *Append) Run(ctx *clicontext.CLIContext) error

type Data

type Data struct {
	ID        string
	Stack     *client.Stack
	RouteSet  client.RouteSet
	RouteSpec client.RouteSpec
	Match     *client.Match
	Domain    string
}

type Insert added in v0.1.0

type Insert struct {
	Add
}

func (*Insert) Run added in v0.1.0

func (i *Insert) Run(ctx *clicontext.CLIContext) error

type Ls

type Ls struct {
	L_Label map[string]string `desc:"Set meta data on a container"`
}

func (*Ls) Customize

func (l *Ls) Customize(cmd *cli.Command)

func (*Ls) Run

func (l *Ls) Run(ctx *clicontext.CLIContext) error

type RouteAction

type RouteAction interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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