package
Version:
v0.0.0-...-53741e0
Opens a new window with list of versions in this module.
Published: May 6, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type APIResponse[T any] struct {
Meta *Metadata `json:"meta,omitempty"`
Data T `json:"data,omitempty"`
Error *Error `json:"error,omitempty"`
}
type Attributes struct {
Records map[string]map[string][]Record `json:"records,omitempty"`
}
Client the Abion API client.
NewAbionClient Creates a new Client.
GetZone Returns the full information on a single zone
PatchZone Updates a zone by patching it according to JSON Merge Patch format (RFC 7396).
type Error struct {
Status int `json:"status"`
Message string `json:"message"`
}
type Metadata struct {
InvocationID string `json:"invocationId,omitempty"`
}
type Record struct {
TTL int `json:"ttl,omitempty"`
Data string `json:"rdata,omitempty"`
}
type Zone struct {
Type string `json:"type,omitempty"`
ID string `json:"id,omitempty"`
Attributes Attributes `json:"attributes,omitempty"`
}
type ZoneRequest struct {
Data Zone `json:"data,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.