Documentation ¶
Index ¶
- Variables
- type ChecksumConfig
- func (*ChecksumConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ChecksumConfig) GetChecksums() []*ChecksumConfig_Checksum
- func (x *ChecksumConfig) GetRejectUnmatched() bool
- func (*ChecksumConfig) ProtoMessage()
- func (x *ChecksumConfig) ProtoReflect() protoreflect.Message
- func (x *ChecksumConfig) Reset()
- func (x *ChecksumConfig) String() string
- func (m *ChecksumConfig) Validate() error
- func (m *ChecksumConfig) ValidateAll() error
- type ChecksumConfigMultiError
- type ChecksumConfigValidationError
- func (e ChecksumConfigValidationError) Cause() error
- func (e ChecksumConfigValidationError) Error() string
- func (e ChecksumConfigValidationError) ErrorName() string
- func (e ChecksumConfigValidationError) Field() string
- func (e ChecksumConfigValidationError) Key() bool
- func (e ChecksumConfigValidationError) Reason() string
- type ChecksumConfig_Checksum
- func (*ChecksumConfig_Checksum) Descriptor() ([]byte, []int)deprecated
- func (m *ChecksumConfig_Checksum) GetMatcher() isChecksumConfig_Checksum_Matcher
- func (x *ChecksumConfig_Checksum) GetPathMatcher() *v3.StringMatcher
- func (x *ChecksumConfig_Checksum) GetSha256() string
- func (*ChecksumConfig_Checksum) ProtoMessage()
- func (x *ChecksumConfig_Checksum) ProtoReflect() protoreflect.Message
- func (x *ChecksumConfig_Checksum) Reset()
- func (x *ChecksumConfig_Checksum) String() string
- func (m *ChecksumConfig_Checksum) Validate() error
- func (m *ChecksumConfig_Checksum) ValidateAll() error
- type ChecksumConfig_ChecksumMultiError
- type ChecksumConfig_ChecksumValidationError
- func (e ChecksumConfig_ChecksumValidationError) Cause() error
- func (e ChecksumConfig_ChecksumValidationError) Error() string
- func (e ChecksumConfig_ChecksumValidationError) ErrorName() string
- func (e ChecksumConfig_ChecksumValidationError) Field() string
- func (e ChecksumConfig_ChecksumValidationError) Key() bool
- func (e ChecksumConfig_ChecksumValidationError) Reason() string
- type ChecksumConfig_Checksum_PathMatcher
Constants ¶
This section is empty.
Variables ¶
var File_contrib_envoy_extensions_filters_http_checksum_v3alpha_checksum_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ChecksumConfig ¶
type ChecksumConfig struct { // A set of matcher and checksum pairs for which, if a path matching “path_matcher“ // is requested and the checksum of the response body does not match the “sha256“, the // response will be replaced with a 403 Forbidden status. // // If multiple matchers match the same path, the first to match takes precedence. Checksums []*ChecksumConfig_Checksum `protobuf:"bytes,1,rep,name=checksums,proto3" json:"checksums,omitempty"` // If a request doesn't match any of the specified checksum paths and reject_unmatched is // true, the request is rejected immediately with 403 Forbidden. RejectUnmatched bool `protobuf:"varint,2,opt,name=reject_unmatched,json=rejectUnmatched,proto3" json:"reject_unmatched,omitempty"` // contains filtered or unexported fields }
func (*ChecksumConfig) Descriptor
deprecated
func (*ChecksumConfig) Descriptor() ([]byte, []int)
Deprecated: Use ChecksumConfig.ProtoReflect.Descriptor instead.
func (*ChecksumConfig) GetChecksums ¶
func (x *ChecksumConfig) GetChecksums() []*ChecksumConfig_Checksum
func (*ChecksumConfig) GetRejectUnmatched ¶
func (x *ChecksumConfig) GetRejectUnmatched() bool
func (*ChecksumConfig) ProtoMessage ¶
func (*ChecksumConfig) ProtoMessage()
func (*ChecksumConfig) ProtoReflect ¶
func (x *ChecksumConfig) ProtoReflect() protoreflect.Message
func (*ChecksumConfig) Reset ¶
func (x *ChecksumConfig) Reset()
func (*ChecksumConfig) String ¶
func (x *ChecksumConfig) String() string
func (*ChecksumConfig) Validate ¶
func (m *ChecksumConfig) Validate() error
Validate checks the field values on ChecksumConfig 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 (*ChecksumConfig) ValidateAll ¶
func (m *ChecksumConfig) ValidateAll() error
ValidateAll checks the field values on ChecksumConfig 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 ChecksumConfigMultiError, or nil if none found.
type ChecksumConfigMultiError ¶
type ChecksumConfigMultiError []error
ChecksumConfigMultiError is an error wrapping multiple validation errors returned by ChecksumConfig.ValidateAll() if the designated constraints aren't met.
func (ChecksumConfigMultiError) AllErrors ¶
func (m ChecksumConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ChecksumConfigMultiError) Error ¶
func (m ChecksumConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ChecksumConfigValidationError ¶
type ChecksumConfigValidationError struct {
// contains filtered or unexported fields
}
ChecksumConfigValidationError is the validation error returned by ChecksumConfig.Validate if the designated constraints aren't met.
func (ChecksumConfigValidationError) Cause ¶
func (e ChecksumConfigValidationError) Cause() error
Cause function returns cause value.
func (ChecksumConfigValidationError) Error ¶
func (e ChecksumConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ChecksumConfigValidationError) ErrorName ¶
func (e ChecksumConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ChecksumConfigValidationError) Field ¶
func (e ChecksumConfigValidationError) Field() string
Field function returns field value.
func (ChecksumConfigValidationError) Key ¶
func (e ChecksumConfigValidationError) Key() bool
Key function returns key value.
func (ChecksumConfigValidationError) Reason ¶
func (e ChecksumConfigValidationError) Reason() string
Reason function returns reason value.
type ChecksumConfig_Checksum ¶
type ChecksumConfig_Checksum struct { // Types that are assignable to Matcher: // // *ChecksumConfig_Checksum_PathMatcher Matcher isChecksumConfig_Checksum_Matcher `protobuf_oneof:"matcher"` // A hex-encoded sha256 string required to match the sha256sum of the response body // of the path specified in the “path_matcher“ field. Sha256 string `protobuf:"bytes,2,opt,name=sha256,proto3" json:"sha256,omitempty"` // contains filtered or unexported fields }
func (*ChecksumConfig_Checksum) Descriptor
deprecated
func (*ChecksumConfig_Checksum) Descriptor() ([]byte, []int)
Deprecated: Use ChecksumConfig_Checksum.ProtoReflect.Descriptor instead.
func (*ChecksumConfig_Checksum) GetMatcher ¶
func (m *ChecksumConfig_Checksum) GetMatcher() isChecksumConfig_Checksum_Matcher
func (*ChecksumConfig_Checksum) GetPathMatcher ¶
func (x *ChecksumConfig_Checksum) GetPathMatcher() *v3.StringMatcher
func (*ChecksumConfig_Checksum) GetSha256 ¶
func (x *ChecksumConfig_Checksum) GetSha256() string
func (*ChecksumConfig_Checksum) ProtoMessage ¶
func (*ChecksumConfig_Checksum) ProtoMessage()
func (*ChecksumConfig_Checksum) ProtoReflect ¶
func (x *ChecksumConfig_Checksum) ProtoReflect() protoreflect.Message
func (*ChecksumConfig_Checksum) Reset ¶
func (x *ChecksumConfig_Checksum) Reset()
func (*ChecksumConfig_Checksum) String ¶
func (x *ChecksumConfig_Checksum) String() string
func (*ChecksumConfig_Checksum) Validate ¶
func (m *ChecksumConfig_Checksum) Validate() error
Validate checks the field values on ChecksumConfig_Checksum 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 (*ChecksumConfig_Checksum) ValidateAll ¶
func (m *ChecksumConfig_Checksum) ValidateAll() error
ValidateAll checks the field values on ChecksumConfig_Checksum 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 ChecksumConfig_ChecksumMultiError, or nil if none found.
type ChecksumConfig_ChecksumMultiError ¶
type ChecksumConfig_ChecksumMultiError []error
ChecksumConfig_ChecksumMultiError is an error wrapping multiple validation errors returned by ChecksumConfig_Checksum.ValidateAll() if the designated constraints aren't met.
func (ChecksumConfig_ChecksumMultiError) AllErrors ¶
func (m ChecksumConfig_ChecksumMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ChecksumConfig_ChecksumMultiError) Error ¶
func (m ChecksumConfig_ChecksumMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ChecksumConfig_ChecksumValidationError ¶
type ChecksumConfig_ChecksumValidationError struct {
// contains filtered or unexported fields
}
ChecksumConfig_ChecksumValidationError is the validation error returned by ChecksumConfig_Checksum.Validate if the designated constraints aren't met.
func (ChecksumConfig_ChecksumValidationError) Cause ¶
func (e ChecksumConfig_ChecksumValidationError) Cause() error
Cause function returns cause value.
func (ChecksumConfig_ChecksumValidationError) Error ¶
func (e ChecksumConfig_ChecksumValidationError) Error() string
Error satisfies the builtin error interface
func (ChecksumConfig_ChecksumValidationError) ErrorName ¶
func (e ChecksumConfig_ChecksumValidationError) ErrorName() string
ErrorName returns error name.
func (ChecksumConfig_ChecksumValidationError) Field ¶
func (e ChecksumConfig_ChecksumValidationError) Field() string
Field function returns field value.
func (ChecksumConfig_ChecksumValidationError) Key ¶
func (e ChecksumConfig_ChecksumValidationError) Key() bool
Key function returns key value.
func (ChecksumConfig_ChecksumValidationError) Reason ¶
func (e ChecksumConfig_ChecksumValidationError) Reason() string
Reason function returns reason value.
type ChecksumConfig_Checksum_PathMatcher ¶
type ChecksumConfig_Checksum_PathMatcher struct { // A matcher for a path that is expected to have a specific checksum, as specified // in the “sha256“ field. PathMatcher *v3.StringMatcher `protobuf:"bytes,1,opt,name=path_matcher,json=pathMatcher,proto3,oneof"` }