Documentation
¶
Index ¶
- type Provider
- func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) GetRecords(ctx context.Context, zone string) ([]libdns.Record, error)
- func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
APITenantID string `json:"api_tenant_id,omitempty"` // ConoHa API tenant ID
APIUserID string `json:"api_user_id,omitempty"` // ConoHa API user ID
APIPassword string `json:"api_password,omitempty"` // ConoHa API password
Region string `json:"region,omitempty"` // ConoHa API region (e.g. "c3j1")
// contains filtered or unexported fields
}
Provider facilitates DNS record management using the ConoHa VPS API (v3.0). It implements the libdns interfaces for getting, appending, setting, and deleting DNS records.
func (*Provider) AppendRecords ¶
func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
AppendRecords adds the specified records to the zone. It returns the successfully added records.
func (*Provider) DeleteRecords ¶
func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
DeleteRecords deletes the specified records from the zone. It returns the records that were successfully deleted.
func (*Provider) GetRecords ¶
GetRecords lists all the DNS records in the specified zone.
Click to show internal directories.
Click to hide internal directories.