Documentation ¶
Index ¶
- Variables
- type OnDemand
- func (*OnDemand) Descriptor() ([]byte, []int)deprecated
- func (x *OnDemand) GetOdcds() *OnDemandCds
- func (*OnDemand) ProtoMessage()
- func (x *OnDemand) ProtoReflect() protoreflect.Message
- func (x *OnDemand) Reset()
- func (x *OnDemand) String() string
- func (m *OnDemand) Validate() error
- func (m *OnDemand) ValidateAll() error
- type OnDemandCds
- func (*OnDemandCds) Descriptor() ([]byte, []int)deprecated
- func (x *OnDemandCds) GetResourcesLocator() string
- func (x *OnDemandCds) GetSource() *v3.ConfigSource
- func (x *OnDemandCds) GetTimeout() *duration.Duration
- func (*OnDemandCds) ProtoMessage()
- func (x *OnDemandCds) ProtoReflect() protoreflect.Message
- func (x *OnDemandCds) Reset()
- func (x *OnDemandCds) String() string
- func (m *OnDemandCds) Validate() error
- func (m *OnDemandCds) ValidateAll() error
- type OnDemandCdsMultiError
- type OnDemandCdsValidationError
- func (e OnDemandCdsValidationError) Cause() error
- func (e OnDemandCdsValidationError) Error() string
- func (e OnDemandCdsValidationError) ErrorName() string
- func (e OnDemandCdsValidationError) Field() string
- func (e OnDemandCdsValidationError) Key() bool
- func (e OnDemandCdsValidationError) Reason() string
- type OnDemandMultiError
- type OnDemandValidationError
- type PerRouteConfig
- func (*PerRouteConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PerRouteConfig) GetOdcds() *OnDemandCds
- func (*PerRouteConfig) ProtoMessage()
- func (x *PerRouteConfig) ProtoReflect() protoreflect.Message
- func (x *PerRouteConfig) Reset()
- func (x *PerRouteConfig) String() string
- func (m *PerRouteConfig) Validate() error
- func (m *PerRouteConfig) ValidateAll() error
- type PerRouteConfigMultiError
- type PerRouteConfigValidationError
- func (e PerRouteConfigValidationError) Cause() error
- func (e PerRouteConfigValidationError) Error() string
- func (e PerRouteConfigValidationError) ErrorName() string
- func (e PerRouteConfigValidationError) Field() string
- func (e PerRouteConfigValidationError) Key() bool
- func (e PerRouteConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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) GetOdcds ¶ added in v3.2.0
func (x *OnDemand) GetOdcds() *OnDemandCds
func (*OnDemand) ProtoMessage ¶
func (*OnDemand) ProtoMessage()
func (*OnDemand) ProtoReflect ¶
func (x *OnDemand) ProtoReflect() protoreflect.Message
func (*OnDemand) Validate ¶
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 ¶
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 v3.2.0
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
v3.2.0
func (*OnDemandCds) Descriptor() ([]byte, []int)
Deprecated: Use OnDemandCds.ProtoReflect.Descriptor instead.
func (*OnDemandCds) GetResourcesLocator ¶ added in v3.2.0
func (x *OnDemandCds) GetResourcesLocator() string
func (*OnDemandCds) GetSource ¶ added in v3.2.0
func (x *OnDemandCds) GetSource() *v3.ConfigSource
func (*OnDemandCds) GetTimeout ¶ added in v3.2.0
func (x *OnDemandCds) GetTimeout() *duration.Duration
func (*OnDemandCds) ProtoMessage ¶ added in v3.2.0
func (*OnDemandCds) ProtoMessage()
func (*OnDemandCds) ProtoReflect ¶ added in v3.2.0
func (x *OnDemandCds) ProtoReflect() protoreflect.Message
func (*OnDemandCds) Reset ¶ added in v3.2.0
func (x *OnDemandCds) Reset()
func (*OnDemandCds) String ¶ added in v3.2.0
func (x *OnDemandCds) String() string
func (*OnDemandCds) Validate ¶ added in v3.2.0
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 v3.2.0
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 v3.2.0
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 v3.2.0
func (m OnDemandCdsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OnDemandCdsMultiError) Error ¶ added in v3.2.0
func (m OnDemandCdsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OnDemandCdsValidationError ¶ added in v3.2.0
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 v3.2.0
func (e OnDemandCdsValidationError) Cause() error
Cause function returns cause value.
func (OnDemandCdsValidationError) Error ¶ added in v3.2.0
func (e OnDemandCdsValidationError) Error() string
Error satisfies the builtin error interface
func (OnDemandCdsValidationError) ErrorName ¶ added in v3.2.0
func (e OnDemandCdsValidationError) ErrorName() string
ErrorName returns error name.
func (OnDemandCdsValidationError) Field ¶ added in v3.2.0
func (e OnDemandCdsValidationError) Field() string
Field function returns field value.
func (OnDemandCdsValidationError) Key ¶ added in v3.2.0
func (e OnDemandCdsValidationError) Key() bool
Key function returns key value.
func (OnDemandCdsValidationError) Reason ¶ added in v3.2.0
func (e OnDemandCdsValidationError) Reason() string
Reason function returns reason value.
type OnDemandMultiError ¶
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 ¶
func (m OnDemandMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OnDemandMultiError) Error ¶
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 v3.2.0
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
v3.2.0
func (*PerRouteConfig) Descriptor() ([]byte, []int)
Deprecated: Use PerRouteConfig.ProtoReflect.Descriptor instead.
func (*PerRouteConfig) GetOdcds ¶ added in v3.2.0
func (x *PerRouteConfig) GetOdcds() *OnDemandCds
func (*PerRouteConfig) ProtoMessage ¶ added in v3.2.0
func (*PerRouteConfig) ProtoMessage()
func (*PerRouteConfig) ProtoReflect ¶ added in v3.2.0
func (x *PerRouteConfig) ProtoReflect() protoreflect.Message
func (*PerRouteConfig) Reset ¶ added in v3.2.0
func (x *PerRouteConfig) Reset()
func (*PerRouteConfig) String ¶ added in v3.2.0
func (x *PerRouteConfig) String() string
func (*PerRouteConfig) Validate ¶ added in v3.2.0
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 v3.2.0
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 v3.2.0
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 v3.2.0
func (m PerRouteConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PerRouteConfigMultiError) Error ¶ added in v3.2.0
func (m PerRouteConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PerRouteConfigValidationError ¶ added in v3.2.0
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 v3.2.0
func (e PerRouteConfigValidationError) Cause() error
Cause function returns cause value.
func (PerRouteConfigValidationError) Error ¶ added in v3.2.0
func (e PerRouteConfigValidationError) Error() string
Error satisfies the builtin error interface
func (PerRouteConfigValidationError) ErrorName ¶ added in v3.2.0
func (e PerRouteConfigValidationError) ErrorName() string
ErrorName returns error name.
func (PerRouteConfigValidationError) Field ¶ added in v3.2.0
func (e PerRouteConfigValidationError) Field() string
Field function returns field value.
func (PerRouteConfigValidationError) Key ¶ added in v3.2.0
func (e PerRouteConfigValidationError) Key() bool
Key function returns key value.
func (PerRouteConfigValidationError) Reason ¶ added in v3.2.0
func (e PerRouteConfigValidationError) Reason() string
Reason function returns reason value.