internal

package
v4.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

type Client struct {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

Client the Dyn API client.

func NewClient

func NewClient(customerName string, username string, password string) *Client

NewClient Creates a new Client.

func (*Client) AddTXTRecord

func (c *Client) AddTXTRecord(ctx context.Context, authZone, fqdn, value string, ttl int) error

AddTXTRecord creating TXT Records. https://help.dyn.com/create-txt-record-api/

func (*Client) CreateAuthenticatedContext

func (c *Client) CreateAuthenticatedContext(ctx context.Context) (context.Context, error)

func (*Client) Logout

func (c *Client) Logout(ctx context.Context) error

Logout Destroys Dyn Session. https://help.dyn.com/session-log-out/

func (*Client) Publish

func (c *Client) Publish(ctx context.Context, zone, notes string) error

Publish updating Zone settings. https://help.dyn.com/update-zone-api/

func (*Client) RemoveTXTRecord

func (c *Client) RemoveTXTRecord(ctx context.Context, authZone, fqdn string) error

RemoveTXTRecord deleting one or all existing TXT Records. https://help.dyn.com/delete-txt-records-api/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL