go-control-plane: github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mongo_proxy/v2 Index | Files

package envoy_config_filter_network_mongo_proxy_v2

import "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/mongo_proxy/v2"


Package Files

mongo_proxy.pb.go mongo_proxy.pb.validate.go


var File_envoy_config_filter_network_mongo_proxy_v2_mongo_proxy_proto protoreflect.FileDescriptor

type MongoProxy Uses

type MongoProxy struct {

    // The human readable prefix to use when emitting :ref:`statistics
    // <config_network_filters_mongo_proxy_stats>`.
    StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
    // The optional path to use for writing Mongo access logs. If not access log
    // path is specified no access logs will be written. Note that access log is
    // also gated :ref:`runtime <config_network_filters_mongo_proxy_runtime>`.
    AccessLog string `protobuf:"bytes,2,opt,name=access_log,json=accessLog,proto3" json:"access_log,omitempty"`
    // Inject a fixed delay before proxying a Mongo operation. Delays are
    // applied to the following MongoDB operations: Query, Insert, GetMore,
    // and KillCursors. Once an active delay is in progress, all incoming
    // data up until the timer event fires will be a part of the delay.
    Delay *v2.FaultDelay `protobuf:"bytes,3,opt,name=delay,proto3" json:"delay,omitempty"`
    // Flag to specify whether :ref:`dynamic metadata
    // <config_network_filters_mongo_proxy_dynamic_metadata>` should be emitted. Defaults to false.
    EmitDynamicMetadata bool `protobuf:"varint,4,opt,name=emit_dynamic_metadata,json=emitDynamicMetadata,proto3" json:"emit_dynamic_metadata,omitempty"`
    // contains filtered or unexported fields

func (*MongoProxy) Descriptor Uses

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

Deprecated: Use MongoProxy.ProtoReflect.Descriptor instead.

func (*MongoProxy) GetAccessLog Uses

func (x *MongoProxy) GetAccessLog() string

func (*MongoProxy) GetDelay Uses

func (x *MongoProxy) GetDelay() *v2.FaultDelay

func (*MongoProxy) GetEmitDynamicMetadata Uses

func (x *MongoProxy) GetEmitDynamicMetadata() bool

func (*MongoProxy) GetStatPrefix Uses

func (x *MongoProxy) GetStatPrefix() string

func (*MongoProxy) ProtoMessage Uses

func (*MongoProxy) ProtoMessage()

func (*MongoProxy) ProtoReflect Uses

func (x *MongoProxy) ProtoReflect() protoreflect.Message

func (*MongoProxy) Reset Uses

func (x *MongoProxy) Reset()

func (*MongoProxy) String Uses

func (x *MongoProxy) String() string

func (*MongoProxy) Validate Uses

func (m *MongoProxy) Validate() error

Validate checks the field values on MongoProxy with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type MongoProxyValidationError Uses

type MongoProxyValidationError struct {
    // contains filtered or unexported fields

MongoProxyValidationError is the validation error returned by MongoProxy.Validate if the designated constraints aren't met.

func (MongoProxyValidationError) Cause Uses

func (e MongoProxyValidationError) Cause() error

Cause function returns cause value.

func (MongoProxyValidationError) Error Uses

func (e MongoProxyValidationError) Error() string

Error satisfies the builtin error interface

func (MongoProxyValidationError) ErrorName Uses

func (e MongoProxyValidationError) ErrorName() string

ErrorName returns error name.

func (MongoProxyValidationError) Field Uses

func (e MongoProxyValidationError) Field() string

Field function returns field value.

func (MongoProxyValidationError) Key Uses

func (e MongoProxyValidationError) Key() bool

Key function returns key value.

func (MongoProxyValidationError) Reason Uses

func (e MongoProxyValidationError) Reason() string

Reason function returns reason value.

Package envoy_config_filter_network_mongo_proxy_v2 imports 19 packages (graph) and is imported by 6 packages. Updated 2021-01-07. Refresh now. Tools for package owners.