dns

package
v0.0.0-...-c0f96ad Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 6 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 {
	// contains filtered or unexported fields
}

Client holds metadata for the dns api client

func New

func New(options ...Option) *Client

New returns an implementation of a DNS interface

func (*Client) CreateRecord

func (d *Client) CreateRecord(host string, record Record) error

CreateRecord adds a record to DNS

func (*Client) DeleteRecord

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

DeleteRecord returns all record for a host

func (*Client) GetRecords

func (d *Client) GetRecords(host, kind string) ([]Record, error)

GetRecords returns all record for a host

func (*Client) UpdateRecord

func (d *Client) UpdateRecord(record Record) error

UpdateRecord returns all record for a host

type Option

type Option func(*Client)

Option type

func WithOAuth

func WithOAuth(oauthToken string) Option

WithOAuth returns Option for oauth

type Record

type Record dnsimple.ZoneRecord

Record is the type used for a Zone record

Jump to

Keyboard shortcuts

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