v3alpha

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Cause function returns cause value.

func (ChecksumConfigValidationError) Error

Error satisfies the builtin error interface

func (ChecksumConfigValidationError) ErrorName

func (e ChecksumConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ChecksumConfigValidationError) Field

Field function returns field value.

func (ChecksumConfigValidationError) Key

Key function returns key value.

func (ChecksumConfigValidationError) Reason

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

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

Cause function returns cause value.

func (ChecksumConfig_ChecksumValidationError) Error

Error satisfies the builtin error interface

func (ChecksumConfig_ChecksumValidationError) ErrorName

ErrorName returns error name.

func (ChecksumConfig_ChecksumValidationError) Field

Field function returns field value.

func (ChecksumConfig_ChecksumValidationError) Key

Key function returns key value.

func (ChecksumConfig_ChecksumValidationError) Reason

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"`
}

Jump to

Keyboard shortcuts

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