package etcd3

import "github.com/skynetservices/skydns/backends/etcd3"

Package etcd provides the default SkyDNS server Backend implementation, which looks up records stored under the `/skydns` key in etcd when queried. This one particularly concerns with the support of etcd version 3.

Index

Types

type Backendv3

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

func NewBackendv3

func NewBackendv3(client etcdv3.Client, ctx context.Context, config *Config) *Backendv3

NewBackendv3 returns a new Backend for SkyDNS, backed by etcd v3

func (*Backendv3) Client

func (g *Backendv3) Client() etcdv3.Client

func (*Backendv3) HasSynced

func (g *Backendv3) HasSynced() bool

func (*Backendv3) Records

func (g *Backendv3) Records(name string, exact bool) ([]msg.Service, error)

func (*Backendv3) ReverseRecord

func (g *Backendv3) ReverseRecord(name string) (*msg.Service, error)

type Config

type Config struct {
	Ttl      uint32
	Priority uint16
}

Source Files

etcd3.go

Version
v0.0.0-20191015171621-94b2ea0d8bfa (latest)
Published
Oct 15, 2019
Platform
linux/amd64
Imports
8 packages
Last checked
1 month ago

Tools for package owners.