Documentation ¶
Index ¶
- Variables
- type RouteShadowing
- func (*RouteShadowing) Descriptor() ([]byte, []int)deprecated
- func (m *RouteShadowing) Equal(that interface{}) bool
- func (x *RouteShadowing) GetPercentage() float32
- func (x *RouteShadowing) GetUpstream() *core.ResourceRef
- func (m *RouteShadowing) Hash(hasher hash.Hash64) (uint64, error)
- func (*RouteShadowing) ProtoMessage()
- func (x *RouteShadowing) ProtoReflect() protoreflect.Message
- func (x *RouteShadowing) Reset()
- func (x *RouteShadowing) String() string
Constants ¶
This section is empty.
Variables ¶
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_shadowing_shadowing_proto protoreflect.FileDescriptor
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"` // contains filtered or unexported fields }
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
deprecated
func (*RouteShadowing) Descriptor() ([]byte, []int)
Deprecated: Use RouteShadowing.ProtoReflect.Descriptor instead.
func (*RouteShadowing) GetPercentage ¶
func (x *RouteShadowing) GetPercentage() float32
func (*RouteShadowing) GetUpstream ¶
func (x *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) ProtoReflect ¶ added in v1.6.0
func (x *RouteShadowing) ProtoReflect() protoreflect.Message
func (*RouteShadowing) Reset ¶
func (x *RouteShadowing) Reset()
func (*RouteShadowing) String ¶
func (x *RouteShadowing) String() string