Documentation ¶
Index ¶
- Variables
- type MethodLogging
- func (*MethodLogging) Descriptor() ([]byte, []int)deprecated
- func (x *MethodLogging) GetRequestLoggingByField() map[string]MethodLogging_LogDirective
- func (x *MethodLogging) GetResponseLoggingByField() map[string]MethodLogging_LogDirective
- func (*MethodLogging) ProtoMessage()
- func (x *MethodLogging) ProtoReflect() protoreflect.Message
- func (x *MethodLogging) Reset()
- func (x *MethodLogging) String() string
- func (m *MethodLogging) Validate() error
- func (m *MethodLogging) ValidateAll() error
- type MethodLoggingMultiError
- type MethodLoggingValidationError
- func (e MethodLoggingValidationError) Cause() error
- func (e MethodLoggingValidationError) Error() string
- func (e MethodLoggingValidationError) ErrorName() string
- func (e MethodLoggingValidationError) Field() string
- func (e MethodLoggingValidationError) Key() bool
- func (e MethodLoggingValidationError) Reason() string
- type MethodLogging_LogDirective
- func (MethodLogging_LogDirective) Descriptor() protoreflect.EnumDescriptor
- func (x MethodLogging_LogDirective) Enum() *MethodLogging_LogDirective
- func (MethodLogging_LogDirective) EnumDescriptor() ([]byte, []int)deprecated
- func (x MethodLogging_LogDirective) Number() protoreflect.EnumNumber
- func (x MethodLogging_LogDirective) String() string
- func (MethodLogging_LogDirective) Type() protoreflect.EnumType
- type ProtoMessageLoggingConfig
- func (*ProtoMessageLoggingConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoMessageLoggingConfig) GetDataSource() *v3.DataSource
- func (m *ProtoMessageLoggingConfig) GetDescriptorSet() isProtoMessageLoggingConfig_DescriptorSet
- func (x *ProtoMessageLoggingConfig) GetLoggingByMethod() map[string]*MethodLogging
- func (x *ProtoMessageLoggingConfig) GetMode() ProtoMessageLoggingConfig_LogMode
- func (x *ProtoMessageLoggingConfig) GetProtoDescriptorTypedMetadata() string
- func (*ProtoMessageLoggingConfig) ProtoMessage()
- func (x *ProtoMessageLoggingConfig) ProtoReflect() protoreflect.Message
- func (x *ProtoMessageLoggingConfig) Reset()
- func (x *ProtoMessageLoggingConfig) String() string
- func (m *ProtoMessageLoggingConfig) Validate() error
- func (m *ProtoMessageLoggingConfig) ValidateAll() error
- type ProtoMessageLoggingConfigMultiError
- type ProtoMessageLoggingConfigValidationError
- func (e ProtoMessageLoggingConfigValidationError) Cause() error
- func (e ProtoMessageLoggingConfigValidationError) Error() string
- func (e ProtoMessageLoggingConfigValidationError) ErrorName() string
- func (e ProtoMessageLoggingConfigValidationError) Field() string
- func (e ProtoMessageLoggingConfigValidationError) Key() bool
- func (e ProtoMessageLoggingConfigValidationError) Reason() string
- type ProtoMessageLoggingConfig_DataSource
- type ProtoMessageLoggingConfig_LogMode
- func (ProtoMessageLoggingConfig_LogMode) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoMessageLoggingConfig_LogMode) Enum() *ProtoMessageLoggingConfig_LogMode
- func (ProtoMessageLoggingConfig_LogMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoMessageLoggingConfig_LogMode) Number() protoreflect.EnumNumber
- func (x ProtoMessageLoggingConfig_LogMode) String() string
- func (ProtoMessageLoggingConfig_LogMode) Type() protoreflect.EnumType
- type ProtoMessageLoggingConfig_ProtoDescriptorTypedMetadata
Constants ¶
This section is empty.
Variables ¶
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.
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.
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 ¶
func (e MethodLoggingValidationError) Cause() error
Cause function returns cause value.
func (MethodLoggingValidationError) Error ¶
func (e MethodLoggingValidationError) Error() string
Error satisfies the builtin error interface
func (MethodLoggingValidationError) ErrorName ¶
func (e MethodLoggingValidationError) ErrorName() string
ErrorName returns error name.
func (MethodLoggingValidationError) Field ¶
func (e MethodLoggingValidationError) Field() string
Field function returns field value.
func (MethodLoggingValidationError) Key ¶
func (e MethodLoggingValidationError) Key() bool
Key function returns key value.
func (MethodLoggingValidationError) Reason ¶
func (e MethodLoggingValidationError) Reason() string
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) Descriptor() protoreflect.EnumDescriptor
func (MethodLogging_LogDirective) Enum ¶
func (x MethodLogging_LogDirective) Enum() *MethodLogging_LogDirective
func (MethodLogging_LogDirective) EnumDescriptor
deprecated
func (MethodLogging_LogDirective) EnumDescriptor() ([]byte, []int)
Deprecated: Use MethodLogging_LogDirective.Descriptor instead.
func (MethodLogging_LogDirective) Number ¶
func (x MethodLogging_LogDirective) Number() protoreflect.EnumNumber
func (MethodLogging_LogDirective) String ¶
func (x MethodLogging_LogDirective) String() string
func (MethodLogging_LogDirective) Type ¶
func (MethodLogging_LogDirective) Type() protoreflect.EnumType
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 (x *ProtoMessageLoggingConfig) GetMode() ProtoMessageLoggingConfig_LogMode
func (*ProtoMessageLoggingConfig) GetProtoDescriptorTypedMetadata ¶
func (x *ProtoMessageLoggingConfig) GetProtoDescriptorTypedMetadata() string
func (*ProtoMessageLoggingConfig) ProtoMessage ¶
func (*ProtoMessageLoggingConfig) ProtoMessage()
func (*ProtoMessageLoggingConfig) ProtoReflect ¶
func (x *ProtoMessageLoggingConfig) ProtoReflect() protoreflect.Message
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 ¶
func (m ProtoMessageLoggingConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ProtoMessageLoggingConfigMultiError) Error ¶
func (m ProtoMessageLoggingConfigMultiError) Error() string
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 ¶
func (e ProtoMessageLoggingConfigValidationError) Cause() error
Cause function returns cause value.
func (ProtoMessageLoggingConfigValidationError) Error ¶
func (e ProtoMessageLoggingConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ProtoMessageLoggingConfigValidationError) ErrorName ¶
func (e ProtoMessageLoggingConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ProtoMessageLoggingConfigValidationError) Field ¶
func (e ProtoMessageLoggingConfigValidationError) Field() string
Field function returns field value.
func (ProtoMessageLoggingConfigValidationError) Key ¶
func (e ProtoMessageLoggingConfigValidationError) Key() bool
Key function returns key value.
func (ProtoMessageLoggingConfigValidationError) Reason ¶
func (e ProtoMessageLoggingConfigValidationError) Reason() string
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) Descriptor() protoreflect.EnumDescriptor
func (ProtoMessageLoggingConfig_LogMode) Enum ¶
func (x ProtoMessageLoggingConfig_LogMode) Enum() *ProtoMessageLoggingConfig_LogMode
func (ProtoMessageLoggingConfig_LogMode) EnumDescriptor
deprecated
func (ProtoMessageLoggingConfig_LogMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoMessageLoggingConfig_LogMode.Descriptor instead.
func (ProtoMessageLoggingConfig_LogMode) Number ¶
func (x ProtoMessageLoggingConfig_LogMode) Number() protoreflect.EnumNumber
func (ProtoMessageLoggingConfig_LogMode) String ¶
func (x ProtoMessageLoggingConfig_LogMode) String() string
func (ProtoMessageLoggingConfig_LogMode) Type ¶
func (ProtoMessageLoggingConfig_LogMode) Type() protoreflect.EnumType
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"` }