Documentation ¶
Index ¶
- Variables
- type RouteShadowing
- func (m *RouteShadowing) Clone() proto.Message
- 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)deprecated
- func (m *RouteShadowing) HashUnique(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-v3/config/route/v3/route.proto#envoy-api-msg-route-routeaction-requestmirrorpolicy
func (*RouteShadowing) Clone ¶ added in v1.8.24
func (m *RouteShadowing) Clone() proto.Message
Clone function
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
deprecated
added in
v1.2.13
func (m *RouteShadowing) Hash(hasher hash.Hash64) (uint64, error)
Hash function
Deprecated: due to hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions. Prefer the HashUnique function instead.
func (*RouteShadowing) HashUnique ¶ added in v1.18.0
func (m *RouteShadowing) HashUnique(hasher hash.Hash64) (uint64, error)
HashUnique function generates a hash of the object that is unique to the object by hashing field name and value pairs. Replaces Hash due to original hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions.
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