dnsimple for libdns
This package implements the libdns interfaces for dnsimple, allowing you to manage DNS records.
This provider expects the following configuration:
API_ACCESS_TOKEN
: an API key to authenticate calls to the provider, see api access token documentation (NOTE: using an account token is highly recommended)
ACCOUNT_ID
: identifier for the account (only needed if using a user access token), see accounts documentationAPI_URL
: hostname for the API to use (defaults toapi.dnsimple.com
), only useful for testing purposes, see sandox documentation
In order to run the tests, you need to create an account on the DNSimple sandbox environment. After setup, create a new DNS zone, and create an API_ACCESS_TOKEN
and take note of both. You will need both these values to run tests.
$ TEST_ZONE=example.com TEST_API_ACCESS_TOKEN=you_api_access_token go test -v
=== RUN Test_AppendRecords
--- PASS: Test_AppendRecords (1.23s)
=== RUN Test_DeleteRecords
--- PASS: Test_DeleteRecords (0.59s)
=== RUN Test_GetRecords
--- PASS: Test_GetRecords (0.58s)
=== RUN Test_SetRecords
--- PASS: Test_SetRecords (1.14s)
PASS
ok github.com/libdns/dnsimple 3.666s
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.