dns: gomodules.xyz/dns/googlecloud Index | Files

package googlecloud

import "gomodules.xyz/dns/googlecloud"

Package googlecloud implements a DNS provider for solving the DNS-01 challenge using Google Cloud DNS.


Package Files


type DNSProvider Uses

type DNSProvider struct {
    // contains filtered or unexported fields

DNSProvider is an implementation of the DNSProvider interface.

func Default Uses

func Default() (*DNSProvider, error)

NewDNSProvider returns a DNSProvider instance configured for Google Cloud DNS. Credentials must be passed in the environment variable: GCE_PROJECT.

func New Uses

func New(opt Options) (*DNSProvider, error)

NewDNSProviderCredentials uses the supplied credentials to return a DNSProvider instance configured for Google Cloud DNS.

func (*DNSProvider) DeleteARecord Uses

func (c *DNSProvider) DeleteARecord(domain string, ip string) error

func (*DNSProvider) DeleteARecords Uses

func (c *DNSProvider) DeleteARecords(domain string) error

func (*DNSProvider) EnsureARecord Uses

func (c *DNSProvider) EnsureARecord(domain string, ip string) error

func (*DNSProvider) Timeout Uses

func (c *DNSProvider) Timeout() (timeout, interval time.Duration)

Timeout customizes the timeout values used by the ACME package for checking DNS record validity.

type Options Uses

type Options struct {
    Project        string `json:"project" envconfig:"GCE_PROJECT"  form:"gcloud_project"`
    CredentialFile string `json:"credential_file" ignore:"true" form:"-"`
    CredentialJson string `json:"-" ignore:"true" form:"gcloud_credential_json"`
    JsonKey        []byte `json:"-" ignore:"true"  form:"-"`

Package googlecloud imports 12 packages (graph) and is imported by 3 packages. Updated 2019-06-08. Refresh now. Tools for package owners.