From 689f520e1dae40936490b47043559d182a817c89 Mon Sep 17 00:00:00 2001 From: Alex Pilon Date: Mon, 7 Jan 2019 18:04:34 -0500 Subject: provider: Require Go 1.11 in TravisCI and README provider: Run go fix provider: Run go fmt --- .travis.yml | 2 +- README.md | 4 ++-- statuscake/provider.go | 4 ++-- 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: - docker language: go go: -- 1.8.1 + - "1.11.x" install: # 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 ------------ - [Terraform](https://www.terraform.io/downloads.html) 0.10.x -- [Go](https://golang.org/doc/install) 1.8 (to build the provider plugin) +- [Go](https://golang.org/doc/install) 1.11 (to build the provider plugin) Building The Provider --------------------- @@ -37,7 +37,7 @@ Using the provider Developing the Provider --------------------------- -If 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`. +If 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`. To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory. 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 ( func Provider() terraform.ResourceProvider { return &schema.Provider{ Schema: map[string]*schema.Schema{ - "username": &schema.Schema{ + "username": { Type: schema.TypeString, Required: true, DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_USERNAME", nil), Description: "Username for StatusCake Account.", }, - "apikey": &schema.Schema{ + "apikey": { Type: schema.TypeString, Required: true, DefaultFunc: schema.EnvDefaultFunc("STATUSCAKE_APIKEY", nil), -- cgit v1.2.3