dozens

package
v0.0.0-...-1020dcc Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(user string, key string) (*auth, error)

Types

type Client

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

func NewClient

func NewClient(client *http.Client, user string, key string) (*Client, error)

func (*Client) AddDomain

func (c *Client) AddDomain(domain *Domain, mail string) (*Domain, error)

func (*Client) AddRecord

func (c *Client) AddRecord(domain *Domain, record *Record) (*Record, error)

func (*Client) DeleteDomain

func (c *Client) DeleteDomain(domain *Domain) error

func (*Client) DeleteRecord

func (c *Client) DeleteRecord(record *Record) error

func (*Client) EditRecord

func (c *Client) EditRecord(record *Record) (*Record, error)

func (*Client) GetDomain

func (c *Client) GetDomain(name string) (*Domain, error)

func (*Client) ListDomains

func (c *Client) ListDomains() ([]*Domain, error)

func (*Client) ListRecords

func (c *Client) ListRecords(zone *Domain) ([]*Record, error)

func (*Client) UpdateDomain

func (c *Client) UpdateDomain(domain *Domain, mail string) (*Domain, error)

type Domain

type Domain struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type Record

type Record struct {
	Id      string `json:"id"`
	SName   string
	FQName  string `json:"name"`
	Type    string `json:"type"`
	Prio    string `json:"prio"`
	Content string `json:"content"`
	Ttl     string `json:"ttl"`
}

Jump to

Keyboard shortcuts

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