/
View dependency graph
Depends on
- dh-golang (dh-sequence-golang)
- golang-defaults (golang-any)
- golang-github-google-go-querystring (golang-github-google-go-querystring-dev)
- golang-github-google-uuid (golang-github-google-uuid-dev)
- golang-github-jarcoal-httpmock (golang-github-jarcoal-httpmock-dev)
- golang-github-json-iterator-go (golang-github-json-iterator-go-dev)
- golang-github-miekg-dns (golang-github-miekg-dns-dev)
- golang-golang-x-time (golang-golang-x-time-dev)
- golang-gomega (golang-gomega-dev)
- debhelper-compat, golang-github-onsi-ginkgo-dev
README (full)
IIJ DNS Platform Service API for Go
- API Library for IIJ DNS Platform Service.
- This is not an official IIJ software.
Usage
package main
import (
"fmt"
"os"
"github.com/mimuret/golang-iij-dpf/pkg/api"
"github.com/mimuret/golang-iij-dpf/pkg/apis/dpf/v1/core"
)
func main() {
token := os.Getenv("DPF_TOKEN")
cl := api.NewClient(token, "", nil)
zoneList := &core.ZoneList{}
searchParam := &core.ZoneListSearchKeywords{Name: api.KeywordsString{"example.jp"}}
req, err := cl.ListAll(zoneList, searchParam)
if err != nil {
panic(err)
}
fmt.Printf("RequestID: %s\n", req)
for _, item := range zoneList.Items {
fmt.Println(item)
}
}
| dir | .github/ |
| dir | debian/ |
| dir | pkg/ |
| file | .gitignore |
| file | .golangci.yaml |
| file | LICENSE |
| file | Makefile |
| file | README.md |
| file | boilerplate.go.txt |
| file | codecov.yml |
| file | go.mod |
| file | go.sum |