Help us shape the future of Go! Take the 2026 Go Developer Survey

netlify

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetlifyProvider

func NetlifyProvider() sauce.DNSProvider

Types

type Client

type Client struct {
	HTTPClient *http.Client
	BaseURL    string
	// contains filtered or unexported fields
}

Client Netlify API client.

func NewClient

func NewClient(token string) *Client

NewClient creates a new Client.

func (*Client) CreateRecord

func (c *Client) CreateRecord(zoneID string, record *sauce.DNSRecord) (*sauce.DNSRecord, error)

CreateRecord creates a DNS records.

func (*Client) GetPublicIP

func (c *Client) GetPublicIP() (addr string, err error)

func (*Client) GetRecords

func (c *Client) GetRecords(zoneID string) ([]*sauce.DNSRecord, error)

GetRecords gets a DNS records.

func (*Client) RemoveRecord

func (c *Client) RemoveRecord(zoneID, recordID string) error

RemoveRecord removes a DNS records.

Jump to

Keyboard shortcuts

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