dspolicy

package
v0.0.0-...-73d3301 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2016 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package dspolicy store the DS record policies for DNSSEC configuration checks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainDSPolicy

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

DomainDSPolicy store the domain object that is going to be updated during the policies executions. The domain object cannot be null

func NewDomainDSPolicy

func NewDomainDSPolicy(domain *model.Domain) DomainDSPolicy

This function initialize a DomainDSPolicy object, it was created to force the programmer to initialize the domain object, so we don't need to check if domain is nil inside each method. Maybe there's a better approach (think about)

func (*DomainDSPolicy) CheckNetworkError

func (d *DomainDSPolicy) CheckNetworkError(err error) bool

When there's a error while sending a DS request over the network, this method is responsable for detecting any usual problems, something like DNSSEC timeouts. Generic kinds of errors should be visible when checking the nameserver policies

func (*DomainDSPolicy) Run

func (d *DomainDSPolicy) Run(dnsResponseMessage *dns.Msg) bool

Method responsable for running all DS policies. Each nameserver result query can update all DS records (because of some error), so this method has a different interface of the nameserver policies, it updates the DS records directly in the domain object pointer and return true when the DS records are OK or false otherwise

Jump to

Keyboard shortcuts

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