internal

package
v4.18.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBaseURL = "https://api.dreamhost.com"

DefaultBaseURL the default API endpoint.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client the Dreamhost API client.

func NewClient

func NewClient(apiKey string) *Client

NewClient Creates a new Client.

func (*Client) AddRecord

func (c *Client) AddRecord(ctx context.Context, domain, value string) error

AddRecord adds a TXT record.

func (*Client) RemoveRecord

func (c *Client) RemoveRecord(ctx context.Context, domain, value string) error

RemoveRecord removes a TXT record.

Jump to

Keyboard shortcuts

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