Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPSDTarget ¶
type Worker ¶
type Worker struct { ZoneBlacklist *regexp.Regexp ZoneWhitelist *regexp.Regexp RecordTypeWhitelist *regexp.Regexp // contains filtered or unexported fields }
Worker contains an API client to interact with the NS1 api, as well as a cache of DNS records and the Prometheus targets created from those records. Worker gets registered on a different handler for the `/sd` path and run via the same HTTP server as the metrics exporter.
func (*Worker) RefreshData ¶ added in v0.3.0
func (w *Worker) RefreshData()
func (*Worker) RefreshPrometheusTargetData ¶
func (w *Worker) RefreshPrometheusTargetData()
func (*Worker) RefreshRecordData ¶
func (w *Worker) RefreshRecordData()
func (*Worker) RefreshZoneData ¶ added in v0.2.0
func (w *Worker) RefreshZoneData()
Click to show internal directories.
Click to hide internal directories.