Documentation
¶
Index ¶
- type ApiBaseUri
- type Client
- type Provider
- func (p *Provider) AppendRecords(ctx context.Context, zone string, recs []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) DebugOutput() io.Writer
- func (p *Provider) DebugOutputLevel() provider.OutputLevel
- func (p *Provider) DeleteRecords(ctx context.Context, zone string, recs []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) GetApiKey() string
- func (p *Provider) GetBaseUri() *url.URL
- func (p *Provider) GetRecords(ctx context.Context, zone string) ([]libdns.Record, error)
- func (p *Provider) ListZones(ctx context.Context) ([]libdns.Zone, error)
- func (p *Provider) SetDebug(level provider.OutputLevel, writer io.Writer)
- func (p *Provider) SetRecords(ctx context.Context, zone string, recs []libdns.Record) ([]libdns.Record, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiBaseUri ¶ added in v1.0.0
func DefaultApiBaseUri ¶ added in v1.0.0
func DefaultApiBaseUri() *ApiBaseUri
func (*ApiBaseUri) MarshalJSON ¶ added in v1.0.0
func (a *ApiBaseUri) MarshalJSON() ([]byte, error)
func (*ApiBaseUri) UnmarshalJSON ¶ added in v1.0.0
func (a *ApiBaseUri) UnmarshalJSON(data []byte) error
type Provider ¶
type Provider struct {
// ApiKey used for authenticating the mijn.host api see:
// https://mijn.host/api/doc/doc-343216#obtaining-your-api-key
ApiKey string `json:"api_key"`
// BaseUri used for the api calls and will default to https://mijn.host/api/v2/
BaseUri *ApiBaseUri `json:"base_uri"`
// DebugLevel sets the verbosity for logging API requests and responses.
DebugLevel provider.OutputLevel `json:"debug_level"`
// DebugOut defines the output destination for debug logs.
// Defaults to standard output (STDOUT).
DebugOut io.Writer `json:"-"`
// contains filtered or unexported fields
}
func (*Provider) AppendRecords ¶
func (*Provider) DebugOutput ¶ added in v1.1.0
func (*Provider) DebugOutputLevel ¶ added in v1.1.0
func (p *Provider) DebugOutputLevel() provider.OutputLevel
func (*Provider) DeleteRecords ¶
func (*Provider) GetBaseUri ¶ added in v1.0.0
func (*Provider) GetRecords ¶
Click to show internal directories.
Click to hide internal directories.