Documentation ¶
Index ¶
- func Setup(c *caddy.Controller) error
- type ETCD
- func (e *ETCD) IsNameError(err error) bool
- func (e *ETCD) Lookup(ctx context.Context, state request.Request, name string, typ uint16) (*dns.Msg, error)
- func (e *ETCD) MinTTL(state request.Request) uint32
- func (e *ETCD) Name() string
- func (e *ETCD) Records(ctx context.Context, state request.Request, exact bool) ([]msg.Service, error)
- func (e *ETCD) Reverse(ctx context.Context, state request.Request, exact bool, opt plugin.Options) ([]msg.Service, error)
- func (e *ETCD) Serial(state request.Request) uint32
- func (e *ETCD) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
- func (e *ETCD) Services(ctx context.Context, state request.Request, exact bool, opt plugin.Options) ([]msg.Service, error)
- func (e *ETCD) TTL(kv *mvccpb.KeyValue, serv *msg.Service) uint32
- func (e *ETCD) Transfer(ctx context.Context, state request.Request) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup(c *caddy.Controller) error
Types ¶
type ETCD ¶
type ETCD struct { Next plugin.Handler Fall fall.F Zones []string PathPrefix string Upstream *upstream.Upstream Client *etcdcv3.Client WildcardBound int8 // Calculate the boundary of WildcardDNS // contains filtered or unexported fields }
func (*ETCD) IsNameError ¶
IsNameError implements the ServiceBackend interface.
func (*ETCD) Lookup ¶
func (e *ETCD) Lookup(ctx context.Context, state request.Request, name string, typ uint16) (*dns.Msg, error)
Lookup implements the ServiceBackend interface.
func (*ETCD) Records ¶
func (e *ETCD) Records(ctx context.Context, state request.Request, exact bool) ([]msg.Service, error)
Records looks up records in etcd. If exact is true, it will lookup just this name. This is used when find matches when completing SRV lookups for instance.
func (*ETCD) Reverse ¶
func (e *ETCD) Reverse(ctx context.Context, state request.Request, exact bool, opt plugin.Options) ([]msg.Service, error)
Reverse implements the ServiceBackend interface.
func (*ETCD) Services ¶
func (e *ETCD) Services(ctx context.Context, state request.Request, exact bool, opt plugin.Options) ([]msg.Service, error)
Services implements the ServiceBackend interface.
Click to show internal directories.
Click to hide internal directories.