Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an interface for all providers.
func SetupCloudflareAPI ¶
SetupCloudflareAPI setups CloudflareAPI.
type CloudflareAPI ¶
type CloudflareAPI struct {
// contains filtered or unexported fields
}
CloudflareAPI is API entrypoint for Cloudflare.
func NewCloudflareAPI ¶
func NewCloudflareAPI(client CloudflareAPIInterface) *CloudflareAPI
NewCloudflareAPI is a factory for NewCloudflareAPI.
type CloudflareAPIInterface ¶
type CloudflareAPIInterface interface { ZoneIDByName(zoneName string) (string, error) DNSRecords(ctx context.Context, zoneID string, rr cloudflare.DNSRecord) ([]cloudflare.DNSRecord, error) UpdateDNSRecord(ctx context.Context, zoneID, recordID string, rr cloudflare.DNSRecord) error CreateDNSRecord(ctx context.Context, zoneID string, rr cloudflare.DNSRecord) (*cloudflare.DNSRecordResponse, error) }
CloudflareAPIInterface is an interface for Cloudflare api for mocking.
type NotSupported ¶
type NotSupported struct {
Name string
}
NotSupported errors when a given provider is not supported.
func (*NotSupported) Error ¶
func (e *NotSupported) Error() string
Click to show internal directories.
Click to hide internal directories.