cassandra

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

cassandra

Cassandra backed plugin for CoreDNS

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHostFromQname

func ParseHostFromQname(qname, zone string) string

Types

type AAAA_Record added in v0.0.4

type AAAA_Record struct {
	Ttl uint32 `json:"ttl,omitempty"`
	Ip  net.IP `json:"ip"`
}

type A_Record added in v0.0.4

type A_Record struct {
	Ttl uint32 `json:"ttl,omitempty"`
	Ip  net.IP `json:"ip"`
}

type CAA_Record added in v0.0.4

type CAA_Record struct {
	Flag  uint8  `json:"flag"`
	Tag   string `json:"tag"`
	Value string `json:"value"`
}

type CNAME_Record added in v0.0.4

type CNAME_Record struct {
	Ttl  uint32 `json:"ttl,omitempty"`
	Host string `json:"host"`
}

type Cassandra

type Cassandra struct {
	Next           plugin.Handler
	LastZoneUpdate time.Time
	Zones          []string
	Ttl            uint32
	// contains filtered or unexported fields
}

func New added in v0.0.4

func New() *Cassandra

func (*Cassandra) A added in v0.0.4

func (cass *Cassandra) A(zone string, qname string) (answers, extras []dns.RR, err error)

func (*Cassandra) AAAA added in v0.0.4

func (cass *Cassandra) AAAA(zone string, qname string) (answers, extras []dns.RR, err error)

func (*Cassandra) CNAME added in v0.0.4

func (cass *Cassandra) CNAME(zone string, qname string) (answers, extras []dns.RR, err error)

func (*Cassandra) Connect added in v0.0.4

func (cass *Cassandra) Connect()

func (*Cassandra) LoadZones added in v0.0.4

func (cass *Cassandra) LoadZones()

func (*Cassandra) MX added in v0.0.4

func (cass *Cassandra) MX(zone string, qname string) (answers, extras []dns.RR, err error)

func (*Cassandra) NS added in v0.0.4

func (cass *Cassandra) NS(zone string, qname string) (answers, extras []dns.RR, err error)

func (*Cassandra) Name

func (cass *Cassandra) Name() string

func (*Cassandra) SOA added in v0.0.4

func (cass *Cassandra) SOA(zone string, qname string) (answers, extras []dns.RR, err error)

func (*Cassandra) SRV added in v0.0.4

func (cass *Cassandra) SRV(zone string, qname string) (answers, extras []dns.RR, err error)

func (*Cassandra) ServeDNS

func (cass *Cassandra) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

main entrypoint from coredns

func (*Cassandra) TXT added in v0.0.4

func (cass *Cassandra) TXT(zone string, qname string) (answers, extras []dns.RR, err error)

type MX_Record added in v0.0.4

type MX_Record struct {
	Ttl        uint32 `json:"ttl,omitempty"`
	Host       string `json:"host"`
	Preference uint16 `json:"preference"`
}

type NS_Record added in v0.0.4

type NS_Record struct {
	Ttl  uint32 `json:"ttl,omitempty"`
	Host string `json:"host"`
}

type SOA_Record added in v0.0.4

type SOA_Record struct {
	Ttl     uint32 `json:"ttl,omitempty"`
	Ns      string `json:"ns"`
	MBox    string `json:"MBox"`
	Refresh uint32 `json:"refresh"`
	Retry   uint32 `json:"retry"`
	Expire  uint32 `json:"expire"`
	MinTtl  uint32 `json:"minttl"`
}

type SRV_Record added in v0.0.4

type SRV_Record struct {
	Ttl      uint32 `json:"ttl,omitempty"`
	Priority uint16 `json:"priority"`
	Weight   uint16 `json:"weight"`
	Port     uint16 `json:"port"`
	Target   string `json:"target"`
}

type TXT_Record added in v0.0.4

type TXT_Record struct {
	Ttl  uint32 `json:"ttl,omitempty"`
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

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