aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlex Pilon <apilon@hashicorp.com>2019-01-07 18:04:34 -0500
committerAlex Pilon <apilon@hashicorp.com>2019-01-07 18:04:34 -0500
commit689f520e1dae40936490b47043559d182a817c89 (patch)
treefbf4a9d15d29ef4272013b714580e9678083843f
parent9676fb99c312a3ba344b2ec0b9ef8b1ba7a46630 (diff)
downloadterraform-provider-statuscake-689f520e1dae40936490b47043559d182a817c89.tar.gz
terraform-provider-statuscake-689f520e1dae40936490b47043559d182a817c89.tar.zst
terraform-provider-statuscake-689f520e1dae40936490b47043559d182a817c89.zip
provider: Require Go 1.11 in TravisCI and README
provider: Run go fix provider: Run go fmt
-rw-r--r--.travis.yml2
-rw-r--r--README.md4
-rw-r--r--statuscake/provider.go4
3 files changed, 5 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 0eabb81..e85a5f2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,7 +4,7 @@ services:
4- docker 4- docker
5language: go 5language: go
6go: 6go:
7- 1.8.1 7 - "1.11.x"
8 8
9install: 9install:
10# This script is used by the Travis build to install a cookie for 10# This script is used by the Travis build to install a cookie for
diff --git a/README.md b/README.md
index ffed474..ccdb57d 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ Requirements
11------------ 11------------
12 12
13- [Terraform](https://www.terraform.io/downloads.html) 0.10.x 13- [Terraform](https://www.terraform.io/downloads.html) 0.10.x
14- [Go](https://golang.org/doc/install) 1.8 (to build the provider plugin) 14- [Go](https://golang.org/doc/install) 1.11 (to build the provider plugin)
15 15
16Building The Provider 16Building The Provider
17--------------------- 17---------------------
@@ -37,7 +37,7 @@ Using the provider
37Developing the Provider 37Developing the Provider
38--------------------------- 38---------------------------
39 39
40If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.8+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`. 40If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.11+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
41 41
42To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory. 42To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.
43 43
diff --git a/statuscake/provider.go b/statuscake/provider.go
index abca376..93c691f 100644
--- a/statuscake/provider.go
+++ b/statuscake/provider.go
@@ -9,13 +9,13 @@ import (
9func Provider() terraform.ResourceProvider { 9func Provider() terraform.ResourceProvider {
10 return &schema.Provider{ 10 return &schema.Provider{
11 Schema: map[string]*schema.Schema{ 11 Schema: map[string]*schema.Schema{
12 "username": &schema.Schema{ 12 "username": {
13 Type: schema.TypeString, 13 Type: schema.TypeString,
14 Required: true, 14 Required: true,
15 DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_USERNAME", nil), 15 DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_USERNAME", nil),
16 Description: "Username for StatusCake Account.", 16 Description: "Username for StatusCake Account.",
17 }, 17 },
18 "apikey": &schema.Schema{ 18 "apikey": {
19 Type: schema.TypeString, 19 Type: schema.TypeString,
20 Required: true, 20 Required: true,
21 DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_APIKEY", nil), 21 DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_APIKEY", nil),