client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package client contains the http client for the GoDaddy API

Package client contains the http client for the GoDaddy API

Package client contains the http client for the GoDaddy API

Package client contains the http client for the GoDaddy API

Package client contains the http client for the GoDaddy API

Package client contains the http client for the GoDaddy API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL   *url.URL
	APIKey    string
	APISecret string
	UserAgent string

	HTTPClient *http.Client
}

Client is the HTTPClient for the GoDaddy API

func CreateClient

func CreateClient(baseURL string, apiKey string, apiSecret string, c *http.Client) (*Client, error)

CreateClient creates an HTTPClient for the GoDaddy API

func (*Client) AddDNSRecord

func (c *Client) AddDNSRecord(domain string, dnsType string, dnsName string, dnsValue string, dnsTTL int, dnsPrority int) error

AddDNSRecord adds the indicated domain's DNS entriy

func (*Client) GetDNSRecords

func (c *Client) GetDNSRecords(domain string, dnsType string, dnsName string) ([]types.Record, error)

GetDNSRecords retrieves the indicated domain's DNS entries info

func (*Client) GetDomains

func (c *Client) GetDomains(statusGroups []string, status string) ([]types.Domain, error)

GetDomains retrieves the domains from the GoDaddy API

func (*Client) RemoveDNSRecords

func (c *Client) RemoveDNSRecords(domain string, dnsType string, dnsName string) error

RemoveDNSRecords removes the indicated domain's DNS entries by type and name

func (*Client) UpdateDNSRecord

func (c *Client) UpdateDNSRecord(domain string, dnsType string, dnsName string, dnsValue string, dnsTTL int, dnsPrority int) error

UpdateDNSRecord updates the indicated domain's DNS entriy

Jump to

Keyboard shortcuts

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