gandi

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Token string
	// contains filtered or unexported fields
}

func New

func New(token string) *Client

New creates a new Client with a default timeout

func (*Client) Delete added in v0.0.13

func (c *Client) Delete(domain string, name string, rtype string) error

func (*Client) Get

func (c *Client) Get(domain string, record string) ([]*DomainRecord, error)

func (*Client) Put added in v0.0.13

func (c *Client) Put(domain string, name string, ips []*net.IP, ttl int) error

type DomainRecord

type DomainRecord struct {
	RrsetType   string    `json:"rrset_type,omitempty"`
	RrsetTTL    int       `json:"rrset_ttl,omitempty"`
	RrsetName   string    `json:"rrset_name,omitempty"`
	RrsetHref   string    `json:"rrset_href,omitempty"`
	RrsetValues []*net.IP `json:"rrset_values,omitempty"`
}

DomainRecord represents a DNS Record

Jump to

Keyboard shortcuts

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