Documentation ¶
Index ¶
- func Provider() terraform.ResourceProvider
- type Client
- func (client *Client) CreateRecord(zone string, record Record) (string, error)
- func (client *Client) DeleteRecordSet(zone string, name string, tpe string) error
- func (client *Client) DeleteRecordSetByID(zone string, recId string) error
- func (client *Client) ListRecords(zone string) ([]Record, error)
- func (client *Client) ListRecordsByID(zone string, recId string) ([]Record, error)
- func (client *Client) ListRecordsInRRSet(zone string, name string, tpe string) ([]Record, error)
- func (client *Client) ListZones() ([]ZoneInfo, error)
- func (client *Client) NotifyZone(zone string) error
- func (client *Client) RecordExists(zone string, name string, tpe string) (bool, error)
- func (client *Client) RecordExistsByID(zone string, recId string) (bool, error)
- func (client *Client) ReplaceRecordSet(zone string, rrSet ResourceRecordSet) (string, error)
- type Config
- type Record
- type ResourceRecordSet
- type ZoneInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Provider ¶
func Provider() terraform.ResourceProvider
Types ¶
type Client ¶
type Client struct { ServerUrl string // Location of PowerDNS server to use ApiKey string // REST API Static authentication key ApiVersion int // API version to use Http *http.Client }
func (*Client) CreateRecord ¶
Creates new record with single content entry
func (*Client) DeleteRecordSet ¶
Deletes record set from Zone
func (*Client) DeleteRecordSetByID ¶
Deletes record from Zone by it's ID
func (*Client) ListRecords ¶
Returns all records in Zone
func (*Client) ListRecordsByID ¶
func (*Client) ListRecordsInRRSet ¶
Returns only records of specified name and type
func (*Client) RecordExists ¶
Checks if requested record exists in Zone
func (*Client) RecordExistsByID ¶
Checks if requested record exists in Zone by it's ID
func (*Client) ReplaceRecordSet ¶
func (client *Client) ReplaceRecordSet(zone string, rrSet ResourceRecordSet) (string, error)
Creates new record set in Zone
type Record ¶
type ResourceRecordSet ¶
type ResourceRecordSet struct { Name string `json:"name"` Type string `json:"type"` ChangeType string `json:"changetype"` TTL int `json:"ttl"` // For API v1 Records []Record `json:"records,omitempty"` }
func (*ResourceRecordSet) Id ¶
func (rrSet *ResourceRecordSet) Id() string
Click to show internal directories.
Click to hide internal directories.