Documentation
¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) CreateDomainRecord(fqdn string, r Record) (err error)
- func (c *Client) Domain(fqdn string) (d Domain, err error)
- func (c *Client) DomainRecords(fqdn string) (rs []Record, err error)
- func (c *Client) Domains() (ds []Domain, err error)
- func (c *Client) RemoveDomainRecords(fqdn string, filter Record) (err error)
- type Configuration
- type Domain
- type Error
- type Record
Constants ¶
View Source
const ( RrsetTypeA = "A" RrsetTypeCNAME = "CNAME" RrsetTypeMX = "MX" RrsetTypeTXT = "TXT" )
Rrset types
Variables ¶
View Source
var (
APIKey = flag.String("gandi-api-key", "", "the API key")
)
Flags
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the client
func (*Client) CreateDomainRecord ¶
CreateDomainRecord creates a domain's record
func (*Client) DomainRecords ¶
DomainRecords list the domain's records
type Configuration ¶
type Configuration struct { APIKey string `toml:"api_key"` Sender astikit.HTTPSenderOptions }
Configuration represents the lib's configuration
func FlagConfig ¶
func FlagConfig() Configuration
FlagConfig generates a Configuration based on flags
type Domain ¶
type Domain struct { DomainHref string `json:"domain_href,omitempty"` DomainKeysHref string `json:"domain_keys_href,omitempty"` DomainRecordsHref string `json:"domain_records_href,omitempty"` FQDN string `json:"fqdn,omitempty"` ZoneHref string `json:"zone_href,omitempty"` ZoneRecordsHref string `json:"zone_records_href,omitempty"` ZoneUUID string `json:"zone_uuid,omitempty"` }
Domain represents a domain
Click to show internal directories.
Click to hide internal directories.