rejectif

package
v3.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaaFlagIsNonZero added in v3.21.0

func CaaFlagIsNonZero(rc *models.RecordConfig) error

CaaFlagIsNonZero identifies CAA records where tag is no zero.

func CaaTargetContainsWhitespace added in v3.21.0

func CaaTargetContainsWhitespace(rc *models.RecordConfig) error

CaaTargetContainsWhitespace identifies CAA records that have whitespace in the target. See https://github.com/StackExchange/dnscontrol/issues/1374

func CaaTargetHasSemicolon

func CaaTargetHasSemicolon(rc *models.RecordConfig) error

CaaTargetHasSemicolon identifies CAA records that contain semicolons.

func MxNull added in v3.21.0

func MxNull(rc *models.RecordConfig) error

MxNull detects MX records that are a "null MX". This is needed by providers that don't support RFC 7505.

func SrvHasNullTarget added in v3.21.0

func SrvHasNullTarget(rc *models.RecordConfig) error

SrvHasNullTarget detects SRV records that has a null target.

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