etcd3

package
v0.0.0-...-df76fe3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
}

Jump to

Keyboard shortcuts

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