internal

package
v0.0.0-...-d25b310 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 9 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 {
	Result  string          `json:"result"`
	Details json.RawMessage `json:"details"`
}

type Client

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

Client the Webnames API client.

func NewClient

func NewClient(apiKey string) *Client

NewClient Creates a new Client.

func (*Client) AddTXTRecord

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

AddTXTRecord adds a TXT record. Inspired by https://github.com/regtime-ltd/certbot-dns-webnames/blob/master/authenticator.sh

func (*Client) RemoveTXTRecord

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

RemoveTXTRecord removes a TXT record. Inspired by https://github.com/regtime-ltd/certbot-dns-webnames/blob/master/cleanup.sh

Jump to

Keyboard shortcuts

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