auroradns_client

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2016 License: GPL-3.0 Imports: 6 Imported by: 0

README

Aurora DNS API client

Build Status License

An wrapper library for the Aurora DNS API, written in Go.

Features

  • List zones and records
  • Add and remove records

Requirements

  • Go >= 1.6

Build

make deps
make build

Test

make test

Basic usage

client, _ := NewAuroraDNSClient(fakeAuroraEndpoint, fakeAuroraDNSUserId, fakeAuroraDNSKey)

zones, err := client.GetZones()

License

auroradns_client is licensed under GPL - see the LICENSE file for details

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuroraDNSClient

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

func NewAuroraDNSClient

func NewAuroraDNSClient(baseUrl string, userId string, key string) (*AuroraDNSClient, error)

func (*AuroraDNSClient) CreateRecord

func (*AuroraDNSClient) GetRecords

func (self *AuroraDNSClient) GetRecords(zoneId string) ([]records.GetRecordsResponse, error)

func (*AuroraDNSClient) GetZones

func (self *AuroraDNSClient) GetZones() ([]zones.ZoneRecord, error)

func (*AuroraDNSClient) RemoveRecord

func (self *AuroraDNSClient) RemoveRecord(zoneId string, recordId string) (*records.RemoveRecordResponse, error)

type AuroraDNSError

type AuroraDNSError struct {
	ErrorCode string `json:"error"`
	Message   string `json:"errormsg"`
}

func (AuroraDNSError) Error

func (e AuroraDNSError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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