Documentation ¶
Index ¶
- Variables
- type CdnLoopConfig
- func (*CdnLoopConfig) Descriptor() ([]byte, []int)deprecated
- func (x *CdnLoopConfig) GetCdnId() string
- func (x *CdnLoopConfig) GetMaxAllowedOccurrences() uint32
- func (*CdnLoopConfig) ProtoMessage()
- func (x *CdnLoopConfig) ProtoReflect() protoreflect.Message
- func (x *CdnLoopConfig) Reset()
- func (x *CdnLoopConfig) String() string
- func (m *CdnLoopConfig) Validate() error
- func (m *CdnLoopConfig) ValidateAll() error
- type CdnLoopConfigMultiError
- type CdnLoopConfigValidationError
- func (e CdnLoopConfigValidationError) Cause() error
- func (e CdnLoopConfigValidationError) Error() string
- func (e CdnLoopConfigValidationError) ErrorName() string
- func (e CdnLoopConfigValidationError) Field() string
- func (e CdnLoopConfigValidationError) Key() bool
- func (e CdnLoopConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_filters_http_cdn_loop_v3_cdn_loop_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CdnLoopConfig ¶
type CdnLoopConfig struct { // The CDN identifier to use for loop checks and to append to the // CDN-Loop header. // // RFC 8586 calls this the cdn-id. The cdn-id can either be a // pseudonym or hostname the CDN is in control of. // // cdn_id must not be empty. CdnId string `protobuf:"bytes,1,opt,name=cdn_id,json=cdnId,proto3" json:"cdn_id,omitempty"` // The maximum allowed count of cdn_id in the downstream CDN-Loop // request header. // // The default of 0 means a request can transit the CdnLoopFilter // once. A value of 1 means that a request can transit the // CdnLoopFilter twice and so on. MaxAllowedOccurrences uint32 `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
CDN-Loop Header filter config. See the :ref:`configuration overview <config_http_filters_cdn_loop>` for more information.
func (*CdnLoopConfig) Descriptor
deprecated
func (*CdnLoopConfig) Descriptor() ([]byte, []int)
Deprecated: Use CdnLoopConfig.ProtoReflect.Descriptor instead.
func (*CdnLoopConfig) GetCdnId ¶
func (x *CdnLoopConfig) GetCdnId() string
func (*CdnLoopConfig) GetMaxAllowedOccurrences ¶
func (x *CdnLoopConfig) GetMaxAllowedOccurrences() uint32
func (*CdnLoopConfig) ProtoMessage ¶
func (*CdnLoopConfig) ProtoMessage()
func (*CdnLoopConfig) ProtoReflect ¶
func (x *CdnLoopConfig) ProtoReflect() protoreflect.Message
func (*CdnLoopConfig) Reset ¶
func (x *CdnLoopConfig) Reset()
func (*CdnLoopConfig) String ¶
func (x *CdnLoopConfig) String() string
func (*CdnLoopConfig) Validate ¶
func (m *CdnLoopConfig) Validate() error
Validate checks the field values on CdnLoopConfig 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 (*CdnLoopConfig) ValidateAll ¶
func (m *CdnLoopConfig) ValidateAll() error
ValidateAll checks the field values on CdnLoopConfig 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 CdnLoopConfigMultiError, or nil if none found.
type CdnLoopConfigMultiError ¶
type CdnLoopConfigMultiError []error
CdnLoopConfigMultiError is an error wrapping multiple validation errors returned by CdnLoopConfig.ValidateAll() if the designated constraints aren't met.
func (CdnLoopConfigMultiError) AllErrors ¶
func (m CdnLoopConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CdnLoopConfigMultiError) Error ¶
func (m CdnLoopConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CdnLoopConfigValidationError ¶
type CdnLoopConfigValidationError struct {
// contains filtered or unexported fields
}
CdnLoopConfigValidationError is the validation error returned by CdnLoopConfig.Validate if the designated constraints aren't met.
func (CdnLoopConfigValidationError) Cause ¶
func (e CdnLoopConfigValidationError) Cause() error
Cause function returns cause value.
func (CdnLoopConfigValidationError) Error ¶
func (e CdnLoopConfigValidationError) Error() string
Error satisfies the builtin error interface
func (CdnLoopConfigValidationError) ErrorName ¶
func (e CdnLoopConfigValidationError) ErrorName() string
ErrorName returns error name.
func (CdnLoopConfigValidationError) Field ¶
func (e CdnLoopConfigValidationError) Field() string
Field function returns field value.
func (CdnLoopConfigValidationError) Key ¶
func (e CdnLoopConfigValidationError) Key() bool
Key function returns key value.
func (CdnLoopConfigValidationError) Reason ¶
func (e CdnLoopConfigValidationError) Reason() string
Reason function returns reason value.