on_demandv3

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: Apache-2.0 Imports: 20 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_filters_http_on_demand_v3_on_demand_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type OnDemand

type OnDemand struct {

	// An optional configuration for on-demand cluster discovery
	// service. If not specified, the on-demand cluster discovery will
	// be disabled. When it's specified, the filter will pause the
	// request to an unknown cluster and will begin a cluster discovery
	// process. When the discovery is finished (successfully or not), the
	// request will be resumed for further processing.
	Odcds *OnDemandCds `protobuf:"bytes,1,opt,name=odcds,proto3" json:"odcds,omitempty"`
	// contains filtered or unexported fields
}

On Demand Discovery filter config.

func (*OnDemand) Descriptor deprecated

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

Deprecated: Use OnDemand.ProtoReflect.Descriptor instead.

func (*OnDemand) GetOdcds added in v0.10.2

func (x *OnDemand) GetOdcds() *OnDemandCds

func (*OnDemand) ProtoMessage

func (*OnDemand) ProtoMessage()

func (*OnDemand) ProtoReflect added in v0.9.6

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

func (*OnDemand) Reset

func (x *OnDemand) Reset()

func (*OnDemand) String

func (x *OnDemand) String() string

func (*OnDemand) Validate

func (m *OnDemand) Validate() error

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

func (m *OnDemand) ValidateAll() error

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

type OnDemandCds added in v0.10.2

type OnDemandCds struct {

	// A configuration source for the service that will be used for
	// on-demand cluster discovery.
	Source *v3.ConfigSource `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// xdstp:// resource locator for on-demand cluster collection.
	ResourcesLocator string `protobuf:"bytes,2,opt,name=resources_locator,json=resourcesLocator,proto3" json:"resources_locator,omitempty"`
	// The timeout for on demand cluster lookup. If not set, defaults to 5 seconds.
	Timeout *duration.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

Configuration of on-demand CDS.

func (*OnDemandCds) Descriptor deprecated added in v0.10.2

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

Deprecated: Use OnDemandCds.ProtoReflect.Descriptor instead.

func (*OnDemandCds) GetResourcesLocator added in v0.10.2

func (x *OnDemandCds) GetResourcesLocator() string

func (*OnDemandCds) GetSource added in v0.10.2

func (x *OnDemandCds) GetSource() *v3.ConfigSource

func (*OnDemandCds) GetTimeout added in v0.10.2

func (x *OnDemandCds) GetTimeout() *duration.Duration

func (*OnDemandCds) ProtoMessage added in v0.10.2

func (*OnDemandCds) ProtoMessage()

func (*OnDemandCds) ProtoReflect added in v0.10.2

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

func (*OnDemandCds) Reset added in v0.10.2

func (x *OnDemandCds) Reset()

func (*OnDemandCds) String added in v0.10.2

func (x *OnDemandCds) String() string

func (*OnDemandCds) Validate added in v0.10.2

func (m *OnDemandCds) Validate() error

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

func (m *OnDemandCds) ValidateAll() error

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

type OnDemandCdsMultiError added in v0.10.2

type OnDemandCdsMultiError []error

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

func (OnDemandCdsMultiError) AllErrors added in v0.10.2

func (m OnDemandCdsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OnDemandCdsMultiError) Error added in v0.10.2

func (m OnDemandCdsMultiError) Error() string

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

type OnDemandCdsValidationError added in v0.10.2

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

OnDemandCdsValidationError is the validation error returned by OnDemandCds.Validate if the designated constraints aren't met.

func (OnDemandCdsValidationError) Cause added in v0.10.2

Cause function returns cause value.

func (OnDemandCdsValidationError) Error added in v0.10.2

Error satisfies the builtin error interface

func (OnDemandCdsValidationError) ErrorName added in v0.10.2

func (e OnDemandCdsValidationError) ErrorName() string

ErrorName returns error name.

func (OnDemandCdsValidationError) Field added in v0.10.2

Field function returns field value.

func (OnDemandCdsValidationError) Key added in v0.10.2

Key function returns key value.

func (OnDemandCdsValidationError) Reason added in v0.10.2

Reason function returns reason value.

type OnDemandMultiError added in v0.10.0

type OnDemandMultiError []error

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

func (OnDemandMultiError) AllErrors added in v0.10.0

func (m OnDemandMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OnDemandMultiError) Error added in v0.10.0

func (m OnDemandMultiError) Error() string

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

type OnDemandValidationError

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

OnDemandValidationError is the validation error returned by OnDemand.Validate if the designated constraints aren't met.

func (OnDemandValidationError) Cause

func (e OnDemandValidationError) Cause() error

Cause function returns cause value.

func (OnDemandValidationError) Error

func (e OnDemandValidationError) Error() string

Error satisfies the builtin error interface

func (OnDemandValidationError) ErrorName

func (e OnDemandValidationError) ErrorName() string

ErrorName returns error name.

func (OnDemandValidationError) Field

func (e OnDemandValidationError) Field() string

Field function returns field value.

func (OnDemandValidationError) Key

func (e OnDemandValidationError) Key() bool

Key function returns key value.

func (OnDemandValidationError) Reason

func (e OnDemandValidationError) Reason() string

Reason function returns reason value.

type PerRouteConfig added in v0.10.2

type PerRouteConfig struct {

	// An optional configuration for on-demand cluster discovery
	// service. If not specified, the on-demand cluster discovery will
	// be disabled. When it's specified, the filter will pause the
	// request to an unknown cluster and will begin a cluster discovery
	// process. When the discovery is finished (successfully or not), the
	// request will be resumed for further processing.
	Odcds *OnDemandCds `protobuf:"bytes,1,opt,name=odcds,proto3" json:"odcds,omitempty"`
	// contains filtered or unexported fields
}

Per-route configuration for On Demand Discovery.

func (*PerRouteConfig) Descriptor deprecated added in v0.10.2

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

Deprecated: Use PerRouteConfig.ProtoReflect.Descriptor instead.

func (*PerRouteConfig) GetOdcds added in v0.10.2

func (x *PerRouteConfig) GetOdcds() *OnDemandCds

func (*PerRouteConfig) ProtoMessage added in v0.10.2

func (*PerRouteConfig) ProtoMessage()

func (*PerRouteConfig) ProtoReflect added in v0.10.2

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

func (*PerRouteConfig) Reset added in v0.10.2

func (x *PerRouteConfig) Reset()

func (*PerRouteConfig) String added in v0.10.2

func (x *PerRouteConfig) String() string

func (*PerRouteConfig) Validate added in v0.10.2

func (m *PerRouteConfig) Validate() error

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

func (m *PerRouteConfig) ValidateAll() error

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

type PerRouteConfigMultiError added in v0.10.2

type PerRouteConfigMultiError []error

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

func (PerRouteConfigMultiError) AllErrors added in v0.10.2

func (m PerRouteConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PerRouteConfigMultiError) Error added in v0.10.2

func (m PerRouteConfigMultiError) Error() string

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

type PerRouteConfigValidationError added in v0.10.2

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

PerRouteConfigValidationError is the validation error returned by PerRouteConfig.Validate if the designated constraints aren't met.

func (PerRouteConfigValidationError) Cause added in v0.10.2

Cause function returns cause value.

func (PerRouteConfigValidationError) Error added in v0.10.2

Error satisfies the builtin error interface

func (PerRouteConfigValidationError) ErrorName added in v0.10.2

func (e PerRouteConfigValidationError) ErrorName() string

ErrorName returns error name.

func (PerRouteConfigValidationError) Field added in v0.10.2

Field function returns field value.

func (PerRouteConfigValidationError) Key added in v0.10.2

Key function returns key value.

func (PerRouteConfigValidationError) Reason added in v0.10.2

Reason function returns reason value.

Jump to

Keyboard shortcuts

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