listenerv2

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_config_listener_v2_api_listener_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ApiListener

type ApiListener struct {

	// The type in this field determines the type of API listener. At present, the following
	// types are supported:
	// envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager (HTTP)
	// [#next-major-version: In the v3 API, replace this Any field with a oneof containing the
	// specific config message for each type of API listener. We could not do this in v2 because
	// it would have caused circular dependencies for go protos: lds.proto depends on this file,
	// and http_connection_manager.proto depends on rds.proto, which is in the same directory as
	// lds.proto, so lds.proto cannot depend on this file.]
	ApiListener *anypb.Any `protobuf:"bytes,1,opt,name=api_listener,json=apiListener,proto3" json:"api_listener,omitempty"`
	// contains filtered or unexported fields
}

Describes a type of API listener, which is used in non-proxy clients. The type of API exposed to the non-proxy application depends on the type of API listener.

func (*ApiListener) Descriptor deprecated

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

Deprecated: Use ApiListener.ProtoReflect.Descriptor instead.

func (*ApiListener) GetApiListener

func (x *ApiListener) GetApiListener() *anypb.Any

func (*ApiListener) ProtoMessage

func (*ApiListener) ProtoMessage()

func (*ApiListener) ProtoReflect added in v0.9.6

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

func (*ApiListener) Reset

func (x *ApiListener) Reset()

func (*ApiListener) String

func (x *ApiListener) String() string

func (*ApiListener) Validate

func (m *ApiListener) Validate() error

Validate checks the field values on ApiListener 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 (*ApiListener) ValidateAll added in v0.10.0

func (m *ApiListener) ValidateAll() error

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

type ApiListenerMultiError added in v0.10.0

type ApiListenerMultiError []error

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

func (ApiListenerMultiError) AllErrors added in v0.10.0

func (m ApiListenerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApiListenerMultiError) Error added in v0.10.0

func (m ApiListenerMultiError) Error() string

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

type ApiListenerValidationError

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

ApiListenerValidationError is the validation error returned by ApiListener.Validate if the designated constraints aren't met.

func (ApiListenerValidationError) Cause

Cause function returns cause value.

func (ApiListenerValidationError) Error

Error satisfies the builtin error interface

func (ApiListenerValidationError) ErrorName

func (e ApiListenerValidationError) ErrorName() string

ErrorName returns error name.

func (ApiListenerValidationError) Field

Field function returns field value.

func (ApiListenerValidationError) Key

Key function returns key value.

func (ApiListenerValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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