go-idcf

module
v0.0.0-...-8420c95 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2016 License: MIT

README

go-idcf

Golang library for IDCF Cloud services

Example

DNS
package main

import (
	"fmt"

	"github.com/atsaki/go-idcf/dns"
)

func main() {

	APIKey := "IDCF_API_KEY"
	SecretKey := "IDCF_SECRET_KEY"

	c, _ := dns.NewClient(APIKey, SecretKey)

	zs, _ := c.Zones()
	for _, z := range zs {
		fmt.Printf("Zone: %s\n", z.Name)
		rs, _ := c.Records(z.UUID)
		for _, r := range rs {
			fmt.Printf("%s\t%s\t%v\n", r.Name, r.Type, r.Content)
		}
		fmt.Println("")
	}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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