proto

package
v0.10.9 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Validator.ProtoReflect.Descriptor instead.

func (*Validator) GetPattern

func (m *Validator) GetPattern() isValidator_Pattern

func (*Validator) GetPatternNumBytes

func (x *Validator) GetPatternNumBytes() int32

func (*Validator) GetPatternString

func (x *Validator) GetPatternString() string

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) ProtoReflect added in v0.10.8

func (x *Validator) ProtoReflect() protoreflect.Message

func (*Validator) Reset

func (x *Validator) Reset()

func (*Validator) String

func (x *Validator) String() string

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

Jump to

Keyboard shortcuts

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