Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 1.08 KB

README.md

File metadata and controls

29 lines (17 loc) · 1.08 KB

Katapult for libdns

Go Reference

This package implements the libdns interfaces for Katapult, allowing you to manage DNS records.

Authentication

To use this package you will need a Katapult API token, see the Katapult docs for more information.

Example

See the example/main.go file for a demonstration on how to use the package. The example can be ran by specifying the API token and zone:

LIBDNS_KATAPULT_API_TOKEN=your-api-token LIBDNS_KATAPULT_ZONE=your-domain go run ./example

The example can be modified to try different functions available on the provider.

Tests

The tests use the Katapult API, therefore you should create and use a new and empty domain/zone.

You can then set the API token and zone when running the tests:

LIBDNS_KATAPULT_API_TOKEN=your-api-token LIBDNS_KATAPULT_ZONE=your-domain go test