rejectif

package
v3.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaaTargetHasSemicolon

func CaaTargetHasSemicolon(rc *models.RecordConfig) error

CaaTargetHasSemicolon audits CAA records for issues that contain semicolons.

func TxtHasBackticks

func TxtHasBackticks(rc *models.RecordConfig) error

TxtHasBackticks audits TXT records for strings that contain backticks.

func TxtHasDoubleQuotes

func TxtHasDoubleQuotes(rc *models.RecordConfig) error

TxtHasDoubleQuotes audits TXT records for strings that contain doublequotes.

func TxtHasMultipleSegments

func TxtHasMultipleSegments(rc *models.RecordConfig) error

TxtHasMultipleSegments audits TXT records for multiple strings

func TxtHasSegmentLen256orLonger

func TxtHasSegmentLen256orLonger(rc *models.RecordConfig) error

TxtHasSegmentLen256orLonger audits TXT records for strings that are >255 octets.

func TxtHasSingleQuotes

func TxtHasSingleQuotes(rc *models.RecordConfig) error

TxtHasSingleQuotes audits TXT records for strings that contain single-quotes.

func TxtHasTrailingSpace

func TxtHasTrailingSpace(rc *models.RecordConfig) error

TxtHasTrailingSpace audits TXT records for strings that end with space.

func TxtHasUnpairedDoubleQuotes

func TxtHasUnpairedDoubleQuotes(rc *models.RecordConfig) error

TxtHasUnpairedDoubleQuotes audits TXT records for strings that contain unpaired doublequotes.

func TxtIsEmpty

func TxtIsEmpty(rc *models.RecordConfig) error

TxtIsEmpty audits TXT records for empty strings.

func TxtIsExactlyLen255

func TxtIsExactlyLen255(rc *models.RecordConfig) error

TxtIsExactlyLen255 audits TXT records for strings exactly 255 octets long. This is rare; you probably want to use TxtNoStringsLen256orLonger() instead.

Types

type Auditor

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

Auditor stores a list of checks to be executed during Audit().

func (*Auditor) Add

func (aud *Auditor) Add(rtype string, fn checker)

Add registers a function to call on each record of a given type.

func (*Auditor) Audit

func (aud *Auditor) Audit(records models.Records) (errs []error)

Audit performs the audit. For each record it calls each function in the list of checks.

Jump to

Keyboard shortcuts

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