Documentation ¶
Index ¶
- type Client
- func (p *Client) AddRecord(ctx context.Context, zone string, record libdns.Record) (libdns.Record, error)
- func (p *Client) DeleteRecord(ctx context.Context, zone string, record libdns.Record) (libdns.Record, error)
- func (p *Client) GetRecords(ctx context.Context, zone string) (records []libdns.Record, err error)
- func (p *Client) UpdateRecord(ctx context.Context, zone string, record libdns.Record) (libdns.Record, error)
- type Provider
- func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) (appendedRecords []libdns.Record, err error)
- func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) (deletedRecords []libdns.Record, err error)
- func (p *Provider) GetRecords(ctx context.Context, zone string) (records []libdns.Record, err error)
- func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) (setRecords []libdns.Record, err error)
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { Endpoint string Username string Password string // contains filtered or unexported fields }
Provider implements the libdns interfaces for west.cn
func (*Provider) AppendRecords ¶
func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) (appendedRecords []libdns.Record, err error)
AppendRecords adds records to the zone. It returns the records that were added.
func (*Provider) DeleteRecords ¶
func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) (deletedRecords []libdns.Record, err error)
DeleteRecords deletes the records from the zone.
Click to show internal directories.
Click to hide internal directories.