proto_message_loggingv3

package
v1.33.0-20240426201503... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProtoMessageLoggingConfig_LogMode_name = map[int32]string{
		0: "LogMode_UNSPECIFIED",
		1: "FIRST_AND_LAST",
	}
	ProtoMessageLoggingConfig_LogMode_value = map[string]int32{
		"LogMode_UNSPECIFIED": 0,
		"FIRST_AND_LAST":      1,
	}
)

Enum value maps for ProtoMessageLoggingConfig_LogMode.

View Source
var (
	MethodLogging_LogDirective_name = map[int32]string{
		0: "LogDirective_UNSPECIFIED",
		1: "LOG",
		2: "LOG_REDACT",
	}
	MethodLogging_LogDirective_value = map[string]int32{
		"LogDirective_UNSPECIFIED": 0,
		"LOG":                      1,
		"LOG_REDACT":               2,
	}
)

Enum value maps for MethodLogging_LogDirective.

View Source
var File_envoy_extensions_filters_http_proto_message_logging_v3_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MethodLogging

type MethodLogging struct {

	// The mapping of field path to its LogDirective for request messages
	RequestLoggingByField map[string]MethodLogging_LogDirective `` /* 304-byte string literal not displayed */
	// The mapping of field path to its LogDirective for response messages
	ResponseLoggingByField map[string]MethodLogging_LogDirective `` /* 307-byte string literal not displayed */
	// contains filtered or unexported fields
}

This message can be used to support per route config approach later even though the Istio doesn't support that so far.

func (*MethodLogging) Descriptor deprecated

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

Deprecated: Use MethodLogging.ProtoReflect.Descriptor instead.

func (*MethodLogging) GetRequestLoggingByField

func (x *MethodLogging) GetRequestLoggingByField() map[string]MethodLogging_LogDirective

func (*MethodLogging) GetResponseLoggingByField

func (x *MethodLogging) GetResponseLoggingByField() map[string]MethodLogging_LogDirective

func (*MethodLogging) ProtoMessage

func (*MethodLogging) ProtoMessage()

func (*MethodLogging) ProtoReflect

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

func (*MethodLogging) Reset

func (x *MethodLogging) Reset()

func (*MethodLogging) String

func (x *MethodLogging) String() string

type MethodLogging_LogDirective

type MethodLogging_LogDirective int32
const (
	MethodLogging_LogDirective_UNSPECIFIED MethodLogging_LogDirective = 0
	// The value of this field will be logged.
	MethodLogging_LOG MethodLogging_LogDirective = 1
	// It should be only annotated on Message type fields so if the field isn't
	// empty, an empty Struct will be logged.
	MethodLogging_LOG_REDACT MethodLogging_LogDirective = 2
)

func (MethodLogging_LogDirective) Descriptor

func (MethodLogging_LogDirective) Enum

func (MethodLogging_LogDirective) EnumDescriptor deprecated

func (MethodLogging_LogDirective) EnumDescriptor() ([]byte, []int)

Deprecated: Use MethodLogging_LogDirective.Descriptor instead.

func (MethodLogging_LogDirective) Number

func (MethodLogging_LogDirective) String

func (MethodLogging_LogDirective) Type

type ProtoMessageLoggingConfig

type ProtoMessageLoggingConfig struct {

	// The proto descriptor set binary for the gRPC services.
	//
	// Types that are assignable to DescriptorSet:
	//
	//	*ProtoMessageLoggingConfig_DataSource
	//	*ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata
	DescriptorSet isProtoMessageLoggingConfig_DescriptorSet `protobuf_oneof:"descriptor_set"`
	Mode          ProtoMessageLoggingConfig_LogMode         `` /* 156-byte string literal not displayed */
	// Specify the message logging info.
	// The key is the fully qualified gRPC method name.
	// “${package}.${Service}.${Method}“, like
	// “endpoints.examples.bookstore.BookStore.GetShelf“
	//
	// The value is the message logging information for individual gRPC methods.
	LoggingByMethod map[string]*MethodLogging `` /* 196-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ProtoMessageLoggingConfig) Descriptor deprecated

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

Deprecated: Use ProtoMessageLoggingConfig.ProtoReflect.Descriptor instead.

func (*ProtoMessageLoggingConfig) GetDataSource

func (x *ProtoMessageLoggingConfig) GetDataSource() *v3.DataSource

func (*ProtoMessageLoggingConfig) GetDescriptorSet

func (m *ProtoMessageLoggingConfig) GetDescriptorSet() isProtoMessageLoggingConfig_DescriptorSet

func (*ProtoMessageLoggingConfig) GetLoggingByMethod

func (x *ProtoMessageLoggingConfig) GetLoggingByMethod() map[string]*MethodLogging

func (*ProtoMessageLoggingConfig) GetMode

func (*ProtoMessageLoggingConfig) GetProtoDescriptorTypedMetadata

func (x *ProtoMessageLoggingConfig) GetProtoDescriptorTypedMetadata() string

func (*ProtoMessageLoggingConfig) ProtoMessage

func (*ProtoMessageLoggingConfig) ProtoMessage()

func (*ProtoMessageLoggingConfig) ProtoReflect

func (*ProtoMessageLoggingConfig) Reset

func (x *ProtoMessageLoggingConfig) Reset()

func (*ProtoMessageLoggingConfig) String

func (x *ProtoMessageLoggingConfig) String() string

type ProtoMessageLoggingConfig_DataSource

type ProtoMessageLoggingConfig_DataSource struct {
	// It could be passed by a local file through “Datasource.filename“ or
	// embedded in the “Datasource.inline_bytes“.
	DataSource *v3.DataSource `protobuf:"bytes,1,opt,name=data_source,json=dataSource,proto3,oneof"`
}

type ProtoMessageLoggingConfig_LogMode

type ProtoMessageLoggingConfig_LogMode int32
const (
	ProtoMessageLoggingConfig_LogMode_UNSPECIFIED ProtoMessageLoggingConfig_LogMode = 0
	// The filter will log the first and the last message for
	// for streaming cases, containing
	// client-side streaming, server-side streaming or bi-directional streaming.
	ProtoMessageLoggingConfig_FIRST_AND_LAST ProtoMessageLoggingConfig_LogMode = 1
)

func (ProtoMessageLoggingConfig_LogMode) Descriptor

func (ProtoMessageLoggingConfig_LogMode) Enum

func (ProtoMessageLoggingConfig_LogMode) EnumDescriptor deprecated

func (ProtoMessageLoggingConfig_LogMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoMessageLoggingConfig_LogMode.Descriptor instead.

func (ProtoMessageLoggingConfig_LogMode) Number

func (ProtoMessageLoggingConfig_LogMode) String

func (ProtoMessageLoggingConfig_LogMode) Type

type ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata

type ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata struct {
	// Unimplemented, the key of proto descriptor TypedMetadata.
	// Among filters depending on the proto descriptor, we can have a TypedMetadata
	// for proto descriptors, so that these filters can share one copy of proto
	// descriptor in memory.
	ProtoDescriptorTypedMetadata string `protobuf:"bytes,2,opt,name=proto_descriptor_typed_metadata,json=protoDescriptorTypedMetadata,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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