Documentation ¶
Index ¶
- type APIError
- type Client
- func (c Client) CreateDNSZone(ctx context.Context, zone CreateDNSZoneRequest) (*DNSZone, error)
- func (c Client) DeleteDNSZone(ctx context.Context, zoneID string) error
- func (c Client) GetDNSZone(ctx context.Context, zoneID string) (*DNSZone, error)
- func (c Client) ListDNSZones(ctx context.Context, projectID string) ([]DNSZone, error)
- func (c Client) ListDomains(ctx context.Context) ([]Domain, error)
- func (c Client) UpdateTXTRecord(ctx context.Context, zoneID string, record TXTRecord) error
- type CreateDNSZoneRequest
- type DNSZone
- type Domain
- type NewDNSZone
- type RecordSet
- type Settings
- type TTL
- type TXTRecord
- type ValidationError
- type ValidationErrorContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct { Type string `json:"type,omitempty"` Message string `json:"message,omitempty"` ValidationErrors []ValidationError `json:"validationErrors,omitempty"` }
type Client ¶
Client the Mittwald client.
func (Client) CreateDNSZone ¶
CreateDNSZone Create a DNSZone. https://api.mittwald.de/v2/docs/#/Domain/dns-create-dns-zone
func (Client) DeleteDNSZone ¶
DeleteDNSZone Delete a DNSZone. https://api.mittwald.de/v2/docs/#/Domain/dns-delete-dns-zone
func (Client) GetDNSZone ¶
GetDNSZone Get a DNSZone. https://api.mittwald.de/v2/docs/#/Domain/dns-get-dns-zone
func (Client) ListDNSZones ¶
ListDNSZones List DNSZones belonging to a Project. https://api.mittwald.de/v2/docs/#/Domain/dns-list-dns-zones
func (Client) ListDomains ¶
ListDomains List Domains. https://api.mittwald.de/v2/docs/#/Domain/domain-list-domains
func (Client) UpdateTXTRecord ¶
UpdateTXTRecord Update a record set on a DNSZone. https://api.mittwald.de/v2/docs/#/Domain/dns-update-record-set
type CreateDNSZoneRequest ¶
type NewDNSZone ¶
type NewDNSZone struct {
ID string `json:"id"`
}
type ValidationError ¶
type ValidationError struct { Message string `json:"message,omitempty"` Path string `json:"path,omitempty"` Type string `json:"type,omitempty"` Context ValidationErrorContext `json:"context,omitempty"` }
type ValidationErrorContext ¶
type ValidationErrorContext struct {
Format string `json:"format,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.