Documentation
¶
Index ¶
- type AddRecordRequest
- type AddRecordResponse
- type Client
- func (c *Client) AddRecord(zoneID int64, req *AddRecordRequest) (*AddRecordResponse, error)
- func (c *Client) AddRecordWithContext(ctx context.Context, zoneID int64, req *AddRecordRequest) (*AddRecordResponse, error)
- func (c *Client) DeleteRecord(zoneID int64, recordID int64) (*DeleteRecordResponse, error)
- func (c *Client) DeleteRecordWithContext(ctx context.Context, zoneID int64, recordID int64) (*DeleteRecordResponse, error)
- func (c *Client) ListRecords(zoneID int64) (*ListRecordsResponse, error)
- func (c *Client) ListRecordsWithContext(ctx context.Context, zoneID int64) (*ListRecordsResponse, error)
- func (c *Client) ListZones() (*ListZonesResponse, error)
- func (c *Client) ListZonesWithContext(ctx context.Context) (*ListZonesResponse, error)
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- type DNSRecord
- type DeleteRecordResponse
- type ListRecordsResponse
- type ListZonesResponse
- type ZoneRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRecordRequest ¶
type AddRecordRequest struct {
Type *string `json:"type,omitempty"`
Name *string `json:"name,omitempty"`
Port *int `json:"port,omitempty"`
Weight *int `json:"weight,omitempty"`
Priority *int `json:"priority,omitempty"`
Data *string `json:"data,omitempty"`
Flags *int `json:"flags,omitempty"`
Tag *string `json:"tag,omitempty"`
}
type AddRecordResponse ¶
type AddRecordResponse DNSRecord
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddRecord ¶
func (c *Client) AddRecord(zoneID int64, req *AddRecordRequest) (*AddRecordResponse, error)
func (*Client) AddRecordWithContext ¶
func (c *Client) AddRecordWithContext(ctx context.Context, zoneID int64, req *AddRecordRequest) (*AddRecordResponse, error)
func (*Client) DeleteRecord ¶
func (c *Client) DeleteRecord(zoneID int64, recordID int64) (*DeleteRecordResponse, error)
func (*Client) DeleteRecordWithContext ¶
func (*Client) ListRecords ¶
func (c *Client) ListRecords(zoneID int64) (*ListRecordsResponse, error)
func (*Client) ListRecordsWithContext ¶
func (*Client) ListZones ¶
func (c *Client) ListZones() (*ListZonesResponse, error)
func (*Client) ListZonesWithContext ¶
func (c *Client) ListZonesWithContext(ctx context.Context) (*ListZonesResponse, error)
type DNSRecord ¶
type DNSRecord struct {
ID int64 `json:"id"`
ZoneID int64 `json:"zoneID"`
Type string `json:"type"`
Name string `json:"name"`
Port int `json:"port"`
Weight int `json:"weight"`
Priority int `json:"priority"`
Data string `json:"data"`
ExpandedData string `json:"expandedData"`
Flags int `json:"flags,omitempty"`
Tag string `json:"tag,omitempty"`
}
type DeleteRecordResponse ¶
type DeleteRecordResponse DNSRecord
type ListRecordsResponse ¶
type ListRecordsResponse []*DNSRecord
type ListZonesResponse ¶
type ListZonesResponse []*ZoneRecord
Click to show internal directories.
Click to hide internal directories.