accesslogv3

package
v1.36.3-20240506201004... Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AccessLogFilter_AndFilter_case case_AccessLogFilter_FilterSpecifier = 6
View Source
const AccessLogFilter_DurationFilter_case case_AccessLogFilter_FilterSpecifier = 2
View Source
const AccessLogFilter_ExtensionFilter_case case_AccessLogFilter_FilterSpecifier = 11
View Source
const AccessLogFilter_FilterSpecifier_not_set_case case_AccessLogFilter_FilterSpecifier = 0
View Source
const AccessLogFilter_GrpcStatusFilter_case case_AccessLogFilter_FilterSpecifier = 10
View Source
const AccessLogFilter_HeaderFilter_case case_AccessLogFilter_FilterSpecifier = 8
View Source
const AccessLogFilter_LogTypeFilter_case case_AccessLogFilter_FilterSpecifier = 13
View Source
const AccessLogFilter_MetadataFilter_case case_AccessLogFilter_FilterSpecifier = 12
View Source
const AccessLogFilter_NotHealthCheckFilter_case case_AccessLogFilter_FilterSpecifier = 3
View Source
const AccessLogFilter_OrFilter_case case_AccessLogFilter_FilterSpecifier = 7
View Source
const AccessLogFilter_ResponseFlagFilter_case case_AccessLogFilter_FilterSpecifier = 9
View Source
const AccessLogFilter_RuntimeFilter_case case_AccessLogFilter_FilterSpecifier = 5
View Source
const AccessLogFilter_StatusCodeFilter_case case_AccessLogFilter_FilterSpecifier = 1
View Source
const AccessLogFilter_TraceableFilter_case case_AccessLogFilter_FilterSpecifier = 4
View Source
const AccessLog_ConfigType_not_set_case case_AccessLog_ConfigType = 0
View Source
const AccessLog_TypedConfig_case case_AccessLog_ConfigType = 4
View Source
const ExtensionFilter_ConfigType_not_set_case case_ExtensionFilter_ConfigType = 0
View Source
const ExtensionFilter_TypedConfig_case case_ExtensionFilter_ConfigType = 3

Variables

View Source
var (
	ComparisonFilter_Op_name = map[int32]string{
		0: "EQ",
		1: "GE",
		2: "LE",
	}
	ComparisonFilter_Op_value = map[string]int32{
		"EQ": 0,
		"GE": 1,
		"LE": 2,
	}
)

Enum value maps for ComparisonFilter_Op.

View Source
var (
	GrpcStatusFilter_Status_name = map[int32]string{
		0:  "OK",
		1:  "CANCELED",
		2:  "UNKNOWN",
		3:  "INVALID_ARGUMENT",
		4:  "DEADLINE_EXCEEDED",
		5:  "NOT_FOUND",
		6:  "ALREADY_EXISTS",
		7:  "PERMISSION_DENIED",
		8:  "RESOURCE_EXHAUSTED",
		9:  "FAILED_PRECONDITION",
		10: "ABORTED",
		11: "OUT_OF_RANGE",
		12: "UNIMPLEMENTED",
		13: "INTERNAL",
		14: "UNAVAILABLE",
		15: "DATA_LOSS",
		16: "UNAUTHENTICATED",
	}
	GrpcStatusFilter_Status_value = map[string]int32{
		"OK":                  0,
		"CANCELED":            1,
		"UNKNOWN":             2,
		"INVALID_ARGUMENT":    3,
		"DEADLINE_EXCEEDED":   4,
		"NOT_FOUND":           5,
		"ALREADY_EXISTS":      6,
		"PERMISSION_DENIED":   7,
		"RESOURCE_EXHAUSTED":  8,
		"FAILED_PRECONDITION": 9,
		"ABORTED":             10,
		"OUT_OF_RANGE":        11,
		"UNIMPLEMENTED":       12,
		"INTERNAL":            13,
		"UNAVAILABLE":         14,
		"DATA_LOSS":           15,
		"UNAUTHENTICATED":     16,
	}
)

Enum value maps for GrpcStatusFilter_Status.

View Source
var File_envoy_config_accesslog_v3_accesslog_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccessLog

type AccessLog struct {

	// The name of the access log extension configuration.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Filter which is used to determine if the access log needs to be written.
	Filter *AccessLogFilter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Custom configuration that must be set according to the access logger extension being instantiated.
	// [#extension-category: envoy.access_loggers]
	//
	// Types that are valid to be assigned to ConfigType:
	//
	//	*AccessLog_TypedConfig
	ConfigType isAccessLog_ConfigType `protobuf_oneof:"config_type"`
	// contains filtered or unexported fields
}

func (*AccessLog) ClearConfigType

func (x *AccessLog) ClearConfigType()

func (*AccessLog) ClearFilter

func (x *AccessLog) ClearFilter()

func (*AccessLog) ClearTypedConfig

func (x *AccessLog) ClearTypedConfig()

func (*AccessLog) GetConfigType

func (x *AccessLog) GetConfigType() isAccessLog_ConfigType

func (*AccessLog) GetFilter

func (x *AccessLog) GetFilter() *AccessLogFilter

func (*AccessLog) GetName

func (x *AccessLog) GetName() string

func (*AccessLog) GetTypedConfig

func (x *AccessLog) GetTypedConfig() *anypb.Any

func (*AccessLog) HasConfigType

func (x *AccessLog) HasConfigType() bool

func (*AccessLog) HasFilter

func (x *AccessLog) HasFilter() bool

func (*AccessLog) HasTypedConfig

func (x *AccessLog) HasTypedConfig() bool

func (*AccessLog) ProtoMessage

func (*AccessLog) ProtoMessage()

func (*AccessLog) ProtoReflect

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

func (*AccessLog) Reset

func (x *AccessLog) Reset()

func (*AccessLog) SetFilter

func (x *AccessLog) SetFilter(v *AccessLogFilter)

func (*AccessLog) SetName

func (x *AccessLog) SetName(v string)

func (*AccessLog) SetTypedConfig

func (x *AccessLog) SetTypedConfig(v *anypb.Any)

func (*AccessLog) String

func (x *AccessLog) String() string

func (*AccessLog) WhichConfigType

func (x *AccessLog) WhichConfigType() case_AccessLog_ConfigType

type AccessLogFilter

type AccessLogFilter struct {

	// Types that are valid to be assigned to FilterSpecifier:
	//
	//	*AccessLogFilter_StatusCodeFilter
	//	*AccessLogFilter_DurationFilter
	//	*AccessLogFilter_NotHealthCheckFilter
	//	*AccessLogFilter_TraceableFilter
	//	*AccessLogFilter_RuntimeFilter
	//	*AccessLogFilter_AndFilter
	//	*AccessLogFilter_OrFilter
	//	*AccessLogFilter_HeaderFilter
	//	*AccessLogFilter_ResponseFlagFilter
	//	*AccessLogFilter_GrpcStatusFilter
	//	*AccessLogFilter_ExtensionFilter
	//	*AccessLogFilter_MetadataFilter
	//	*AccessLogFilter_LogTypeFilter
	FilterSpecifier isAccessLogFilter_FilterSpecifier `protobuf_oneof:"filter_specifier"`
	// contains filtered or unexported fields
}

[#next-free-field: 14]

func (*AccessLogFilter) ClearAndFilter

func (x *AccessLogFilter) ClearAndFilter()

func (*AccessLogFilter) ClearDurationFilter

func (x *AccessLogFilter) ClearDurationFilter()

func (*AccessLogFilter) ClearExtensionFilter

func (x *AccessLogFilter) ClearExtensionFilter()

func (*AccessLogFilter) ClearFilterSpecifier

func (x *AccessLogFilter) ClearFilterSpecifier()

func (*AccessLogFilter) ClearGrpcStatusFilter

func (x *AccessLogFilter) ClearGrpcStatusFilter()

func (*AccessLogFilter) ClearHeaderFilter

func (x *AccessLogFilter) ClearHeaderFilter()

func (*AccessLogFilter) ClearLogTypeFilter

func (x *AccessLogFilter) ClearLogTypeFilter()

func (*AccessLogFilter) ClearMetadataFilter

func (x *AccessLogFilter) ClearMetadataFilter()

func (*AccessLogFilter) ClearNotHealthCheckFilter

func (x *AccessLogFilter) ClearNotHealthCheckFilter()

func (*AccessLogFilter) ClearOrFilter

func (x *AccessLogFilter) ClearOrFilter()

func (*AccessLogFilter) ClearResponseFlagFilter

func (x *AccessLogFilter) ClearResponseFlagFilter()

func (*AccessLogFilter) ClearRuntimeFilter

func (x *AccessLogFilter) ClearRuntimeFilter()

func (*AccessLogFilter) ClearStatusCodeFilter

func (x *AccessLogFilter) ClearStatusCodeFilter()

func (*AccessLogFilter) ClearTraceableFilter

func (x *AccessLogFilter) ClearTraceableFilter()

func (*AccessLogFilter) GetAndFilter

func (x *AccessLogFilter) GetAndFilter() *AndFilter

func (*AccessLogFilter) GetDurationFilter

func (x *AccessLogFilter) GetDurationFilter() *DurationFilter

func (*AccessLogFilter) GetExtensionFilter

func (x *AccessLogFilter) GetExtensionFilter() *ExtensionFilter

func (*AccessLogFilter) GetFilterSpecifier

func (x *AccessLogFilter) GetFilterSpecifier() isAccessLogFilter_FilterSpecifier

func (*AccessLogFilter) GetGrpcStatusFilter

func (x *AccessLogFilter) GetGrpcStatusFilter() *GrpcStatusFilter

func (*AccessLogFilter) GetHeaderFilter

func (x *AccessLogFilter) GetHeaderFilter() *HeaderFilter

func (*AccessLogFilter) GetLogTypeFilter

func (x *AccessLogFilter) GetLogTypeFilter() *LogTypeFilter

func (*AccessLogFilter) GetMetadataFilter

func (x *AccessLogFilter) GetMetadataFilter() *MetadataFilter

func (*AccessLogFilter) GetNotHealthCheckFilter

func (x *AccessLogFilter) GetNotHealthCheckFilter() *NotHealthCheckFilter

func (*AccessLogFilter) GetOrFilter

func (x *AccessLogFilter) GetOrFilter() *OrFilter

func (*AccessLogFilter) GetResponseFlagFilter

func (x *AccessLogFilter) GetResponseFlagFilter() *ResponseFlagFilter

func (*AccessLogFilter) GetRuntimeFilter

func (x *AccessLogFilter) GetRuntimeFilter() *RuntimeFilter

func (*AccessLogFilter) GetStatusCodeFilter

func (x *AccessLogFilter) GetStatusCodeFilter() *StatusCodeFilter

func (*AccessLogFilter) GetTraceableFilter

func (x *AccessLogFilter) GetTraceableFilter() *TraceableFilter

func (*AccessLogFilter) HasAndFilter

func (x *AccessLogFilter) HasAndFilter() bool

func (*AccessLogFilter) HasDurationFilter

func (x *AccessLogFilter) HasDurationFilter() bool

func (*AccessLogFilter) HasExtensionFilter

func (x *AccessLogFilter) HasExtensionFilter() bool

func (*AccessLogFilter) HasFilterSpecifier

func (x *AccessLogFilter) HasFilterSpecifier() bool

func (*AccessLogFilter) HasGrpcStatusFilter

func (x *AccessLogFilter) HasGrpcStatusFilter() bool

func (*AccessLogFilter) HasHeaderFilter

func (x *AccessLogFilter) HasHeaderFilter() bool

func (*AccessLogFilter) HasLogTypeFilter

func (x *AccessLogFilter) HasLogTypeFilter() bool

func (*AccessLogFilter) HasMetadataFilter

func (x *AccessLogFilter) HasMetadataFilter() bool

func (*AccessLogFilter) HasNotHealthCheckFilter

func (x *AccessLogFilter) HasNotHealthCheckFilter() bool

func (*AccessLogFilter) HasOrFilter

func (x *AccessLogFilter) HasOrFilter() bool

func (*AccessLogFilter) HasResponseFlagFilter

func (x *AccessLogFilter) HasResponseFlagFilter() bool

func (*AccessLogFilter) HasRuntimeFilter

func (x *AccessLogFilter) HasRuntimeFilter() bool

func (*AccessLogFilter) HasStatusCodeFilter

func (x *AccessLogFilter) HasStatusCodeFilter() bool

func (*AccessLogFilter) HasTraceableFilter

func (x *AccessLogFilter) HasTraceableFilter() bool

func (*AccessLogFilter) ProtoMessage

func (*AccessLogFilter) ProtoMessage()

func (*AccessLogFilter) ProtoReflect

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

func (*AccessLogFilter) Reset

func (x *AccessLogFilter) Reset()

func (*AccessLogFilter) SetAndFilter

func (x *AccessLogFilter) SetAndFilter(v *AndFilter)

func (*AccessLogFilter) SetDurationFilter

func (x *AccessLogFilter) SetDurationFilter(v *DurationFilter)

func (*AccessLogFilter) SetExtensionFilter

func (x *AccessLogFilter) SetExtensionFilter(v *ExtensionFilter)

func (*AccessLogFilter) SetGrpcStatusFilter

func (x *AccessLogFilter) SetGrpcStatusFilter(v *GrpcStatusFilter)

func (*AccessLogFilter) SetHeaderFilter

func (x *AccessLogFilter) SetHeaderFilter(v *HeaderFilter)

func (*AccessLogFilter) SetLogTypeFilter

func (x *AccessLogFilter) SetLogTypeFilter(v *LogTypeFilter)

func (*AccessLogFilter) SetMetadataFilter

func (x *AccessLogFilter) SetMetadataFilter(v *MetadataFilter)

func (*AccessLogFilter) SetNotHealthCheckFilter

func (x *AccessLogFilter) SetNotHealthCheckFilter(v *NotHealthCheckFilter)

func (*AccessLogFilter) SetOrFilter

func (x *AccessLogFilter) SetOrFilter(v *OrFilter)

func (*AccessLogFilter) SetResponseFlagFilter

func (x *AccessLogFilter) SetResponseFlagFilter(v *ResponseFlagFilter)

func (*AccessLogFilter) SetRuntimeFilter

func (x *AccessLogFilter) SetRuntimeFilter(v *RuntimeFilter)

func (*AccessLogFilter) SetStatusCodeFilter

func (x *AccessLogFilter) SetStatusCodeFilter(v *StatusCodeFilter)

func (*AccessLogFilter) SetTraceableFilter

func (x *AccessLogFilter) SetTraceableFilter(v *TraceableFilter)

func (*AccessLogFilter) String

func (x *AccessLogFilter) String() string

func (*AccessLogFilter) WhichFilterSpecifier

func (x *AccessLogFilter) WhichFilterSpecifier() case_AccessLogFilter_FilterSpecifier

type AccessLogFilter_AndFilter

type AccessLogFilter_AndFilter struct {
	// And filter.
	AndFilter *AndFilter `protobuf:"bytes,6,opt,name=and_filter,json=andFilter,proto3,oneof"`
}

type AccessLogFilter_DurationFilter

type AccessLogFilter_DurationFilter struct {
	// Duration filter.
	DurationFilter *DurationFilter `protobuf:"bytes,2,opt,name=duration_filter,json=durationFilter,proto3,oneof"`
}

type AccessLogFilter_ExtensionFilter

type AccessLogFilter_ExtensionFilter struct {
	// Extension filter.
	// [#extension-category: envoy.access_loggers.extension_filters]
	ExtensionFilter *ExtensionFilter `protobuf:"bytes,11,opt,name=extension_filter,json=extensionFilter,proto3,oneof"`
}

type AccessLogFilter_GrpcStatusFilter

type AccessLogFilter_GrpcStatusFilter struct {
	// gRPC status filter.
	GrpcStatusFilter *GrpcStatusFilter `protobuf:"bytes,10,opt,name=grpc_status_filter,json=grpcStatusFilter,proto3,oneof"`
}

type AccessLogFilter_HeaderFilter

type AccessLogFilter_HeaderFilter struct {
	// Header filter.
	HeaderFilter *HeaderFilter `protobuf:"bytes,8,opt,name=header_filter,json=headerFilter,proto3,oneof"`
}

type AccessLogFilter_LogTypeFilter

type AccessLogFilter_LogTypeFilter struct {
	// Log Type Filter
	LogTypeFilter *LogTypeFilter `protobuf:"bytes,13,opt,name=log_type_filter,json=logTypeFilter,proto3,oneof"`
}

type AccessLogFilter_MetadataFilter

type AccessLogFilter_MetadataFilter struct {
	// Metadata Filter
	MetadataFilter *MetadataFilter `protobuf:"bytes,12,opt,name=metadata_filter,json=metadataFilter,proto3,oneof"`
}

type AccessLogFilter_NotHealthCheckFilter

type AccessLogFilter_NotHealthCheckFilter struct {
	// Not health check filter.
	NotHealthCheckFilter *NotHealthCheckFilter `protobuf:"bytes,3,opt,name=not_health_check_filter,json=notHealthCheckFilter,proto3,oneof"`
}

type AccessLogFilter_OrFilter

type AccessLogFilter_OrFilter struct {
	// Or filter.
	OrFilter *OrFilter `protobuf:"bytes,7,opt,name=or_filter,json=orFilter,proto3,oneof"`
}

type AccessLogFilter_ResponseFlagFilter

type AccessLogFilter_ResponseFlagFilter struct {
	// Response flag filter.
	ResponseFlagFilter *ResponseFlagFilter `protobuf:"bytes,9,opt,name=response_flag_filter,json=responseFlagFilter,proto3,oneof"`
}

type AccessLogFilter_RuntimeFilter

type AccessLogFilter_RuntimeFilter struct {
	// Runtime filter.
	RuntimeFilter *RuntimeFilter `protobuf:"bytes,5,opt,name=runtime_filter,json=runtimeFilter,proto3,oneof"`
}

type AccessLogFilter_StatusCodeFilter

type AccessLogFilter_StatusCodeFilter struct {
	// Status code filter.
	StatusCodeFilter *StatusCodeFilter `protobuf:"bytes,1,opt,name=status_code_filter,json=statusCodeFilter,proto3,oneof"`
}

type AccessLogFilter_TraceableFilter

type AccessLogFilter_TraceableFilter struct {
	// Traceable filter.
	TraceableFilter *TraceableFilter `protobuf:"bytes,4,opt,name=traceable_filter,json=traceableFilter,proto3,oneof"`
}

type AccessLogFilter_builder

type AccessLogFilter_builder struct {

	// Fields of oneof FilterSpecifier:
	// Status code filter.
	StatusCodeFilter *StatusCodeFilter
	// Duration filter.
	DurationFilter *DurationFilter
	// Not health check filter.
	NotHealthCheckFilter *NotHealthCheckFilter
	// Traceable filter.
	TraceableFilter *TraceableFilter
	// Runtime filter.
	RuntimeFilter *RuntimeFilter
	// And filter.
	AndFilter *AndFilter
	// Or filter.
	OrFilter *OrFilter
	// Header filter.
	HeaderFilter *HeaderFilter
	// Response flag filter.
	ResponseFlagFilter *ResponseFlagFilter
	// gRPC status filter.
	GrpcStatusFilter *GrpcStatusFilter
	// Extension filter.
	// [#extension-category: envoy.access_loggers.extension_filters]
	ExtensionFilter *ExtensionFilter
	// Metadata Filter
	MetadataFilter *MetadataFilter
	// Log Type Filter
	LogTypeFilter *LogTypeFilter
	// contains filtered or unexported fields
}

func (AccessLogFilter_builder) Build

type AccessLog_TypedConfig

type AccessLog_TypedConfig struct {
	TypedConfig *anypb.Any `protobuf:"bytes,4,opt,name=typed_config,json=typedConfig,proto3,oneof"`
}

type AccessLog_builder

type AccessLog_builder struct {

	// The name of the access log extension configuration.
	Name string
	// Filter which is used to determine if the access log needs to be written.
	Filter *AccessLogFilter

	// Fields of oneof ConfigType:
	TypedConfig *anypb.Any
	// contains filtered or unexported fields
}

func (AccessLog_builder) Build

func (b0 AccessLog_builder) Build() *AccessLog

type AndFilter

type AndFilter struct {
	Filters []*AccessLogFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"`
	// contains filtered or unexported fields
}

Performs a logical “and” operation on the result of each filter in filters. Filters are evaluated sequentially and if one of them returns false, the filter returns false immediately.

func (*AndFilter) GetFilters

func (x *AndFilter) GetFilters() []*AccessLogFilter

func (*AndFilter) ProtoMessage

func (*AndFilter) ProtoMessage()

func (*AndFilter) ProtoReflect

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

func (*AndFilter) Reset

func (x *AndFilter) Reset()

func (*AndFilter) SetFilters

func (x *AndFilter) SetFilters(v []*AccessLogFilter)

func (*AndFilter) String

func (x *AndFilter) String() string

type AndFilter_builder

type AndFilter_builder struct {
	Filters []*AccessLogFilter
	// contains filtered or unexported fields
}

func (AndFilter_builder) Build

func (b0 AndFilter_builder) Build() *AndFilter

type ComparisonFilter

type ComparisonFilter struct {

	// Comparison operator.
	Op ComparisonFilter_Op `protobuf:"varint,1,opt,name=op,proto3,enum=envoy.config.accesslog.v3.ComparisonFilter_Op" json:"op,omitempty"`
	// Value to compare against.
	Value *v3.RuntimeUInt32 `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Filter on an integer comparison.

func (*ComparisonFilter) ClearValue

func (x *ComparisonFilter) ClearValue()

func (*ComparisonFilter) GetOp

func (*ComparisonFilter) GetValue

func (x *ComparisonFilter) GetValue() *v3.RuntimeUInt32

func (*ComparisonFilter) HasValue

func (x *ComparisonFilter) HasValue() bool

func (*ComparisonFilter) ProtoMessage

func (*ComparisonFilter) ProtoMessage()

func (*ComparisonFilter) ProtoReflect

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

func (*ComparisonFilter) Reset

func (x *ComparisonFilter) Reset()

func (*ComparisonFilter) SetOp

func (*ComparisonFilter) SetValue

func (x *ComparisonFilter) SetValue(v *v3.RuntimeUInt32)

func (*ComparisonFilter) String

func (x *ComparisonFilter) String() string

type ComparisonFilter_Op

type ComparisonFilter_Op int32
const (
	// =
	ComparisonFilter_EQ ComparisonFilter_Op = 0
	// >=
	ComparisonFilter_GE ComparisonFilter_Op = 1
	// <=
	ComparisonFilter_LE ComparisonFilter_Op = 2
)

func (ComparisonFilter_Op) Descriptor

func (ComparisonFilter_Op) Enum

func (ComparisonFilter_Op) Number

func (ComparisonFilter_Op) String

func (x ComparisonFilter_Op) String() string

func (ComparisonFilter_Op) Type

type ComparisonFilter_builder

type ComparisonFilter_builder struct {

	// Comparison operator.
	Op ComparisonFilter_Op
	// Value to compare against.
	Value *v3.RuntimeUInt32
	// contains filtered or unexported fields
}

func (ComparisonFilter_builder) Build

type DurationFilter

type DurationFilter struct {

	// Comparison.
	Comparison *ComparisonFilter `protobuf:"bytes,1,opt,name=comparison,proto3" json:"comparison,omitempty"`
	// contains filtered or unexported fields
}

Filters based on the duration of the request or stream, in milliseconds. For end of stream access logs, the total duration of the stream will be used. For :ref:`periodic access logs<arch_overview_access_log_periodic>`, the duration of the stream at the time of log recording will be used.

func (*DurationFilter) ClearComparison

func (x *DurationFilter) ClearComparison()

func (*DurationFilter) GetComparison

func (x *DurationFilter) GetComparison() *ComparisonFilter

func (*DurationFilter) HasComparison

func (x *DurationFilter) HasComparison() bool

func (*DurationFilter) ProtoMessage

func (*DurationFilter) ProtoMessage()

func (*DurationFilter) ProtoReflect

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

func (*DurationFilter) Reset

func (x *DurationFilter) Reset()

func (*DurationFilter) SetComparison

func (x *DurationFilter) SetComparison(v *ComparisonFilter)

func (*DurationFilter) String

func (x *DurationFilter) String() string

type DurationFilter_builder

type DurationFilter_builder struct {

	// Comparison.
	Comparison *ComparisonFilter
	// contains filtered or unexported fields
}

func (DurationFilter_builder) Build

type ExtensionFilter

type ExtensionFilter struct {

	// The name of the filter implementation to instantiate. The name must
	// match a statically registered filter.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Custom configuration that depends on the filter being instantiated.
	//
	// Types that are valid to be assigned to ConfigType:
	//
	//	*ExtensionFilter_TypedConfig
	ConfigType isExtensionFilter_ConfigType `protobuf_oneof:"config_type"`
	// contains filtered or unexported fields
}

Extension filter is statically registered at runtime.

func (*ExtensionFilter) ClearConfigType

func (x *ExtensionFilter) ClearConfigType()

func (*ExtensionFilter) ClearTypedConfig

func (x *ExtensionFilter) ClearTypedConfig()

func (*ExtensionFilter) GetConfigType

func (x *ExtensionFilter) GetConfigType() isExtensionFilter_ConfigType

func (*ExtensionFilter) GetName

func (x *ExtensionFilter) GetName() string

func (*ExtensionFilter) GetTypedConfig

func (x *ExtensionFilter) GetTypedConfig() *anypb.Any

func (*ExtensionFilter) HasConfigType

func (x *ExtensionFilter) HasConfigType() bool

func (*ExtensionFilter) HasTypedConfig

func (x *ExtensionFilter) HasTypedConfig() bool

func (*ExtensionFilter) ProtoMessage

func (*ExtensionFilter) ProtoMessage()

func (*ExtensionFilter) ProtoReflect

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

func (*ExtensionFilter) Reset

func (x *ExtensionFilter) Reset()

func (*ExtensionFilter) SetName

func (x *ExtensionFilter) SetName(v string)

func (*ExtensionFilter) SetTypedConfig

func (x *ExtensionFilter) SetTypedConfig(v *anypb.Any)

func (*ExtensionFilter) String

func (x *ExtensionFilter) String() string

func (*ExtensionFilter) WhichConfigType

func (x *ExtensionFilter) WhichConfigType() case_ExtensionFilter_ConfigType

type ExtensionFilter_TypedConfig

type ExtensionFilter_TypedConfig struct {
	TypedConfig *anypb.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"`
}

type ExtensionFilter_builder

type ExtensionFilter_builder struct {

	// The name of the filter implementation to instantiate. The name must
	// match a statically registered filter.
	Name string

	// Fields of oneof ConfigType:
	TypedConfig *anypb.Any
	// contains filtered or unexported fields
}

func (ExtensionFilter_builder) Build

type GrpcStatusFilter

type GrpcStatusFilter struct {

	// Logs only responses that have any one of the gRPC statuses in this field.
	Statuses []GrpcStatusFilter_Status `` /* 132-byte string literal not displayed */
	// If included and set to true, the filter will instead block all responses
	// with a gRPC status or inferred gRPC status enumerated in statuses, and
	// allow all other responses.
	Exclude bool `protobuf:"varint,2,opt,name=exclude,proto3" json:"exclude,omitempty"`
	// contains filtered or unexported fields
}

Filters gRPC requests based on their response status. If a gRPC status is not provided, the filter will infer the status from the HTTP status code.

func (*GrpcStatusFilter) GetExclude

func (x *GrpcStatusFilter) GetExclude() bool

func (*GrpcStatusFilter) GetStatuses

func (x *GrpcStatusFilter) GetStatuses() []GrpcStatusFilter_Status

func (*GrpcStatusFilter) ProtoMessage

func (*GrpcStatusFilter) ProtoMessage()

func (*GrpcStatusFilter) ProtoReflect

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

func (*GrpcStatusFilter) Reset

func (x *GrpcStatusFilter) Reset()

func (*GrpcStatusFilter) SetExclude

func (x *GrpcStatusFilter) SetExclude(v bool)

func (*GrpcStatusFilter) SetStatuses

func (x *GrpcStatusFilter) SetStatuses(v []GrpcStatusFilter_Status)

func (*GrpcStatusFilter) String

func (x *GrpcStatusFilter) String() string

type GrpcStatusFilter_Status

type GrpcStatusFilter_Status int32
const (
	GrpcStatusFilter_OK                  GrpcStatusFilter_Status = 0
	GrpcStatusFilter_CANCELED            GrpcStatusFilter_Status = 1
	GrpcStatusFilter_UNKNOWN             GrpcStatusFilter_Status = 2
	GrpcStatusFilter_INVALID_ARGUMENT    GrpcStatusFilter_Status = 3
	GrpcStatusFilter_DEADLINE_EXCEEDED   GrpcStatusFilter_Status = 4
	GrpcStatusFilter_NOT_FOUND           GrpcStatusFilter_Status = 5
	GrpcStatusFilter_ALREADY_EXISTS      GrpcStatusFilter_Status = 6
	GrpcStatusFilter_PERMISSION_DENIED   GrpcStatusFilter_Status = 7
	GrpcStatusFilter_RESOURCE_EXHAUSTED  GrpcStatusFilter_Status = 8
	GrpcStatusFilter_FAILED_PRECONDITION GrpcStatusFilter_Status = 9
	GrpcStatusFilter_ABORTED             GrpcStatusFilter_Status = 10
	GrpcStatusFilter_OUT_OF_RANGE        GrpcStatusFilter_Status = 11
	GrpcStatusFilter_UNIMPLEMENTED       GrpcStatusFilter_Status = 12
	GrpcStatusFilter_INTERNAL            GrpcStatusFilter_Status = 13
	GrpcStatusFilter_UNAVAILABLE         GrpcStatusFilter_Status = 14
	GrpcStatusFilter_DATA_LOSS           GrpcStatusFilter_Status = 15
	GrpcStatusFilter_UNAUTHENTICATED     GrpcStatusFilter_Status = 16
)

func (GrpcStatusFilter_Status) Descriptor

func (GrpcStatusFilter_Status) Enum

func (GrpcStatusFilter_Status) Number

func (GrpcStatusFilter_Status) String

func (x GrpcStatusFilter_Status) String() string

func (GrpcStatusFilter_Status) Type

type GrpcStatusFilter_builder

type GrpcStatusFilter_builder struct {

	// Logs only responses that have any one of the gRPC statuses in this field.
	Statuses []GrpcStatusFilter_Status
	// If included and set to true, the filter will instead block all responses
	// with a gRPC status or inferred gRPC status enumerated in statuses, and
	// allow all other responses.
	Exclude bool
	// contains filtered or unexported fields
}

func (GrpcStatusFilter_builder) Build

type HeaderFilter

type HeaderFilter struct {

	// Only requests with a header which matches the specified HeaderMatcher will
	// pass the filter check.
	Header *v32.HeaderMatcher `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

Filters requests based on the presence or value of a request header.

func (*HeaderFilter) ClearHeader

func (x *HeaderFilter) ClearHeader()

func (*HeaderFilter) GetHeader

func (x *HeaderFilter) GetHeader() *v32.HeaderMatcher

func (*HeaderFilter) HasHeader

func (x *HeaderFilter) HasHeader() bool

func (*HeaderFilter) ProtoMessage

func (*HeaderFilter) ProtoMessage()

func (*HeaderFilter) ProtoReflect

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

func (*HeaderFilter) Reset

func (x *HeaderFilter) Reset()

func (*HeaderFilter) SetHeader

func (x *HeaderFilter) SetHeader(v *v32.HeaderMatcher)

func (*HeaderFilter) String

func (x *HeaderFilter) String() string

type HeaderFilter_builder

type HeaderFilter_builder struct {

	// Only requests with a header which matches the specified HeaderMatcher will
	// pass the filter check.
	Header *v32.HeaderMatcher
	// contains filtered or unexported fields
}

func (HeaderFilter_builder) Build

func (b0 HeaderFilter_builder) Build() *HeaderFilter

type LogTypeFilter

type LogTypeFilter struct {

	// Logs only records which their type is one of the types defined in this field.
	Types []v34.AccessLogType `protobuf:"varint,1,rep,packed,name=types,proto3,enum=envoy.data.accesslog.v3.AccessLogType" json:"types,omitempty"`
	// If this field is set to true, the filter will instead block all records
	// with a access log type in types field, and allow all other records.
	Exclude bool `protobuf:"varint,2,opt,name=exclude,proto3" json:"exclude,omitempty"`
	// contains filtered or unexported fields
}

Filters based on access log type.

func (*LogTypeFilter) GetExclude

func (x *LogTypeFilter) GetExclude() bool

func (*LogTypeFilter) GetTypes

func (x *LogTypeFilter) GetTypes() []v34.AccessLogType

func (*LogTypeFilter) ProtoMessage

func (*LogTypeFilter) ProtoMessage()

func (*LogTypeFilter) ProtoReflect

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

func (*LogTypeFilter) Reset

func (x *LogTypeFilter) Reset()

func (*LogTypeFilter) SetExclude

func (x *LogTypeFilter) SetExclude(v bool)

func (*LogTypeFilter) SetTypes

func (x *LogTypeFilter) SetTypes(v []v34.AccessLogType)

func (*LogTypeFilter) String

func (x *LogTypeFilter) String() string

type LogTypeFilter_builder

type LogTypeFilter_builder struct {

	// Logs only records which their type is one of the types defined in this field.
	Types []v34.AccessLogType
	// If this field is set to true, the filter will instead block all records
	// with a access log type in types field, and allow all other records.
	Exclude bool
	// contains filtered or unexported fields
}

func (LogTypeFilter_builder) Build

type MetadataFilter

type MetadataFilter struct {

	// Matcher to check metadata for specified value. For example, to match on the
	// access_log_hint metadata, set the filter to "envoy.common" and the path to
	// "access_log_hint", and the value to "true".
	Matcher *v33.MetadataMatcher `protobuf:"bytes,1,opt,name=matcher,proto3" json:"matcher,omitempty"`
	// Default result if the key does not exist in dynamic metadata: if unset or
	// true, then log; if false, then don't log.
	MatchIfKeyNotFound *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=match_if_key_not_found,json=matchIfKeyNotFound,proto3" json:"match_if_key_not_found,omitempty"`
	// contains filtered or unexported fields
}

Filters based on matching dynamic metadata. If the matcher path and key correspond to an existing key in dynamic metadata, the request is logged only if the matcher value is equal to the metadata value. If the matcher path and key *do not* correspond to an existing key in dynamic metadata, the request is logged only if match_if_key_not_found is "true" or unset.

func (*MetadataFilter) ClearMatchIfKeyNotFound

func (x *MetadataFilter) ClearMatchIfKeyNotFound()

func (*MetadataFilter) ClearMatcher

func (x *MetadataFilter) ClearMatcher()

func (*MetadataFilter) GetMatchIfKeyNotFound

func (x *MetadataFilter) GetMatchIfKeyNotFound() *wrapperspb.BoolValue

func (*MetadataFilter) GetMatcher

func (x *MetadataFilter) GetMatcher() *v33.MetadataMatcher

func (*MetadataFilter) HasMatchIfKeyNotFound

func (x *MetadataFilter) HasMatchIfKeyNotFound() bool

func (*MetadataFilter) HasMatcher

func (x *MetadataFilter) HasMatcher() bool

func (*MetadataFilter) ProtoMessage

func (*MetadataFilter) ProtoMessage()

func (*MetadataFilter) ProtoReflect

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

func (*MetadataFilter) Reset

func (x *MetadataFilter) Reset()

func (*MetadataFilter) SetMatchIfKeyNotFound

func (x *MetadataFilter) SetMatchIfKeyNotFound(v *wrapperspb.BoolValue)

func (*MetadataFilter) SetMatcher

func (x *MetadataFilter) SetMatcher(v *v33.MetadataMatcher)

func (*MetadataFilter) String

func (x *MetadataFilter) String() string

type MetadataFilter_builder

type MetadataFilter_builder struct {

	// Matcher to check metadata for specified value. For example, to match on the
	// access_log_hint metadata, set the filter to "envoy.common" and the path to
	// "access_log_hint", and the value to "true".
	Matcher *v33.MetadataMatcher
	// Default result if the key does not exist in dynamic metadata: if unset or
	// true, then log; if false, then don't log.
	MatchIfKeyNotFound *wrapperspb.BoolValue
	// contains filtered or unexported fields
}

func (MetadataFilter_builder) Build

type NotHealthCheckFilter

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

Filters for requests that are not health check requests. A health check request is marked by the health check filter.

func (*NotHealthCheckFilter) ProtoMessage

func (*NotHealthCheckFilter) ProtoMessage()

func (*NotHealthCheckFilter) ProtoReflect

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

func (*NotHealthCheckFilter) Reset

func (x *NotHealthCheckFilter) Reset()

func (*NotHealthCheckFilter) String

func (x *NotHealthCheckFilter) String() string

type NotHealthCheckFilter_builder

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

func (NotHealthCheckFilter_builder) Build

type OrFilter

type OrFilter struct {
	Filters []*AccessLogFilter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
	// contains filtered or unexported fields
}

Performs a logical “or” operation on the result of each individual filter. Filters are evaluated sequentially and if one of them returns true, the filter returns true immediately.

func (*OrFilter) GetFilters

func (x *OrFilter) GetFilters() []*AccessLogFilter

func (*OrFilter) ProtoMessage

func (*OrFilter) ProtoMessage()

func (*OrFilter) ProtoReflect

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

func (*OrFilter) Reset

func (x *OrFilter) Reset()

func (*OrFilter) SetFilters

func (x *OrFilter) SetFilters(v []*AccessLogFilter)

func (*OrFilter) String

func (x *OrFilter) String() string

type OrFilter_builder

type OrFilter_builder struct {
	Filters []*AccessLogFilter
	// contains filtered or unexported fields
}

func (OrFilter_builder) Build

func (b0 OrFilter_builder) Build() *OrFilter

type ResponseFlagFilter

type ResponseFlagFilter struct {

	// Only responses with the any of the flags listed in this field will be
	// logged. This field is optional. If it is not specified, then any response
	// flag will pass the filter check.
	Flags []string `protobuf:"bytes,1,rep,name=flags,proto3" json:"flags,omitempty"`
	// contains filtered or unexported fields
}

Filters requests that received responses with an Envoy response flag set. A list of the response flags can be found in the access log formatter :ref:`documentation<config_access_log_format_response_flags>`.

func (*ResponseFlagFilter) GetFlags

func (x *ResponseFlagFilter) GetFlags() []string

func (*ResponseFlagFilter) ProtoMessage

func (*ResponseFlagFilter) ProtoMessage()

func (*ResponseFlagFilter) ProtoReflect

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

func (*ResponseFlagFilter) Reset

func (x *ResponseFlagFilter) Reset()

func (*ResponseFlagFilter) SetFlags

func (x *ResponseFlagFilter) SetFlags(v []string)

func (*ResponseFlagFilter) String

func (x *ResponseFlagFilter) String() string

type ResponseFlagFilter_builder

type ResponseFlagFilter_builder struct {

	// Only responses with the any of the flags listed in this field will be
	// logged. This field is optional. If it is not specified, then any response
	// flag will pass the filter check.
	Flags []string
	// contains filtered or unexported fields
}

func (ResponseFlagFilter_builder) Build

type RuntimeFilter

type RuntimeFilter struct {

	// Runtime key to get an optional overridden numerator for use in the
	// “percent_sampled“ field. If found in runtime, this value will replace the
	// default numerator.
	RuntimeKey string `protobuf:"bytes,1,opt,name=runtime_key,json=runtimeKey,proto3" json:"runtime_key,omitempty"`
	// The default sampling percentage. If not specified, defaults to 0% with
	// denominator of 100.
	PercentSampled *v31.FractionalPercent `protobuf:"bytes,2,opt,name=percent_sampled,json=percentSampled,proto3" json:"percent_sampled,omitempty"`
	// By default, sampling pivots on the header
	// :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` being
	// present. If :ref:`x-request-id<config_http_conn_man_headers_x-request-id>`
	// is present, the filter will consistently sample across multiple hosts based
	// on the runtime key value and the value extracted from
	// :ref:`x-request-id<config_http_conn_man_headers_x-request-id>`. If it is
	// missing, or “use_independent_randomness“ is set to true, the filter will
	// randomly sample based on the runtime key value alone.
	// “use_independent_randomness“ can be used for logging kill switches within
	// complex nested :ref:`AndFilter
	// <envoy_v3_api_msg_config.accesslog.v3.AndFilter>` and :ref:`OrFilter
	// <envoy_v3_api_msg_config.accesslog.v3.OrFilter>` blocks that are easier to
	// reason about from a probability perspective (i.e., setting to true will
	// cause the filter to behave like an independent random variable when
	// composed within logical operator filters).
	UseIndependentRandomness bool `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

Filters for random sampling of requests.

func (*RuntimeFilter) ClearPercentSampled

func (x *RuntimeFilter) ClearPercentSampled()

func (*RuntimeFilter) GetPercentSampled

func (x *RuntimeFilter) GetPercentSampled() *v31.FractionalPercent

func (*RuntimeFilter) GetRuntimeKey

func (x *RuntimeFilter) GetRuntimeKey() string

func (*RuntimeFilter) GetUseIndependentRandomness

func (x *RuntimeFilter) GetUseIndependentRandomness() bool

func (*RuntimeFilter) HasPercentSampled

func (x *RuntimeFilter) HasPercentSampled() bool

func (*RuntimeFilter) ProtoMessage

func (*RuntimeFilter) ProtoMessage()

func (*RuntimeFilter) ProtoReflect

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

func (*RuntimeFilter) Reset

func (x *RuntimeFilter) Reset()

func (*RuntimeFilter) SetPercentSampled

func (x *RuntimeFilter) SetPercentSampled(v *v31.FractionalPercent)

func (*RuntimeFilter) SetRuntimeKey

func (x *RuntimeFilter) SetRuntimeKey(v string)

func (*RuntimeFilter) SetUseIndependentRandomness

func (x *RuntimeFilter) SetUseIndependentRandomness(v bool)

func (*RuntimeFilter) String

func (x *RuntimeFilter) String() string

type RuntimeFilter_builder

type RuntimeFilter_builder struct {

	// Runtime key to get an optional overridden numerator for use in the
	// “percent_sampled“ field. If found in runtime, this value will replace the
	// default numerator.
	RuntimeKey string
	// The default sampling percentage. If not specified, defaults to 0% with
	// denominator of 100.
	PercentSampled *v31.FractionalPercent
	// By default, sampling pivots on the header
	// :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` being
	// present. If :ref:`x-request-id<config_http_conn_man_headers_x-request-id>`
	// is present, the filter will consistently sample across multiple hosts based
	// on the runtime key value and the value extracted from
	// :ref:`x-request-id<config_http_conn_man_headers_x-request-id>`. If it is
	// missing, or “use_independent_randomness“ is set to true, the filter will
	// randomly sample based on the runtime key value alone.
	// “use_independent_randomness“ can be used for logging kill switches within
	// complex nested :ref:`AndFilter
	// <envoy_v3_api_msg_config.accesslog.v3.AndFilter>` and :ref:`OrFilter
	// <envoy_v3_api_msg_config.accesslog.v3.OrFilter>` blocks that are easier to
	// reason about from a probability perspective (i.e., setting to true will
	// cause the filter to behave like an independent random variable when
	// composed within logical operator filters).
	UseIndependentRandomness bool
	// contains filtered or unexported fields
}

func (RuntimeFilter_builder) Build

type StatusCodeFilter

type StatusCodeFilter struct {

	// Comparison.
	Comparison *ComparisonFilter `protobuf:"bytes,1,opt,name=comparison,proto3" json:"comparison,omitempty"`
	// contains filtered or unexported fields
}

Filters on HTTP response/status code.

func (*StatusCodeFilter) ClearComparison

func (x *StatusCodeFilter) ClearComparison()

func (*StatusCodeFilter) GetComparison

func (x *StatusCodeFilter) GetComparison() *ComparisonFilter

func (*StatusCodeFilter) HasComparison

func (x *StatusCodeFilter) HasComparison() bool

func (*StatusCodeFilter) ProtoMessage

func (*StatusCodeFilter) ProtoMessage()

func (*StatusCodeFilter) ProtoReflect

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

func (*StatusCodeFilter) Reset

func (x *StatusCodeFilter) Reset()

func (*StatusCodeFilter) SetComparison

func (x *StatusCodeFilter) SetComparison(v *ComparisonFilter)

func (*StatusCodeFilter) String

func (x *StatusCodeFilter) String() string

type StatusCodeFilter_builder

type StatusCodeFilter_builder struct {

	// Comparison.
	Comparison *ComparisonFilter
	// contains filtered or unexported fields
}

func (StatusCodeFilter_builder) Build

type TraceableFilter

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

Filters for requests that are traceable. See the tracing overview for more information on how a request becomes traceable.

func (*TraceableFilter) ProtoMessage

func (*TraceableFilter) ProtoMessage()

func (*TraceableFilter) ProtoReflect

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

func (*TraceableFilter) Reset

func (x *TraceableFilter) Reset()

func (*TraceableFilter) String

func (x *TraceableFilter) String() string

type TraceableFilter_builder

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

func (TraceableFilter_builder) Build

Jump to

Keyboard shortcuts

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