From 516d2a65e1846df48ca6cd12b2124f82aee84cf6 Mon Sep 17 00:00:00 2001 From: Michael Cross Date: Sat, 19 Mar 2016 18:20:01 +0000 Subject: [PATCH] googlecloud dns: Make package name match import path Also, add package description --- cli_handlers.go | 2 +- providers/dns/googlecloud/googlecloud.go | 4 +++- providers/dns/googlecloud/googlecloud_test.go | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cli_handlers.go b/cli_handlers.go index a178816f..60bd382e 100644 --- a/cli_handlers.go +++ b/cli_handlers.go @@ -99,7 +99,7 @@ func setup(c *cli.Context) (*Configuration, *Account, *acme.Client) { apiKey := os.Getenv("GANDI_API_KEY") provider, err = gandi.NewDNSProvider(apiKey) case "gcloud": - provider, err = googleclouddns.NewDNSProvider("") + provider, err = googlecloud.NewDNSProvider("") case "namecheap": provider, err = namecheap.NewDNSProvider("", "") case "route53": diff --git a/providers/dns/googlecloud/googlecloud.go b/providers/dns/googlecloud/googlecloud.go index 0933a881..ace3500f 100644 --- a/providers/dns/googlecloud/googlecloud.go +++ b/providers/dns/googlecloud/googlecloud.go @@ -1,4 +1,6 @@ -package googleclouddns +// Package googlecloud implements a DNS provider for solving the DNS-01 +// challenge using Google Cloud DNS. +package googlecloud import ( "fmt" diff --git a/providers/dns/googlecloud/googlecloud_test.go b/providers/dns/googlecloud/googlecloud_test.go index 4d03468e..156ad773 100644 --- a/providers/dns/googlecloud/googlecloud_test.go +++ b/providers/dns/googlecloud/googlecloud_test.go @@ -1,4 +1,4 @@ -package googleclouddns +package googlecloud import ( "os"