Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateZoneRecord(ctx context.Context, zone *Zone, record Record) error
- func (c *Client) DeleteZoneRecord(ctx context.Context, zone *Zone, record Record) error
- func (c *Client) GetZoneRecords(ctx context.Context, name string, zone *Zone) ([]Record, error)
- func (c *Client) GetZones(ctx context.Context, domain string) (*Zone, error)
- type ErrorResponse
- type Record
- type Records
- type Zone
- type Zones
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client the API client for Stackpath.
func (*Client) CreateZoneRecord ¶
CreateZoneRecord creates a record. https://stackpath.dev/reference/createzonerecord
func (*Client) DeleteZoneRecord ¶
DeleteZoneRecord deletes a record. https://stackpath.dev/reference/deletezonerecord
func (*Client) GetZoneRecords ¶
GetZoneRecords gets all records. https://stackpath.dev/reference/getzonerecords
type ErrorResponse ¶
ErrorResponse the API error response representation.
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type Record ¶
type Record struct { ID string `json:"id,omitempty"` Name string `json:"name"` Type string `json:"type"` TTL int `json:"ttl"` Data string `json:"data"` }
Record a DNS record representation.
Click to show internal directories.
Click to hide internal directories.