internal

package
v3.7.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 7 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 {
	HTTPClient *http.Client
	BaseURL    string
	// contains filtered or unexported fields
}

Client deSec API client.

func NewClient

func NewClient(token string) *Client

NewClient creates a new Client.

func (*Client) AddTxtRRSet

func (c *Client) AddTxtRRSet(rrSet RRSet) (*RRSet, error)

AddTxtRRSet creates a new RRSet. https://desec.readthedocs.io/en/latest/dns/rrsets.html#creating-a-tlsa-rrset

func (*Client) DeleteTxtRRSet

func (c *Client) DeleteTxtRRSet(domainName string, subName string) error

DeleteTxtRRSet deletes a RRset. https://desec.readthedocs.io/en/latest/dns/rrsets.html#deleting-an-rrset

func (*Client) GetTxtRRSet

func (c *Client) GetTxtRRSet(domainName string, subName string) (*RRSet, error)

GetTxtRRSet gets a RRSet. https://desec.readthedocs.io/en/latest/dns/rrsets.html#retrieving-a-specific-rrset

func (*Client) UpdateTxtRRSet

func (c *Client) UpdateTxtRRSet(domainName string, subName string, records []string) (*RRSet, error)

UpdateTxtRRSet updates RRSet records. https://desec.readthedocs.io/en/latest/dns/rrsets.html#modifying-an-rrset

type NotFound

type NotFound struct {
	Detail string `json:"detail"`
}

NotFound Not found error.

func (NotFound) Error

func (n NotFound) Error() string

type RRSet

type RRSet struct {
	Name    string   `json:"name,omitempty"`
	Domain  string   `json:"domain,omitempty"`
	SubName string   `json:"subname,omitempty"`
	Type    string   `json:"type,omitempty"`
	Records []string `json:"records"`
	TTL     int      `json:"ttl,omitempty"`
}

RRSet DNS Record Set.

Jump to

Keyboard shortcuts

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