Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateRecord(record *RecordCreateRequest) (*Record, error)
- func (c *Client) DeleteRecord(id string) error
- func (c *Client) GetAllRecords() ([]Record, error)
- func (c *Client) GetAllZones() ([]Zone, error)
- func (c *Client) GetRecord(id string, zoneName string) (*Record, error)
- func (c *Client) GetZone(id string) (*Zone, error)
- func (c *Client) UpdateRecord(id string, record *RecordUpdateRequest) (*Record, error)
- type Record
- type RecordCreateRequest
- type RecordUpdateRequest
- type SOA
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateRecord ¶
func (c *Client) CreateRecord(record *RecordCreateRequest) (*Record, error)
func (*Client) DeleteRecord ¶
func (*Client) GetAllRecords ¶
func (*Client) GetAllZones ¶
func (*Client) UpdateRecord ¶
func (c *Client) UpdateRecord(id string, record *RecordUpdateRequest) (*Record, error)
type Record ¶
type Record struct {
ID string `json:"id"`
ZoneID string `json:"zoneId"`
ZoneName string `json:"zoneName"`
Type string `json:"type"`
Name string `json:"name"`
Content string `json:"content"`
TTL int `json:"ttl"`
Comments string `json:"comments"`
LastChangeDate string `json:"lastChangeDate"`
Tenant string `json:"tenant"`
}
type RecordCreateRequest ¶
type RecordUpdateRequest ¶
Click to show internal directories.
Click to hide internal directories.