Documentation
¶
Index ¶
- type AddForwardZonesHandler
- type AddZone
- type DelForwardZoneHandler
- type DelForwardZonesHandler
- type DeleteZone
- type ForwardZonesHandler
- type ListServerHandler
- type ListServersHandler
- func NewListServerHandler(config config.Config, stats stats.PrometheusStatsCollector, ...) *ListServersHandler
- func NewListServersHandler(config config.Config, errorWriter errorWriter, ...) *ListServersHandler
- func NewSearchDataHandler(config config.Config, stats stats.PrometheusStatsCollector, ...) *ListServersHandler
- type PatchForwardZoneHandler
- type PatchZone
- type SearchDataHandler
- type VersionHandler
- type ZonesHandler
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 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 ¶
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 ¶
func (s *VersionHandler) Get(w http.ResponseWriter, r *http.Request)
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
Click to show internal directories.
Click to hide internal directories.