Documentation
¶
Overview ¶
Package gcdnsp provides a Google Cloud DNS client that satisfies autocertdns.Provisioner.
Index ¶
- Constants
- func IgnorePropagationErrors(c *Client) error
- type Client
- type Option
- func CheckDelay(d time.Duration) Option
- func DNSService(dnsService *dns.Service) Option
- func Domain(domain string) Option
- func Errorf(f func(string, ...interface{})) Option
- func GoogleComputeCredentials(serviceAccount string) Option
- func GoogleServiceAccountCredentialsFile(path string) Option
- func GoogleServiceAccountCredentialsJSON(buf []byte) Option
- func HTTPClient(client *http.Client) Option
- func Logf(f func(string, ...interface{})) Option
- func ManagedZone(managedZone string) Option
- func Nameservers(nameservers ...string) Option
- func ProjectID(projectID string) Option
- func PropagationWait(d time.Duration) Option
- func ProvisionDelay(d time.Duration) Option
Constants ¶
const ( // DefaultPropagationWait is the default propagation waiting time. DefaultPropagationWait = 60 * time.Second // DefaultCheckDelay is the default check delay DefaultCheckDelay = 100 * time.Millisecond // DefaultProvisionDelay is the default after provision wait delay. DefaultProvisionDelay = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func IgnorePropagationErrors ¶
IgnorePropagationErrors is a Client option to ignore propagation errors.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps a Google Cloud DNS service.
func New ¶
New wraps a Google Cloud DNS Service in order to handle DNS provisioning requests (for use with the autocertdns.Manager).
type Option ¶
Option represents a Google Cloud DNS Client option.
func CheckDelay ¶
CheckDelay is a Client option to set the delay between DNS name propagation checks.
func DNSService ¶
DNSService is an option that sets the Google Cloud DNS service to use.
func GoogleComputeCredentials ¶
GoogleComputeCredentials is an option that loads the Google Service Account credentials from the GCE metadata associated with the GCE compute instance.
If serviceAccount is empty, then the default service account credentials associated with the GCE instance will be used.
func GoogleServiceAccountCredentialsFile ¶
GoogleServiceAccountCredentialsFile is an option that loads Google Service Account credentials for use with the Client from the specified file.
Google Service Account credentials can be downloaded from the Google Cloud console: https://console.cloud.google.com/iam-admin/serviceaccounts/
func GoogleServiceAccountCredentialsJSON ¶
GoogleServiceAccountCredentialsJSON is an option that creates the Google Cloud DNS service using the supplied Google service account credentials.
Google Service Account credentials can be downloaded from the Google Cloud console: https://console.cloud.google.com/iam-admin/serviceaccounts/
func HTTPClient ¶
HTTPClient is a Client option that sets the http.Client used.
func ManagedZone ¶
ManagedZone is a Client option to set the managed zone.
func Nameservers ¶
Nameservers is a Client option to set the nameservers to check.
func PropagationWait ¶
PropagationWait is a Client option to set the propagation wait timeout.
func ProvisionDelay ¶
ProvisionDelay is a Client option to set the delay after a successful provision and name propagation.