Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) GenCreateRecord(ctx context.Context, domain *Domain, record *Record) error
- func (c *Client) GenCreateRecords(ctx context.Context, domain *Domain, records *Records) error
- func (c *Client) GenDeleteRecord(ctx context.Context, domain *Domain, record *Record) error
- func (c *Client) GenDeleteRecords(ctx context.Context, domain *Domain, records *Records) error
- func (c *Client) GenUpdateRecords(ctx context.Context, domain *Domain, records *Records) error
- func (c *Client) GetDomain(ctx context.Context, zone string) (*Domain, error)
- func (c *Client) GetRecords(ctx context.Context, domain *Domain, recordName, recordType *string) (*[]Record, error)
- type Domain
- type Provider
- func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) GetRecords(ctx context.Context, zone string) ([]libdns.Record, error)
- func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- type Record
- type Records
Constants ¶
View Source
const ( DefaultSandboxBaseURL = "https://api.sandbox.dnsmadeeasy.com/V2.0" DefaultProdBaseURL = "https://api.dnsmadeeasy.com/V2.0" )
Default API endpoints.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL *url.URL HTTPClient *http.Client // contains filtered or unexported fields }
func (*Client) GenCreateRecord ¶
func (*Client) GenCreateRecords ¶
func (*Client) GenDeleteRecord ¶
func (*Client) GenDeleteRecords ¶
func (*Client) GenUpdateRecords ¶
type Provider ¶
type Provider struct { APIUrlBase string `json:"dnsme_api_url"` APIKey string `json:"dnsme_apikey"` APISecret string `json:"dnsme_secret"` // contains filtered or unexported fields }
Provider facilitates DNS record manipulation with <TODO: PROVIDER NAME>.
func (*Provider) AppendRecords ¶
func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
AppendRecords adds records to the zone. It returns the records that were added.
func (*Provider) DeleteRecords ¶
func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
DeleteRecords deletes the records from the zone. It returns the records that were deleted.
func (*Provider) GetRecords ¶
GetRecords lists all the records in the zone.
Click to show internal directories.
Click to hide internal directories.