shadowing

package
v1.3.26 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouteShadowing

type RouteShadowing struct {
	// The upstream to which the shadowed traffic should be sent.
	Upstream *core.ResourceRef `protobuf:"bytes,1,opt,name=upstream,proto3" json:"upstream,omitempty"`
	// This should be a value between 0.0 and 100.0, with up to 6 significant digits.
	Percentage           float32  `protobuf:"fixed32,2,opt,name=percentage,proto3" json:"percentage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Specifies traffic shadowing configuration for the associated route. If set, Envoy will send a portion of the route's traffic to the shadowed upstream. This can be a useful way to preview a new service's behavior before putting the service in the critical path. Note that this plugin is only applicable to routes with upstream destinations (not redirect or direct response routes). See here for additional information on Envoy's shadowing capabilities: https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/route/route.proto#envoy-api-msg-route-routeaction-requestmirrorpolicy

func (*RouteShadowing) Descriptor

func (*RouteShadowing) Descriptor() ([]byte, []int)

func (*RouteShadowing) Equal

func (this *RouteShadowing) Equal(that interface{}) bool

func (*RouteShadowing) GetPercentage

func (m *RouteShadowing) GetPercentage() float32

func (*RouteShadowing) GetUpstream

func (m *RouteShadowing) GetUpstream() *core.ResourceRef

func (*RouteShadowing) Hash added in v1.2.13

func (m *RouteShadowing) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*RouteShadowing) ProtoMessage

func (*RouteShadowing) ProtoMessage()

func (*RouteShadowing) Reset

func (m *RouteShadowing) Reset()

func (*RouteShadowing) String

func (m *RouteShadowing) String() string

func (*RouteShadowing) XXX_DiscardUnknown

func (m *RouteShadowing) XXX_DiscardUnknown()

func (*RouteShadowing) XXX_Marshal

func (m *RouteShadowing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RouteShadowing) XXX_Merge

func (m *RouteShadowing) XXX_Merge(src proto.Message)

func (*RouteShadowing) XXX_Size

func (m *RouteShadowing) XXX_Size() int

func (*RouteShadowing) XXX_Unmarshal

func (m *RouteShadowing) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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