integrity

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Overview

Package integrity provides data integrity validator for the Cloudprober's validator framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

Validator implements an integrity validator.

func PatternNumBytesValidator

func PatternNumBytesValidator(patternNumbBytes int32, l *logger.Logger) (*Validator, error)

PatternNumBytesValidator returns a data integrity validator with number of / pattern bytes set to patternNumbBytes.

func (*Validator) Init

func (v *Validator) Init(config interface{}, l *logger.Logger) error

Init initializes the integrity validator.

func (*Validator) Validate

func (v *Validator) Validate(unusedResponseObj interface{}, responseBody []byte) (bool, error)

Validate validates the provided responseBody for data integrity errors, for example, data corruption.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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