shadowing

package
v1.17.0-rc11 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Equal

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

Equal function

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

Jump to

Keyboard shortcuts

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