Documentation ¶
Index ¶
- func ChangeDNSRecord(change *dns.Change, svc *dns.Service, dnsProject, dnsZone string) error
- func DeleteDNSRecord(record *DNSRecord, dnsProject, dnsZone string) error
- func GetCloudDNSSvc() (*dns.Service, error)
- func MakeRecordSet(record *DNSRecord) *dns.ResourceRecordSet
- type DNSRecord
- type EnvConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeDNSRecord ¶
ChangeDNSRecord changes the given DNS record.
func DeleteDNSRecord ¶
DeleteDNSRecord deletes the given DNS record.
func GetCloudDNSSvc ¶
func GetCloudDNSSvc() (*dns.Service, error)
GetCloudDNSSvc returns the Cloud DNS Service stub. reference: https://github.com/jetstack/cert-manager/blob/master/pkg/issuer/acme/dns/clouddns/clouddns.go
func MakeRecordSet ¶
func MakeRecordSet(record *DNSRecord) *dns.ResourceRecordSet
MakeRecordSet creates a dns.ResourceRecordSet for a DNSRecord.
Types ¶
type EnvConfig ¶
type EnvConfig struct { FullHostName string `envconfig:"full_host_name" required:"true"` DomainName string `envconfig:"domain_name" required:"true"` DNSZone string `envconfig:"dns_zone" required:"true"` CloudDNSProject string `envconfig:"cloud_dns_project" required:"true"` IngressIP string `envconfig:"ingress_ip" required:"true"` }
EnvConfig is the config parsed from environment variables by envconfig.
Click to show internal directories.
Click to hide internal directories.