Documentation ¶
Index ¶
- type APIResponse
- type Client
- func (c *Client) AddTXTRecord(ctx context.Context, authZone, fqdn, value string, ttl int) error
- func (c *Client) CreateAuthenticatedContext(ctx context.Context) (context.Context, error)
- func (c *Client) Logout(ctx context.Context) error
- func (c *Client) Publish(ctx context.Context, zone, notes string) error
- func (c *Client) RemoveTXTRecord(ctx context.Context, authZone, fqdn string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { // One of 'success', 'failure', or 'incomplete' Status string `json:"status"` // The structure containing the actual results of the request Data json.RawMessage `json:"data"` // The ID of the job that was created in response to a request. JobID int `json:"job_id"` // A list of zero or more messages Messages json.RawMessage `json:"msgs"` }
type Client ¶
Client the Dyn API client.
func (*Client) AddTXTRecord ¶
AddTXTRecord creating TXT Records. https://help.dyn.com/create-txt-record-api/
func (*Client) CreateAuthenticatedContext ¶
func (*Client) Logout ¶
Logout Destroys Dyn Session. https://help.dyn.com/session-log-out/
func (*Client) Publish ¶
Publish updating Zone settings. https://help.dyn.com/update-zone-api/
func (*Client) RemoveTXTRecord ¶
RemoveTXTRecord deleting one or all existing TXT Records. https://help.dyn.com/delete-txt-records-api/
Click to show internal directories.
Click to hide internal directories.