go-dreamhost

module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT

README

go-dreamhost

Go API for interacting with DreamHost DNS provider's interface

Usage

key := "<your dreamhost API key>"
var httpClient http.Client // if you need a configured http client
client, err := api.NewClient(key, httpClient)

Known issues

If the DNS record is created through this API, Dreamhost persists the record with a trailing .. So if you've created a record with record=test.mydomain.com value, upon listing and deletion the record will be displayed as record=test.mydomain.com. (not the trailing dot).

Operations

Currently the API supports the following operations:

Adding DNS record
input := api.DNSRecordInput{}
err := client.AddDNSRecord(context.Background(), input)
Listing DNS records
records, err = client.ListDNSRecords(context.Background())
Removing DNS records
input := api.DNSRecordInput{}
err := client.RemoveDNSRecord(context.Background(), input)

Examples

See example/.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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