Documentation ¶
Index ¶
- Variables
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)deprecated
- func (m *Validator) GetPattern() isValidator_Pattern
- func (x *Validator) GetPatternNumBytes() int32
- func (x *Validator) GetPatternString() string
- func (*Validator) ProtoMessage()
- func (x *Validator) ProtoReflect() protoreflect.Message
- func (x *Validator) Reset()
- func (x *Validator) String() string
- type Validator_PatternNumBytes
- type Validator_PatternString
Constants ¶
This section is empty.
Variables ¶
View Source
var File_github_com_google_cloudprober_validators_integrity_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct { // Validate the data integrity of the response using a pattern that is // repeated throughout the length of the response, with last len(response) % // len(pattern) bytes being zero bytes. // // For example if response length is 100 bytes and pattern length is 8 bytes, // first 96 bytes of the response should be pattern repeated 12 times, and // last 4 bytes should be set to zero byte ('\0') // // Types that are assignable to Pattern: // *Validator_PatternString // *Validator_PatternNumBytes Pattern isValidator_Pattern `protobuf_oneof:"pattern"` // contains filtered or unexported fields }
func (*Validator) Descriptor
deprecated
func (*Validator) GetPattern ¶
func (m *Validator) GetPattern() isValidator_Pattern
func (*Validator) GetPatternNumBytes ¶
func (*Validator) GetPatternString ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) ProtoReflect ¶ added in v0.10.8
func (x *Validator) ProtoReflect() protoreflect.Message
type Validator_PatternNumBytes ¶
type Validator_PatternNumBytes struct { // Pattern is derived from the first few bytes of the payload. This is // useful when pattern is not known in advance, for example cloudprober's // ping probe repeates the timestamp (8 bytes) in the packet payload. // An error is returned if response is smaller than pattern_num_bytes. PatternNumBytes int32 `protobuf:"varint,2,opt,name=pattern_num_bytes,json=patternNumBytes,oneof"` }
type Validator_PatternString ¶
type Validator_PatternString struct { // Pattern string for pattern repetition based integrity checks. // For example, cloudprobercloudprobercloudprober... PatternString string `protobuf:"bytes,1,opt,name=pattern_string,json=patternString,oneof"` }
Click to show internal directories.
Click to hide internal directories.