checksumv3alpha

package
v1.36.10-2025102020213... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ChecksumConfig_Checksum_Matcher_not_set_case case_ChecksumConfig_Checksum_Matcher = 0
View Source
const ChecksumConfig_Checksum_PathMatcher_case case_ChecksumConfig_Checksum_Matcher = 1

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) 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) SetChecksums

func (x *ChecksumConfig) SetChecksums(v []*ChecksumConfig_Checksum)

func (*ChecksumConfig) SetRejectUnmatched

func (x *ChecksumConfig) SetRejectUnmatched(v bool)

func (*ChecksumConfig) String

func (x *ChecksumConfig) String() string

type ChecksumConfig_Checksum

type ChecksumConfig_Checksum struct {

	// Types that are valid to be assigned 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) ClearMatcher

func (x *ChecksumConfig_Checksum) ClearMatcher()

func (*ChecksumConfig_Checksum) ClearPathMatcher

func (x *ChecksumConfig_Checksum) ClearPathMatcher()

func (*ChecksumConfig_Checksum) GetMatcher

func (x *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) HasMatcher

func (x *ChecksumConfig_Checksum) HasMatcher() bool

func (*ChecksumConfig_Checksum) HasPathMatcher

func (x *ChecksumConfig_Checksum) HasPathMatcher() bool

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) SetPathMatcher

func (x *ChecksumConfig_Checksum) SetPathMatcher(v *v3.StringMatcher)

func (*ChecksumConfig_Checksum) SetSha256

func (x *ChecksumConfig_Checksum) SetSha256(v string)

func (*ChecksumConfig_Checksum) String

func (x *ChecksumConfig_Checksum) String() string

func (*ChecksumConfig_Checksum) WhichMatcher

func (x *ChecksumConfig_Checksum) WhichMatcher() case_ChecksumConfig_Checksum_Matcher

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

type ChecksumConfig_Checksum_builder

type ChecksumConfig_Checksum_builder struct {

	// Fields of oneof Matcher:
	// A matcher for a path that is expected to have a specific checksum, as specified
	// in the “sha256“ field.
	PathMatcher *v3.StringMatcher
	// -- end of 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
	// contains filtered or unexported fields
}

func (ChecksumConfig_Checksum_builder) Build

type ChecksumConfig_builder

type ChecksumConfig_builder 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
	// 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
	// contains filtered or unexported fields
}

func (ChecksumConfig_builder) Build

Source Files

  • checksum.pb.go

Jump to

Keyboard shortcuts

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