v1

package
v0.0.0-...-e6503be Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddForwardZonesHandler

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

func NewAddForwardZonesHandler

func NewAddForwardZonesHandler(config config.Config, ldapZoneAdder ldap.LDAPZoneAdder, errorWriter errorWriter, stats stats.PrometheusStatsCollector, logger *logrus.Logger, internalClient internalClient) *AddForwardZonesHandler

func (*AddForwardZonesHandler) AddForwardZones

func (s *AddForwardZonesHandler) AddForwardZones(w http.ResponseWriter, r *http.Request)

AddForwardZone creates a new forwarding zone

type AddZone

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

func NewAddZone

func NewAddZone(config config.Config, ldapZoneAdder ldap.LDAPZoneAdder, errorWriter errorWriter, stats stats.PrometheusStatsCollector, logger *logrus.Logger, auth pdnsApi.Client) *AddZone

func (*AddZone) AddZone

func (s *AddZone) AddZone(w http.ResponseWriter, r *http.Request)

AddZone creates a new domain, returns the Zone on creation.

type DelForwardZoneHandler

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

func NewDelForwardZoneHandler

func NewDelForwardZoneHandler(config config.Config, ldapZoneDeleter ldap.LDAPZoneDeleter, errorWriter errorWriter, stats stats.PrometheusStatsCollector, logger *logrus.Logger, internalClient internalClient) *DelForwardZoneHandler

NewDelForwardZoneHandler returns new DelForwardZoneHandler

func (*DelForwardZoneHandler) DelForwardZone

func (s *DelForwardZoneHandler) DelForwardZone(w http.ResponseWriter, r *http.Request)

type DelForwardZonesHandler

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

func NewDelForwardZonesHandler

func NewDelForwardZonesHandler(config config.Config, ldapZoneDeleter ldap.LDAPZoneDeleter, errorWriter errorWriter, stats stats.PrometheusStatsCollector, logger *logrus.Logger, internalClient internalClient) *DelForwardZonesHandler

NewDelForwardZoneHandler returns new DelForwardZoneHandler

func (*DelForwardZonesHandler) DelForwardZones

func (s *DelForwardZonesHandler) DelForwardZones(w http.ResponseWriter, r *http.Request)

type DeleteZone

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

func NewDeleteZone

func NewDeleteZone(config config.Config, ldapZoneDeleter ldap.LDAPZoneDeleter, errorWriter errorWriter, stats stats.PrometheusStatsCollector, logger *logrus.Logger, auth pdnsApi.Client) *DeleteZone

func (*DeleteZone) DeleteZone

func (s *DeleteZone) DeleteZone(w http.ResponseWriter, r *http.Request)

DeleteZone Deletes this zone, all attached metadata and rrsets.

type ForwardZonesHandler

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

func NewForwardZonesHandler

func NewForwardZonesHandler(config config.Config, stats stats.PrometheusStatsCollector, powerDNSClient pdnsApi.Client) *ForwardZonesHandler

func (*ForwardZonesHandler) ListForwardZone

func (s *ForwardZonesHandler) ListForwardZone(w http.ResponseWriter, r *http.Request)

ListForwardZone returns forwarding zone by name

func (*ForwardZonesHandler) ListForwardZones

func (s *ForwardZonesHandler) ListForwardZones(w http.ResponseWriter, r *http.Request)

ListForwardZones returns forwarding zones list

type ListServerHandler

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

type ListServersHandler

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

func NewListServerHandler

func NewListServerHandler(config config.Config, stats stats.PrometheusStatsCollector, powerDNSClient pdns.Client) *ListServersHandler

func NewListServersHandler

func NewListServersHandler(config config.Config, errorWriter errorWriter, stats stats.PrometheusStatsCollector, logger *logrus.Logger, powerDNSClient pdns.Client) *ListServersHandler

func NewSearchDataHandler

func NewSearchDataHandler(config config.Config, stats stats.PrometheusStatsCollector, powerDNSClient pdns.Client) *ListServersHandler

func (*ListServersHandler) ListServer

func (s *ListServersHandler) ListServer(w http.ResponseWriter, r *http.Request)

ListServer list all servers

func (*ListServersHandler) ListServers

func (s *ListServersHandler) ListServers(w http.ResponseWriter, r *http.Request)

ListServers list all servers

func (*ListServersHandler) SearchData

func (s *ListServersHandler) SearchData(w http.ResponseWriter, r *http.Request)

SearchData lists all known servers

type PatchForwardZoneHandler

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

func NewPatchForwardZoneHandler

func NewPatchForwardZoneHandler(config config.Config, errorWriter errorWriter, stats stats.PrometheusStatsCollector, internalClient internalClient) *PatchForwardZoneHandler

NewPatchForwardZoneHandler returns new PatchForwardZoneHandler

func (*PatchForwardZoneHandler) PatchForwardZone

func (s *PatchForwardZoneHandler) PatchForwardZone(w http.ResponseWriter, r *http.Request)

type PatchZone

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

func NewPatchZone

func NewPatchZone(config config.Config, errorWriter errorWriter, stats stats.PrometheusStatsCollector, logger *logrus.Logger, auth pdnsApi.Client, ptrrecorder ptrrecorder, internalClient internalClient) *PatchZone

func (*PatchZone) PatchZone

func (s *PatchZone) PatchZone(w http.ResponseWriter, r *http.Request)

PatchZone Deletes this zone, all attached metadata and rrsets.

type SearchDataHandler

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

type VersionHandler

type VersionHandler struct {
	Version string `json:"version"`
	Build   string `json:"build"`
	Go      string `json:"go"`
	// contains filtered or unexported fields
}

func NewVersionHandler

func NewVersionHandler(config config.Config, stats stats.PrometheusStatsCollector) *VersionHandler

func (*VersionHandler) Get

Get returns json with version info

type ZonesHandler

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

func NewZonesHandler

func NewZonesHandler(config config.Config, stats stats.PrometheusStatsCollector, powerDNSClient pdnsApi.Client) *ZonesHandler

func (*ZonesHandler) ListZone

func (s *ZonesHandler) ListZone(w http.ResponseWriter, r *http.Request)

ListZone returs zone by name

func (*ZonesHandler) ListZones

func (s *ZonesHandler) ListZones(w http.ResponseWriter, r *http.Request)

ListZones list all zones in a server

Jump to

Keyboard shortcuts

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