Documentation
¶
Index ¶
- Variables
- func AdminUserGroupAdd(c *fiber.Ctx) error
- func AdminUserGroupRemove(c *fiber.Ctx) error
- func AdminUserImpersonate(c *fiber.Ctx) error
- func AdminUserList(c *fiber.Ctx) error
- func Document() string
- func MonitorTargets(c *fiber.Ctx) error
- func RecordAdd(c *fiber.Ctx) error
- func RecordDelete(c *fiber.Ctx) error
- func RecordList(c *fiber.Ctx) error
- func RecordUpdate(c *fiber.Ctx) error
- func Register(app *fiber.App, meta map[string]interface{})
- func UserChangePassword(c *fiber.Ctx) error
- func UserConfirmPasswordReset(c *fiber.Ctx) error
- func UserDelete(c *fiber.Ctx) error
- func UserInfo(c *fiber.Ctx) error
- func UserLogin(c *fiber.Ctx) error
- func UserLogout(c *fiber.Ctx) error
- func UserRequestPasswordReset(c *fiber.Ctx) error
- func UserSignup(c *fiber.Ctx) error
- func ZoneAdd(c *fiber.Ctx) error
- func ZoneDelete(c *fiber.Ctx) error
- func ZoneList(c *fiber.Ctx) error
- func ZoneUserAdd(c *fiber.Ctx) error
- func ZoneUserDelete(c *fiber.Ctx) error
- type Resp
- type Target
Constants ¶
This section is empty.
Variables ¶
var ( SMTPHost string SMTPUser string SMTPPass string )
var Database *gorm.DB
Database stores the global database for the API
var Suffixes []string
Functions ¶
func AdminUserGroupAdd ¶
AdminUserGroupAdd handles a PUT request to add a group to a user
func AdminUserGroupRemove ¶
AdminUserGroupRemove handles a DELETE request to remove a group from a user
func AdminUserImpersonate ¶
AdminUserImpersonate handles a POST request to log in as another user
func AdminUserList ¶
AdminUserList handles a GET request to list all users
func MonitorTargets ¶ added in v0.0.39
MonitorTargets handles a GET request to get node target status
func RecordDelete ¶
RecordDelete handles a DELETE request to delete a DNS record
func RecordList ¶
RecordList handles a GET request to list records for a zone
func RecordUpdate ¶
RecordUpdate handles a PUT request to update a DNS record
func UserChangePassword ¶
UserChangePassword handles a POST request to change a user's password
func UserConfirmPasswordReset ¶ added in v0.0.41
UserConfirmPasswordReset handles a POST request to change a user's password
func UserDelete ¶
UserDelete handles a DELETE request to delete a user
func UserLogout ¶
UserLogout handles a GET request to log the user out
func UserRequestPasswordReset ¶ added in v0.0.41
UserRequestPasswordReset handles a POST request to request a password reset
func ZoneDelete ¶
ZoneDelete handles a DELETE request to delete a zone
func ZoneUserAdd ¶
ZoneUserAdd handles a PUT request to add a user to a zone
func ZoneUserDelete ¶
ZoneUserDelete handles a DELETE request to remove a user from a zone
Types ¶
type Target ¶ added in v0.0.39
type Target struct {
DiscoveredLabels struct {
Address string `json:"__address__"`
MetricsPath string `json:"__metrics_path__"`
Scheme string `json:"__scheme__"`
ScrapeInterval string `json:"__scrape_interval__"`
ScrapeTimeout string `json:"__scrape_timeout__"`
Job string `json:"job"`
Node string `json:"node,omitempty"`
} `json:"discoveredLabels"`
Labels struct {
Instance string `json:"instance"`
Job string `json:"job"`
Node string `json:"node,omitempty"`
} `json:"labels"`
ScrapePool string `json:"scrapePool"`
ScrapeUrl string `json:"scrapeUrl"`
GlobalUrl string `json:"globalUrl"`
LastError string `json:"lastError"`
LastScrape time.Time `json:"lastScrape"`
LastScrapeDuration float64 `json:"lastScrapeDuration"`
Health string `json:"health"`
ScrapeInterval string `json:"scrapeInterval"`
ScrapeTimeout string `json:"scrapeTimeout"`
}