internal

package
v4.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const APIKeyHeader = "X-Api-Key"

APIKeyHeader API key header.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client the Gandi API v5 client.

func NewClient

func NewClient(apiKey, pat string) *Client

NewClient Creates a new Client.

func (*Client) AddTXTRecord

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

func (*Client) DeleteTXTRecord

func (c *Client) DeleteTXTRecord(ctx context.Context, domain, name string) error

type Record

type Record struct {
	RRSetTTL    int      `json:"rrset_ttl"`
	RRSetValues []string `json:"rrset_values"`
	RRSetName   string   `json:"rrset_name,omitempty"`
	RRSetType   string   `json:"rrset_type,omitempty"`
}

Record TXT record representation.

Jump to

Keyboard shortcuts

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