Documentation ¶
Overview ¶
Package libdnstemplate implements a DNS record management client compatible with the libdns interfaces for ACMEProxy.
Index ¶
- type Credentials
- type HTTPClient
- 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 Credentials ¶
type Credentials struct { Username string `json:"username,omitempty"` // Username represents the user's name for authentication. Password string `json:"password,omitempty"` // Password represents the user's password for authentication. }
Credentials represents the username and password required for authentication. The fields are optional and can be omitted.
type Provider ¶
type Provider struct { // Credentials are the username and password required for authentication. // The fields are optional and can be omitted. Credentials // Endpoint is the URL of the ACMEProxy server. Endpoint string `json:"endpoint"` // HTTPClient is the client used to communicate with the ACMEProxy server. // If nil, a default client will be used. HTTPClient HTTPClient }
Provider facilitates DNS record manipulation with ACMEProxy.
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. It does the same as SetRecords.
func (*Provider) DeleteRecords ¶
func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
DeleteRecords deletes the records from the zone. It returns the records that were deleted.
func (*Provider) GetRecords ¶
GetRecords lists all the records in the zone. This is not supported by the ACMEProxy provider.
Click to show internal directories.
Click to hide internal directories.