gandi

package module
v0.0.0-...-4717fdd Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 2 Imported by: 0

README

Gandi Go library

GoDoc License Go

This library interacts with Gandi's API, to manage Gandi services. This API returns some data as HTTP headers, please note those are ignored by this library.

A simple CLI is also shipped with this library. It returns responses to the requests in JSON. Build it with go build -o gandi ./cmd.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDomainClient

func NewDomainClient(apikey string, config Config) *domain.Domain

NewDomainClient returns a client to the Gandi Domains API It expects an API key, available from https://account.gandi.net/en/

func NewLiveDNSClient

func NewLiveDNSClient(apikey string, config Config) *livedns.LiveDNS

NewLiveDNSClient returns a client to the Gandi Domains API It expects an API key, available from https://account.gandi.net/en/

Types

type Config

type Config struct {
	// SharingID is the Organization ID, available from the Organization API
	SharingID string
	// Debug enables verbose debugging of HTTP calls
	Debug bool
	// DryRun prevents the API from making changes. Only certain API calls support it.
	DryRun bool
}

Config manages common config for all Gandi API types

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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