Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListRouters ¶ added in v0.3.0
func ListRouters(ctx *clicontext.CLIContext) error
func ParseDestinations ¶
func ParseDestinations(ctx *clicontext.CLIContext, targets []string) ([]riov1.WeightedDestination, error)
Types ¶
type Add ¶
type Add struct {
Header map[string]string `desc:"Match HTTP header (format key=value, value optional)"`
FaultPercentage int `desc:"Percentage of matching requests to fault"`
FaultDelayMilliSeconds int `desc:"Inject a delay for fault in milliseconds"`
FaultHTTPCode int `desc:"HTTP code to send for fault injection"`
AddHeader []string `desc:"Add HTTP header to request (format key=value)"`
SetHeader []string `desc:"Override HTTP header to request (format key=value)"`
RemoveHeader []string `desc:"Remove HTTP header to request (format key=value)"`
RetryAttempts int `desc:"How many times to retry"`
RetryTimeoutSeconds int `desc:"Timeout per retry in seconds"`
TimeoutSeconds int `desc:"Timeout in seconds for all requests"`
Method []string `desc:"Match HTTP method, support comma-separated values"`
RewriteHost string `desc:"Rewrite Hostname"`
RewritePath string `desc:"Rewrite Path"`
HTTPSRedirect bool `desc:"Redirect http to https endpoint" name:"https-redirect"`
}
type Create ¶ added in v0.1.1
func (*Create) Run ¶ added in v0.1.1
func (a *Create) Run(ctx *clicontext.CLIContext) error
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
Click to show internal directories.
Click to hide internal directories.