package thriftv3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/health_checkers/thrift/v3"

Index

Variables

var File_envoy_extensions_health_checkers_thrift_v3_thrift_proto protoreflect.FileDescriptor

Types

type Thrift

type Thrift struct {

	// Specifies the method name that will be set on each health check request dispatched to an upstream host.
	// Note that method name is case sensitive.
	MethodName string `protobuf:"bytes,1,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
	// Configures the transport type to be used with the health checks. Note that
	// :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`
	// is not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
	// since it's possible to set to :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`.
	// [#extension-category: envoy.filters.network]
	Transport v3.TransportType `protobuf:"varint,2,opt,name=transport,proto3,enum=envoy.extensions.filters.network.thrift_proxy.v3.TransportType" json:"transport,omitempty"`
	// Configures the protocol type to be used with the health checks. Note that
	// :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
	// and :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`
	// are not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>`
	// since it's possible to set to :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>`
	// or :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`.
	Protocol v3.ProtocolType `protobuf:"varint,3,opt,name=protocol,proto3,enum=envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType" json:"protocol,omitempty"`
	// contains filtered or unexported fields
}

func (*Thrift) Descriptor

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

Deprecated: Use Thrift.ProtoReflect.Descriptor instead.

func (*Thrift) GetMethodName

func (x *Thrift) GetMethodName() string

func (*Thrift) GetProtocol

func (x *Thrift) GetProtocol() v3.ProtocolType

func (*Thrift) GetTransport

func (x *Thrift) GetTransport() v3.TransportType

func (*Thrift) ProtoMessage

func (*Thrift) ProtoMessage()

func (*Thrift) ProtoReflect

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

func (*Thrift) Reset

func (x *Thrift) Reset()

func (*Thrift) String

func (x *Thrift) String() string

func (*Thrift) Validate

func (m *Thrift) Validate() error

Validate checks the field values on Thrift 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 (*Thrift) ValidateAll

func (m *Thrift) ValidateAll() error

ValidateAll checks the field values on Thrift 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 ThriftMultiError, or nil if none found.

type ThriftMultiError

type ThriftMultiError []error

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

func (ThriftMultiError) AllErrors

func (m ThriftMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ThriftMultiError) Error

func (m ThriftMultiError) Error() string

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

type ThriftValidationError

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

ThriftValidationError is the validation error returned by Thrift.Validate if the designated constraints aren't met.

func (ThriftValidationError) Cause

func (e ThriftValidationError) Cause() error

Cause function returns cause value.

func (ThriftValidationError) Error

func (e ThriftValidationError) Error() string

Error satisfies the builtin error interface

func (ThriftValidationError) ErrorName

func (e ThriftValidationError) ErrorName() string

ErrorName returns error name.

func (ThriftValidationError) Field

func (e ThriftValidationError) Field() string

Field function returns field value.

func (ThriftValidationError) Key

func (e ThriftValidationError) Key() bool

Key function returns key value.

func (ThriftValidationError) Reason

func (e ThriftValidationError) Reason() string

Reason function returns reason value.

Source Files

thrift.pb.go thrift.pb.validate.go

Version
v1.32.4 (latest)
Published
Feb 3, 2025
Platform
linux/amd64
Imports
19 packages
Last checked
1 day ago

Tools for package owners.