Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidRouteActionError  = errors.New("cannot use shadowing plugin on non-Route_Route route actions")
	UnspecifiedUpstreamError = errors.New("invalid plugin spec: must specify an upstream ref")
	InvalidNumeratorError    = func(num float32) error {
		return errors.Errorf("shadow percentage must be between 0 and 100, received %v", num)
	}
)

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
}

func NewPlugin

func NewPlugin() *Plugin

func (*Plugin) Init

func (p *Plugin) Init(params plugins.InitParams) error

func (*Plugin) ProcessRoute

func (p *Plugin) ProcessRoute(params plugins.RouteParams, in *v1.Route, out *envoyroute.Route) error

Source Files