Documentation
¶
Overview ¶
Package libdnstemplate implements a DNS record management client compatible with the libdns interfaces for <PROVIDER NAME>. TODO: This package is a template only. Customize all godocs for actual implementation.
Index ¶
- Constants
- Variables
- type Provider
- func (p *Provider) AppendRecord(ctx context.Context, zone string, record libdns.Record) (libdns.Record, error)
- func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) DeleteRecord(ctx context.Context, zone string, record libdns.Record) (libdns.Record, error)
- func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) GetAllRecords(ctx context.Context, zone string) ([]libdns.Record, error)
- func (p *Provider) GetRecords(ctx context.Context, zone string) ([]libdns.Record, error)
- func (p *Provider) SetRecord(ctx context.Context, zone string, record libdns.Record) (libdns.Record, error)
- func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
Constants ¶
View Source
const ApiBase = "https://kasapi.kasserver.com/soap/wsdl/KasApi.wsdl"
Variables ¶
View Source
var ChachedRecords = make(map[string][]allinklRecord)
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// TODO: Put config fields here (with snake_case json struct tags on exported fields), for example:
KasLogin string
KasAuthPassword string
}
Provider facilitates DNS record manipulation with <TODO: PROVIDER NAME>.
func (*Provider) AppendRecord ¶
func (*Provider) AppendRecords ¶
func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
AppendRecords adds records to the zone. It returns the records that were added.
func (*Provider) DeleteRecord ¶
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 deleted.
func (*Provider) GetAllRecords ¶
func (*Provider) GetRecords ¶
GetRecords lists all the records in the zone.
Click to show internal directories.
Click to hide internal directories.