Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat(internal): update Terraform's internal packages
feat(go): upgrade Terraboard's Go version to v1.17
- Loading branch information
Showing
303 changed files
with
30,224 additions
and
861 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.15 as builder | ||
FROM golang:1.17 as builder | ||
WORKDIR /opt/build | ||
COPY . . | ||
RUN make build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.15 | ||
FROM golang:1.17 | ||
WORKDIR /opt/build | ||
COPY . . | ||
RUN make install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,113 @@ | ||
module github.com/camptocamp/terraboard | ||
|
||
go 1.15 | ||
go 1.17 | ||
|
||
require ( | ||
cloud.google.com/go/storage v1.12.0 | ||
github.com/DATA-DOG/go-sqlmock v1.5.0 | ||
github.com/agext/levenshtein v1.2.3 | ||
github.com/apparentlymart/go-cidr v1.1.0 | ||
github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0 | ||
github.com/apparentlymart/go-versions v1.0.1 | ||
github.com/aws/aws-sdk-go v1.37.2 | ||
github.com/bmatcuk/doublestar v1.1.5 | ||
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f | ||
github.com/davecgh/go-spew v1.1.1 | ||
github.com/go-openapi/jsonreference v0.19.6 // indirect | ||
github.com/go-openapi/swag v0.19.15 // indirect | ||
github.com/go-test/deep v1.0.3 | ||
github.com/google/go-cmp v0.5.6 | ||
github.com/google/uuid v1.2.0 | ||
github.com/gorilla/mux v1.8.0 | ||
github.com/gusaul/go-dynamock v0.0.0-20210107061312-3e989056e1e6 | ||
github.com/hashicorp/errwrap v1.1.0 | ||
github.com/hashicorp/go-cleanhttp v0.5.1 | ||
github.com/hashicorp/go-getter v1.5.2 | ||
github.com/hashicorp/go-hclog v0.15.0 | ||
github.com/hashicorp/go-multierror v1.1.1 | ||
github.com/hashicorp/go-retryablehttp v0.6.8 | ||
github.com/hashicorp/go-slug v0.6.0 // indirect | ||
github.com/hashicorp/go-tfe v0.15.0 | ||
github.com/hashicorp/go-uuid v1.0.1 | ||
github.com/hashicorp/go-version v1.2.1 | ||
github.com/hashicorp/hcl/v2 v2.10.0 | ||
github.com/hashicorp/hcl/v2 v2.12.0 | ||
github.com/hashicorp/terraform v1.0.2 | ||
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 | ||
github.com/jackc/pgproto3/v2 v2.0.7 // indirect | ||
github.com/jessevdk/go-flags v1.5.0 | ||
github.com/lib/pq v1.9.0 // indirect | ||
github.com/machinebox/graphql v0.2.2 | ||
github.com/mailru/easyjson v0.7.7 // indirect | ||
github.com/matryer/is v1.4.0 // indirect | ||
github.com/mitchellh/copystructure v1.2.0 | ||
github.com/mitchellh/go-wordwrap v1.0.1 // indirect | ||
github.com/mitchellh/panicwrap v1.0.0 | ||
github.com/mitchellh/go-homedir v1.1.0 | ||
github.com/pmezard/go-difflib v1.0.0 | ||
github.com/sirupsen/logrus v1.7.0 | ||
github.com/spf13/afero v1.2.2 | ||
github.com/stretchr/testify v1.7.0 | ||
github.com/swaggo/files v0.0.0-20210815190702-a29dd2bc99b2 // indirect | ||
github.com/swaggo/http-swagger v1.1.1 | ||
github.com/swaggo/swag v1.7.3 | ||
github.com/zclconf/go-cty v1.9.0 | ||
github.com/zclconf/go-cty-yaml v1.0.2 | ||
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a | ||
golang.org/x/mod v0.4.2 | ||
golang.org/x/net v0.0.0-20211005001312-d4b1ae081e3b | ||
golang.org/x/sys v0.0.0-20211004093028-2c5d950f24ef // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 // indirect | ||
golang.org/x/tools v0.1.7 // indirect | ||
golang.org/x/sys v0.0.0-20211004093028-2c5d950f24ef | ||
golang.org/x/text v0.3.7 | ||
google.golang.org/api v0.44.0-impersonate-preview | ||
gopkg.in/yaml.v2 v2.4.0 | ||
gorm.io/datatypes v1.0.1 | ||
gorm.io/driver/postgres v1.1.0 | ||
gorm.io/gorm v1.21.10 | ||
) | ||
|
||
require ( | ||
cloud.google.com/go v0.79.0 // indirect | ||
github.com/KyleBanks/depth v1.2.1 // indirect | ||
github.com/PuerkitoBio/purell v1.1.1 // indirect | ||
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect | ||
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect | ||
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect | ||
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f // indirect | ||
github.com/fatih/color v1.7.0 // indirect | ||
github.com/go-openapi/jsonpointer v0.19.5 // indirect | ||
github.com/go-openapi/jsonreference v0.19.6 // indirect | ||
github.com/go-openapi/spec v0.20.3 // indirect | ||
github.com/go-openapi/swag v0.19.15 // indirect | ||
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect | ||
github.com/golang/protobuf v1.4.3 // indirect | ||
github.com/google/go-querystring v1.0.0 // indirect | ||
github.com/googleapis/gax-go/v2 v2.0.5 // indirect | ||
github.com/hashicorp/go-safetemp v1.0.0 // indirect | ||
github.com/hashicorp/go-slug v0.6.0 // indirect | ||
github.com/hashicorp/jsonapi v0.0.0-20210518035559-1e50d74c8db3 // indirect | ||
github.com/jackc/chunkreader/v2 v2.0.1 // indirect | ||
github.com/jackc/pgconn v1.8.1 // indirect | ||
github.com/jackc/pgio v1.0.0 // indirect | ||
github.com/jackc/pgpassfile v1.0.0 // indirect | ||
github.com/jackc/pgproto3/v2 v2.0.7 // indirect | ||
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect | ||
github.com/jackc/pgtype v1.7.0 // indirect | ||
github.com/jackc/pgx/v4 v4.11.0 // indirect | ||
github.com/jinzhu/inflection v1.0.0 // indirect | ||
github.com/jinzhu/now v1.1.2 // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/jstemmer/go-junit-report v0.9.1 // indirect | ||
github.com/klauspost/compress v1.11.2 // indirect | ||
github.com/lib/pq v1.9.0 // indirect | ||
github.com/mailru/easyjson v0.7.7 // indirect | ||
github.com/matryer/is v1.4.0 // indirect | ||
github.com/mattn/go-colorable v0.1.6 // indirect | ||
github.com/mattn/go-isatty v0.0.12 // indirect | ||
github.com/mitchellh/go-testing-interface v1.0.0 // indirect | ||
github.com/mitchellh/go-wordwrap v1.0.1 // indirect | ||
github.com/mitchellh/reflectwalk v1.0.2 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/swaggo/files v0.0.0-20210815190702-a29dd2bc99b2 // indirect | ||
github.com/ulikunitz/xz v0.5.8 // indirect | ||
go.opencensus.io v0.23.0 // indirect | ||
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 // indirect | ||
golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84 // indirect | ||
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 // indirect | ||
golang.org/x/tools v0.1.7 // indirect | ||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect | ||
google.golang.org/appengine v1.6.7 // indirect | ||
google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6 // indirect | ||
google.golang.org/grpc v1.36.0 // indirect | ||
google.golang.org/protobuf v1.25.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package addrs | ||
|
||
import "fmt" | ||
|
||
// Check is the address of a check rule within a checkable object. | ||
// | ||
// This represents the check rule globally within a configuration, and is used | ||
// during graph evaluation to identify a condition result object to update with | ||
// the result of check rule evaluation. | ||
// | ||
// The check address is not distinct from resource traversals, and check rule | ||
// values are not intended to be available to the language, so the address is | ||
// not Referenceable. | ||
// | ||
// Note also that the check address is only relevant within the scope of a run, | ||
// as reordering check blocks between runs will result in their addresses | ||
// changing. | ||
type Check struct { | ||
Container Checkable | ||
Type CheckType | ||
Index int | ||
} | ||
|
||
func (c Check) String() string { | ||
container := c.Container.String() | ||
switch c.Type { | ||
case ResourcePrecondition: | ||
return fmt.Sprintf("%s.preconditions[%d]", container, c.Index) | ||
case ResourcePostcondition: | ||
return fmt.Sprintf("%s.postconditions[%d]", container, c.Index) | ||
case OutputPrecondition: | ||
return fmt.Sprintf("%s.preconditions[%d]", container, c.Index) | ||
default: | ||
// This should not happen | ||
return fmt.Sprintf("%s.conditions[%d]", container, c.Index) | ||
} | ||
} | ||
|
||
// Checkable is an interface implemented by all address types that can contain | ||
// condition blocks. | ||
type Checkable interface { | ||
checkableSigil() | ||
|
||
// Check returns the address of an individual check rule of a specified | ||
// type and index within this checkable container. | ||
Check(CheckType, int) Check | ||
String() string | ||
} | ||
|
||
var ( | ||
_ Checkable = AbsResourceInstance{} | ||
_ Checkable = AbsOutputValue{} | ||
) | ||
|
||
type checkable struct { | ||
} | ||
|
||
func (c checkable) checkableSigil() { | ||
} | ||
|
||
// CheckType describes the category of check. | ||
//go:generate go run golang.org/x/tools/cmd/stringer -type=CheckType check.go | ||
type CheckType int | ||
|
||
const ( | ||
InvalidCondition CheckType = 0 | ||
ResourcePrecondition CheckType = 1 | ||
ResourcePostcondition CheckType = 2 | ||
OutputPrecondition CheckType = 3 | ||
) | ||
|
||
// Description returns a human-readable description of the check type. This is | ||
// presented in the user interface through a diagnostic summary. | ||
func (c CheckType) Description() string { | ||
switch c { | ||
case ResourcePrecondition: | ||
return "Resource precondition" | ||
case ResourcePostcondition: | ||
return "Resource postcondition" | ||
case OutputPrecondition: | ||
return "Module output value precondition" | ||
default: | ||
// This should not happen | ||
return "Condition" | ||
} | ||
} |
Oops, something went wrong.