entities

package
v0.0.7-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AAAARecord

type AAAARecord struct {
	Name  string `yaml:"name" json:"name" mapstructure:"name"`
	TTL   uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
	Value string `yaml:"value" json:"value" mapstructure:"value"`
}

type ARecord

type ARecord struct {
	Name  string `yaml:"name" json:"name" mapstructure:"name"`
	TTL   uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
	Value string `yaml:"value" json:"value" mapstructure:"value"`
}

type CNAMERecord

type CNAMERecord struct {
	Name  string `yaml:"name" json:"name" mapstructure:"name"`
	TTL   uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
	Value string `yaml:"value" json:"value" mapstructure:"value"`
}

type DNSKEYRecord

type DNSKEYRecord struct {
	Algorithm uint8  `yaml:"algorithm" json:"algorithm" mapstructure:"algorithm"`
	Flags     uint16 `yaml:"flags" json:"flags" mapstructure:"flags"`
	ID        uint64 `yaml:"id" json:"id" mapstructure:"id"`
	Key       string `yaml:"key" json:"key" mapstructure:"key"`
	Name      string `yaml:"name" json:"name" mapstructure:"name"`
	Protocol  uint8  `yaml:"protocol" json:"protocol" mapstructure:"protocol"`
	TTL       uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
}

type DSRecord

type DSRecord struct {
	Algorithm  uint8  `yaml:"algorithm" json:"algorithm" mapstructure:"algorithm"`
	Digest     string `yaml:"digest" json:"digest" mapstructure:"digest"`
	DigestType uint8  `yaml:"digest_type" json:"digest_type" mapstructure:"digest_type"`
	ID         uint64 `yaml:"id" json:"id" mapstructure:"id"`
	KeyTag     uint16 `yaml:"key-tag" json:"key_tag" mapstructure:"key_tag"`
	Name       string `yaml:"name" json:"name" mapstructure:"name"`
	TTL        uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
}

type MXRecord

type MXRecord struct {
	Name     string `yaml:"name" json:"name" mapstructure:"name"`
	Priority uint16 `yaml:"priority" json:"priority" mapstructure:"priority"`
	TTL      uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
	Value    string `yaml:"value" json:"value" mapstructure:"value"`
}

type NSRecord

type NSRecord struct {
	Name  string `yaml:"name" json:"name" mapstructure:"name"`
	TTL   uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
	Value string `yaml:"value" json:"value" mapstructure:"value"`
}

type RRSIGRecord

type RRSIGRecord struct {
	Algorithm   uint8  `yaml:"algorithm" json:"algorithm" mapstructure:"algorithm"`
	Expiration  string `yaml:"expiration" json:"expiration" mapstructure:"expiration"`
	Inception   string `yaml:"inception" json:"inception" mapstructure:"inception"`
	KeyTag      uint16 `yaml:"key-tag" json:"key_tag" mapstructure:"key_tag"`
	Labels      uint8  `yaml:"labels" json:"labels" mapstructure:"labels"`
	OriginalTTL uint32 `yaml:"original-ttl,omitempty" json:"original_ttl,omitempty" mapstructure:"original_ttl,omitempty"`
	Signature   string `yaml:"signature" json:"signature" mapstructure:"signature"`
	SignerName  string `yaml:"signer" json:"signer" mapstructure:"signer"`
	TypeCovered string `yaml:"type-covered" json:"type_covered" mapstructure:"type_covered"`
}

type RecordSet

type RecordSet struct {
	ARecords      []*ARecord      `yaml:"a,omitempty" json:"a,omitempty" mapstructure:"a,omitempty"`
	AAAARecords   []*AAAARecord   `yaml:"aaaa,omitempty" json:"aaaa,omitempty" mapstructure:"aaaa,omitempty"`
	CNAMERecords  []*CNAMERecord  `yaml:"cname,omitempty" json:"cname,omitempty" mapstructure:"cname,omitempty"`
	DNSKEYRecords []*DNSKEYRecord `yaml:"key,omitempty" json:"key,omitempty" mapstructure:"key,omitempty"`
	DSRecords     []*DSRecord     `yaml:"ds,omitempty" json:"ds,omitempty" mapstructure:"ds,omitempty"`
	MXRecords     []*MXRecord     `yaml:"mx,omitempty" json:"mx,omitempty" mapstructure:"mx,omitempty"`
	NSRecords     []*NSRecord     `yaml:"ns,omitempty" json:"ns,omitempty" mapstructure:"ns,omitempty"`
	RRSIGRecords  []*RRSIGRecord  `yaml:"rrsig,omitempty" json:"rrsig,omitempty" mapstructure:"rrsig,omitempty"`
	SOARecord     SOARecord       `yaml:"soa,omitempty" json:"soa,omitempty" mapstructure:"soa,omitempty"`
	SRVRecords    []*SRVRecord    `yaml:"srv,omitempty" json:"srv,omitempty" mapstructure:"srv,omitempty"`
	TXTRecords    []*TXTRecord    `yaml:"txt,omitempty" json:"txt,omitempty" mapstructure:"txt,omitempty"`
}

type SOARecord

type SOARecord struct {
	Expire     uint32 `yaml:"expire" json:"expire" mapstructure:"expire"`
	MName      string `yaml:"mname" json:"mname" mapstructure:"mname"`
	MinimumTTL uint32 `yaml:"min-ttl,omitempty" json:"min_ttl,omitempty" mapstructure:"min_ttl,omitempty"`
	Name       string `yaml:"name" json:"name" mapstructure:"name"`
	RName      string `yaml:"rname" json:"rname" mapstructure:"rname"`
	Refresh    uint32 `yaml:"refresh" json:"refresh" mapstructure:"refresh"`
	Retry      uint32 `yaml:"retry" json:"retry" mapstructure:"retry"`
	Serial     uint32 `yaml:"serial" json:"serial" mapstructure:"serial"`
	TTL        uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
}

type SRVRecord

type SRVRecord struct {
	Name     string `yaml:"name" json:"name" mapstructure:"name"`
	Port     uint16 `yaml:"port" json:"port" mapstructure:"port"`
	Priority uint16 `yaml:"priority" json:"priority" mapstructure:"priority"`
	Target   string `yaml:"target" json:"target" mapstructure:"target"`
	TTL      uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
	Weight   uint16 `yaml:"weight" json:"weight" mapstructure:"weight"`
}

type TXTRecord

type TXTRecord struct {
	Name  string `yaml:"name" json:"name" mapstructure:"name"`
	TTL   uint32 `yaml:"ttl,omitempty" json:"ttl,omitempty" mapstructure:"ttl,omitempty"`
	Value string `yaml:"value" json:"value" mapstructure:"value"`
}

type Zone

type Zone struct {
	ID          uint64    `json:"id" yaml:"id" mapstructure:"id"`
	Name        string    `json:"name" yaml:"name" mapstructure:"name"`
	TTL         uint32    `json:"ttl" yaml:"ttl" mapstructure:"ttl"`
	RecordSet   RecordSet `json:"records" yaml:"records" mapstructure:"records"`
	Description string    `json:"description" yaml:"description" mapstructure:"description"`
	Internal    bool      `json:"internal" yaml:"internal" mapstructure:"internal"`
}

func (*Zone) AddAAAARecord

func (z *Zone) AddAAAARecord(record *AAAARecord)

func (*Zone) AddARecord

func (z *Zone) AddARecord(record *ARecord)

func (*Zone) AddCNAMERecord

func (z *Zone) AddCNAMERecord(record *CNAMERecord)

func (*Zone) AddDNSKEYRecord

func (z *Zone) AddDNSKEYRecord(record *DNSKEYRecord)

func (*Zone) AddDSRecord

func (z *Zone) AddDSRecord(record *DSRecord)

func (*Zone) AddMXRecord

func (z *Zone) AddMXRecord(record *MXRecord)

func (*Zone) AddNSRecord

func (z *Zone) AddNSRecord(record *NSRecord)

func (*Zone) AddRRSIGRecord

func (z *Zone) AddRRSIGRecord(record *RRSIGRecord)

func (*Zone) AddSRVRecord

func (z *Zone) AddSRVRecord(record *SRVRecord)

func (*Zone) AddTXTRecord

func (z *Zone) AddTXTRecord(record *TXTRecord)

func (*Zone) EntityID

func (z *Zone) EntityID() uint64

func (*Zone) RemoveAAAARecord

func (z *Zone) RemoveAAAARecord(name string)

func (*Zone) RemoveARecord

func (z *Zone) RemoveARecord(name string)

Remove methods by record name

func (*Zone) RemoveCNAMERecord

func (z *Zone) RemoveCNAMERecord(name string)

func (*Zone) RemoveDNSKEYRecord

func (z *Zone) RemoveDNSKEYRecord(name string)

func (*Zone) RemoveDSRecord

func (z *Zone) RemoveDSRecord(name string)

func (*Zone) RemoveMXRecord

func (z *Zone) RemoveMXRecord(name string)

func (*Zone) RemoveNSRecord

func (z *Zone) RemoveNSRecord(name string)

func (*Zone) RemoveRRSIGRecord

func (z *Zone) RemoveRRSIGRecord(name string)

func (*Zone) RemoveSRVRecord

func (z *Zone) RemoveSRVRecord(name string)

func (*Zone) RemoveTXTRecord

func (z *Zone) RemoveTXTRecord(name string)

func (*Zone) SetAAAARecords

func (z *Zone) SetAAAARecords(records []*AAAARecord)

AAAARecord methods

func (*Zone) SetARecords

func (z *Zone) SetARecords(records []*ARecord)

ARecord methods

func (*Zone) SetCNAMERecords

func (z *Zone) SetCNAMERecords(records []*CNAMERecord)

CNAMERecord methods

func (*Zone) SetDNSKEYRecords

func (z *Zone) SetDNSKEYRecords(records []*DNSKEYRecord)

DNSKEYRecord methods

func (*Zone) SetDSRecords

func (z *Zone) SetDSRecords(records []*DSRecord)

DSRecord methods

func (*Zone) SetEntityID

func (z *Zone) SetEntityID(id uint64)

func (*Zone) SetMXRecords

func (z *Zone) SetMXRecords(records []*MXRecord)

MXRecord methods

func (*Zone) SetNSRecords

func (z *Zone) SetNSRecords(records []*NSRecord)

NSRecord methods

func (*Zone) SetRRSIGRecords

func (z *Zone) SetRRSIGRecords(records []*RRSIGRecord)

RRSIGRecord methods

func (*Zone) SetSOARecord

func (z *Zone) SetSOARecord(record SOARecord)

SOARecord methods

func (*Zone) SetSRVRecords

func (z *Zone) SetSRVRecords(records []*SRVRecord)

SRVRecord methods

func (*Zone) SetTXTRecords

func (z *Zone) SetTXTRecords(records []*TXTRecord)

TXTRecord methods

Jump to

Keyboard shortcuts

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