Documentation ¶
Overview ¶
Package googleclouddns provides functions to manage Google Cloud DNS entries
Index ¶
- Constants
- func GetProvider(ctx context.Context, typ api.ProviderType, zone string, ...) (api.Provider, error)
- type CloudDNS
- func (s *CloudDNS) CreateOrUpdateDNSRecord(ctx context.Context, zone, name, rtype, content string, ttl int, proxy bool) error
- func (s *CloudDNS) DeleteDNSRecord(ctx context.Context, zone, name string) error
- func (s *CloudDNS) GetDNSRecords(ctx context.Context, zone, name string) ([]api.Record, error)
- type CloudflareAPI
- func (s *CloudflareAPI) CreateOrUpdateDNSRecord(ctx context.Context, zone, name, rtype, content string, ttl int, proxy bool) error
- func (s *CloudflareAPI) DeleteDNSRecord(ctx context.Context, zone, name string) error
- func (s *CloudflareAPI) GetDNSRecords(ctx context.Context, zone, name string) ([]api.Record, error)
Constants ¶
View Source
const Cloudflare = "cloudflare"
View Source
const GoogleCloudDNS = "googleclouddns"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloudDNS ¶
type CloudDNS struct {
// contains filtered or unexported fields
}
func NewGoogleCloudDNSProvider ¶
func NewGoogleCloudDNSProvider(ctx context.Context, zone string, credentialsData map[string]string, logger api.Logger) (*CloudDNS, error)
NewGoogleCloudDNS creates a new Google Cloud DNS provider
func (*CloudDNS) CreateOrUpdateDNSRecord ¶
func (*CloudDNS) DeleteDNSRecord ¶
type CloudflareAPI ¶
type CloudflareAPI struct {
// contains filtered or unexported fields
}
func NewCloudflareProvider ¶
func NewCloudflareProvider(ctx context.Context, zone string, credentialsData map[string]string, logger api.Logger) (*CloudflareAPI, error)
NewCloudflareProvider creates a new Cloudflare DNS provider.
func (*CloudflareAPI) CreateOrUpdateDNSRecord ¶
func (s *CloudflareAPI) CreateOrUpdateDNSRecord(ctx context.Context, zone, name, rtype, content string, ttl int, proxy bool) error
CreateOrUpdateDNSRecord changes the existing record if found, or adds a new one
func (*CloudflareAPI) DeleteDNSRecord ¶
func (s *CloudflareAPI) DeleteDNSRecord(ctx context.Context, zone, name string) error
DeleteDNSRecord deletes DNS record specified by recordID in zone.
func (*CloudflareAPI) GetDNSRecords ¶
GetDNSRecords returns a list of DNS records for the given domain name. Error returned otherwise. if name is provided, that is used as a filter
Click to show internal directories.
Click to hide internal directories.