Documentation ¶
Index ¶
- type CrossCluster
- func (c *CrossCluster) IsNameError(err error) bool
- func (c *CrossCluster) Lookup(ctx context.Context, state request.Request, name string, typ uint16) (*dns.Msg, error)
- func (c *CrossCluster) MinTTL(state request.Request) uint32
- func (c *CrossCluster) Name() string
- func (c *CrossCluster) Records(ctx context.Context, state request.Request, exact bool) ([]msg.Service, error)
- func (c *CrossCluster) Reverse(ctx context.Context, state request.Request, exact bool, opt plugin.Options) ([]msg.Service, error)
- func (c *CrossCluster) Serial(state request.Request) uint32
- func (c *CrossCluster) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
- func (c *CrossCluster) Services(ctx context.Context, state request.Request, exact bool, opt plugin.Options) ([]msg.Service, error)
- func (c *CrossCluster) Transfer(ctx context.Context, state request.Request) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrossCluster ¶
type CrossCluster struct { Next plugin.Handler RecordsCache *endpointslicedns.DNSCache Zones []string Log logr.Logger }
func (*CrossCluster) IsNameError ¶
func (c *CrossCluster) IsNameError(err error) bool
IsNameError returns true if err indicated a record not found condition
func (*CrossCluster) Lookup ¶
func (c *CrossCluster) Lookup(ctx context.Context, state request.Request, name string, typ uint16) (*dns.Msg, error)
Lookup is used to find records else where.
func (*CrossCluster) MinTTL ¶
func (c *CrossCluster) MinTTL(state request.Request) uint32
MinTTL returns the minimum TTL to be used in the SOA record.
func (*CrossCluster) Name ¶
func (c *CrossCluster) Name() string
func (*CrossCluster) Records ¶
func (c *CrossCluster) Records(ctx context.Context, state request.Request, exact bool) ([]msg.Service, error)
Returns _all_ services that matches a certain name. Note: it does not implement a specific service.
func (*CrossCluster) Reverse ¶
func (c *CrossCluster) Reverse(ctx context.Context, state request.Request, exact bool, opt plugin.Options) ([]msg.Service, error)
Reverse communicates with the backend to retrieve service definition based on a IP address instead of a name. I.e. a reverse DNS lookup.
func (*CrossCluster) Serial ¶
func (c *CrossCluster) Serial(state request.Request) uint32
Serial returns a SOA serial number to construct a SOA record.
func (*CrossCluster) ServeDNS ¶
func (c *CrossCluster) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
Click to show internal directories.
Click to hide internal directories.