proto_message_loggingv3

package
v0.12.1-0...-bc7bb4c Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 19 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

func (*MethodLogging) Validate

func (m *MethodLogging) Validate() error

Validate checks the field values on MethodLogging with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MethodLogging) ValidateAll

func (m *MethodLogging) ValidateAll() error

ValidateAll checks the field values on MethodLogging with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MethodLoggingMultiError, or nil if none found.

type MethodLoggingMultiError

type MethodLoggingMultiError []error

MethodLoggingMultiError is an error wrapping multiple validation errors returned by MethodLogging.ValidateAll() if the designated constraints aren't met.

func (MethodLoggingMultiError) AllErrors

func (m MethodLoggingMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MethodLoggingMultiError) Error

func (m MethodLoggingMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MethodLoggingValidationError

type MethodLoggingValidationError struct {
	// contains filtered or unexported fields
}

MethodLoggingValidationError is the validation error returned by MethodLogging.Validate if the designated constraints aren't met.

func (MethodLoggingValidationError) Cause

Cause function returns cause value.

func (MethodLoggingValidationError) Error

Error satisfies the builtin error interface

func (MethodLoggingValidationError) ErrorName

func (e MethodLoggingValidationError) ErrorName() string

ErrorName returns error name.

func (MethodLoggingValidationError) Field

Field function returns field value.

func (MethodLoggingValidationError) Key

Key function returns key value.

func (MethodLoggingValidationError) Reason

Reason function returns reason value.

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

func (*ProtoMessageLoggingConfig) Validate

func (m *ProtoMessageLoggingConfig) Validate() error

Validate checks the field values on ProtoMessageLoggingConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ProtoMessageLoggingConfig) ValidateAll

func (m *ProtoMessageLoggingConfig) ValidateAll() error

ValidateAll checks the field values on ProtoMessageLoggingConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProtoMessageLoggingConfigMultiError, or nil if none found.

type ProtoMessageLoggingConfigMultiError

type ProtoMessageLoggingConfigMultiError []error

ProtoMessageLoggingConfigMultiError is an error wrapping multiple validation errors returned by ProtoMessageLoggingConfig.ValidateAll() if the designated constraints aren't met.

func (ProtoMessageLoggingConfigMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ProtoMessageLoggingConfigMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ProtoMessageLoggingConfigValidationError

type ProtoMessageLoggingConfigValidationError struct {
	// contains filtered or unexported fields
}

ProtoMessageLoggingConfigValidationError is the validation error returned by ProtoMessageLoggingConfig.Validate if the designated constraints aren't met.

func (ProtoMessageLoggingConfigValidationError) Cause

Cause function returns cause value.

func (ProtoMessageLoggingConfigValidationError) Error

Error satisfies the builtin error interface

func (ProtoMessageLoggingConfigValidationError) ErrorName

ErrorName returns error name.

func (ProtoMessageLoggingConfigValidationError) Field

Field function returns field value.

func (ProtoMessageLoggingConfigValidationError) Key

Key function returns key value.

func (ProtoMessageLoggingConfigValidationError) Reason

Reason function returns reason value.

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