Skip to content
Go client package for VinylDNS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vinyldns remove partially-implemented GroupByName method Jul 8, 2019
.gitignore
.travis.yml
CODE_OF_CONDUCT.md initial commit Jul 27, 2018
CONTRIBUTING.md Update CONTRIBUTING Jul 27, 2018
Gopkg.lock update Gopkg.lock Apr 13, 2019
Gopkg.toml initial commit Jul 27, 2018
ISSUE_TEMPLATE.md initial commit Jul 27, 2018
LICENSE initial commit Jul 27, 2018
Makefile
NOTICE add NOTICE file Jul 27, 2018
PULL_REQUEST_TEMPLATE.md
README.md

README.md

Build Status Go Report Card

vinyldns

A Golang client for the vinyldns DNS as a service API.

Usage

Basic usage requires instantiating a client and using the vinyldns/api.go methods to interact with vinyldns:

For example:

import "github.com/vinyldns/go-vinyldns/vinyldns"

client := vinyldns.NewClient(vinyldns.ClientConfiguration{
  "accessKey",
  "secretKey",
  "my-vinyldns-host.com",
})

// For example, fetch zones...
// returns vinyldns.Error, []vinyldns.Zone
zs, err := client.Zones()

Alternatively, NewClientFromEnv instantiates a client from the following environment variables:

VINYLDNS_ACCESS_KEY=
VINYLDNS_SECRET_KEY=
VINYLDNS_HOST=
import "github.com/vinyldns/go-vinyldns/vinyldns"

client := vinyldns.NewClientFromEnv()

See vinyldns/${resource}_resources.go files for the various vinyldns resource structs.

See vinyldns/${resource}.go files for the various vinyldns API methods.

Development

Install dependencies:

make deps

Run tests w/ code coverage:

make test

Install:

make install
You can’t perform that action at this time.