├── go.mod ├── doc.go ├── README.md ├── plugin.go ├── config.go ├── util.go ├── CHANGELOG.md ├── guard.go ├── helper.go ├── working_dir.go ├── LICENSE └── go.sum /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/terraform-plugin-test/v2 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/hashicorp/go-getter v1.5.3 7 | github.com/hashicorp/terraform-exec v0.13.3 8 | github.com/hashicorp/terraform-json v0.10.0 9 | ) 10 | -------------------------------------------------------------------------------- /doc.go: -------------------------------------------------------------------------------- 1 | // Package tftest contains utilities to help with writing tests for 2 | // Terraform plugins. 3 | // 4 | // This is not a package for testing configurations or modules written in the 5 | // Terraform language. It is for testing the plugins that allow Terraform to 6 | // manage various cloud services and other APIs. 7 | package tftest 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **ARCHIVED: This project has been merged into [terraform-plugin-sdk](github.com/hashicorp/terraform-plugin-sdk) as the `plugintest` package.** 2 | 3 | 4 | # Terraform Plugin Test Helper Library 5 | 6 | This is an **experimental** library for testing Terraform plugins in their 7 | natural habitat as child processes of a real `terraform` executable. 8 | -------------------------------------------------------------------------------- /plugin.go: -------------------------------------------------------------------------------- 1 | package tftest 2 | 3 | import ( 4 | "os" 5 | ) 6 | 7 | // RunningAsPlugin returns true if it detects the usual Terraform plugin 8 | // detection environment variables, suggesting that the current process is 9 | // being launched as a plugin server. 10 | func RunningAsPlugin() bool { 11 | const cookieVar = "TF_PLUGIN_MAGIC_COOKIE" 12 | const cookieVal = "d602bf8f470bc67ca7faa0386276bbdd4330efaf76d1a219cb4d6991ca9872b2" 13 | 14 | return os.Getenv(cookieVar) == cookieVal 15 | } 16 | -------------------------------------------------------------------------------- /config.go: -------------------------------------------------------------------------------- 1 | package tftest 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | "io/ioutil" 7 | "os" 8 | 9 | "github.com/hashicorp/terraform-exec/tfinstall" 10 | ) 11 | 12 | // Config is used to configure the test helper. In most normal test programs 13 | // the configuration is discovered automatically by an Init* function using 14 | // DiscoverConfig, but this is exposed so that more complex scenarios can be 15 | // implemented by direct configuration. 16 | type Config struct { 17 | SourceDir string 18 | TerraformExec string 19 | execTempDir string 20 | PreviousPluginExec string 21 | } 22 | 23 | // DiscoverConfig uses environment variables and other means to automatically 24 | // discover a reasonable test helper configuration. 25 | func DiscoverConfig(sourceDir string) (*Config, error) { 26 | tfVersion := os.Getenv("TF_ACC_TERRAFORM_VERSION") 27 | tfPath := os.Getenv("TF_ACC_TERRAFORM_PATH") 28 | 29 | tempDir := os.Getenv("TF_ACC_TEMP_DIR") 30 | tfDir, err := ioutil.TempDir(tempDir, "tftest-terraform") 31 | if err != nil { 32 | return nil, fmt.Errorf("failed to create temp dir: %w", err) 33 | } 34 | 35 | finders := []tfinstall.ExecPathFinder{} 36 | switch { 37 | case tfPath != "": 38 | finders = append(finders, tfinstall.ExactPath(tfPath)) 39 | case tfVersion != "": 40 | finders = append(finders, tfinstall.ExactVersion(tfVersion, tfDir)) 41 | default: 42 | finders = append(finders, tfinstall.LookPath(), tfinstall.LatestVersion(tfDir, true)) 43 | } 44 | tfExec, err := tfinstall.Find(context.Background(), finders...) 45 | if err != nil { 46 | return nil, err 47 | } 48 | 49 | return &Config{ 50 | SourceDir: sourceDir, 51 | TerraformExec: tfExec, 52 | execTempDir: tfDir, 53 | }, nil 54 | } 55 | -------------------------------------------------------------------------------- /util.go: -------------------------------------------------------------------------------- 1 | package tftest 2 | 3 | import ( 4 | "os" 5 | "path/filepath" 6 | ) 7 | 8 | func symlinkFile(src string, dest string) (err error) { 9 | err = os.Symlink(src, dest) 10 | if err == nil { 11 | srcInfo, err := os.Stat(src) 12 | if err != nil { 13 | err = os.Chmod(dest, srcInfo.Mode()) 14 | } 15 | } 16 | 17 | return 18 | } 19 | 20 | // symlinkDir is a simplistic function for recursively symlinking all files in a directory to a new path. 21 | // It is intended only for limited internal use and does not cover all edge cases. 22 | func symlinkDir(srcDir string, destDir string) (err error) { 23 | srcInfo, err := os.Stat(srcDir) 24 | if err != nil { 25 | return err 26 | } 27 | 28 | err = os.MkdirAll(destDir, srcInfo.Mode()) 29 | if err != nil { 30 | return err 31 | } 32 | 33 | directory, _ := os.Open(srcDir) 34 | defer directory.Close() 35 | objects, err := directory.Readdir(-1) 36 | 37 | for _, obj := range objects { 38 | srcPath := filepath.Join(srcDir, obj.Name()) 39 | destPath := filepath.Join(destDir, obj.Name()) 40 | 41 | if obj.IsDir() { 42 | err = symlinkDir(srcPath, destPath) 43 | if err != nil { 44 | return err 45 | } 46 | } else { 47 | err = symlinkFile(srcPath, destPath) 48 | if err != nil { 49 | return err 50 | } 51 | } 52 | 53 | } 54 | return 55 | } 56 | 57 | // symlinkDirectoriesOnly finds only the first-level child directories in srcDir 58 | // and symlinks them into destDir. 59 | // Unlike symlinkDir, this is done non-recursively in order to limit the number 60 | // of file descriptors used. 61 | func symlinkDirectoriesOnly(srcDir string, destDir string) (err error) { 62 | srcInfo, err := os.Stat(srcDir) 63 | if err != nil { 64 | return err 65 | } 66 | 67 | err = os.MkdirAll(destDir, srcInfo.Mode()) 68 | if err != nil { 69 | return err 70 | } 71 | 72 | directory, err := os.Open(srcDir) 73 | if err != nil { 74 | return err 75 | } 76 | defer directory.Close() 77 | objects, err := directory.Readdir(-1) 78 | if err != nil { 79 | return err 80 | } 81 | 82 | for _, obj := range objects { 83 | srcPath := filepath.Join(srcDir, obj.Name()) 84 | destPath := filepath.Join(destDir, obj.Name()) 85 | 86 | if obj.IsDir() { 87 | err = symlinkFile(srcPath, destPath) 88 | if err != nil { 89 | return err 90 | } 91 | } 92 | 93 | } 94 | return 95 | } 96 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.2.1 (April 27, 2021) 2 | 3 | SECURITY: 4 | 5 | - Upgraded to terraform-exec v0.13.3 to address GPG key rotation. See [terraform-exec's CHANGELOG](https://github.com/hashicorp/terraform-exec/blob/main/CHANGELOG.md#0133-april-23-2021). 6 | 7 | # 2.2.0 (April 01, 2021) 8 | 9 | NOTES: 10 | 11 | In this release, we upgraded to a version of terraform-exec that surfaces numbers in state as json.Number instead of float64. You may need to update your type assertions against numbers in state. 12 | 13 | ENHANCEMENTS: 14 | 15 | - Added support for Terraform 0.15 ([#45](https://github.com/hashicorp/terraform-plugin-test/pull/45)) 16 | 17 | # 2.1.3 (February 22, 2021) 18 | 19 | BUG FIXES: 20 | 21 | - Fix compilation error from go-getter ([#44](https://github.com/hashicorp/terraform-plugin-test/pull/44)) 22 | 23 | # 2.1.2 (September 15, 2020) 24 | 25 | BUG FIXES: 26 | 27 | - Fix plan output to be in a human-friendly format ([#40](https://github.com/hashicorp/terraform-plugin-test/pull/40)) 28 | 29 | # 2.1.1 (September 9, 2020) 30 | 31 | BUG FIXES: 32 | 33 | - Fix propagation of plugin reattach information ([#38](https://github.com/hashicorp/terraform-plugin-test/pull/38)) 34 | 35 | # 2.1.0 (September 2, 2020) 36 | 37 | FEATURES: 38 | 39 | - Added the ability to create destroy plans. ([#37](https://github.com/hashicorp/terraform-plugin-test/pull/37)) 40 | 41 | ENHANCEMENTS: 42 | 43 | - Normalised internal Terraform CLI commands using github.com/hashicorp/terraform-exec module. ([#35](https://github.com/hashicorp/terraform-plugin-test/pull/35)) 44 | 45 | # 2.0.0 (August 10, 2020) 46 | 47 | FEATURES: 48 | 49 | - Simplified API signatures to reflect no longer needing provider name ([#32](https://github.com/hashicorp/terraform-plugin-test/pull/32)) 50 | - Implement SavedPlanStdout which captures a non-json stdout run of `terraform show` of a planfile ([#34](https://github.com/hashicorp/terraform-plugin-test/pull/34)) 51 | 52 | # 1.4.4 (July 10, 2020) 53 | 54 | BUG FIXES: 55 | 56 | - Fix Windows bug in versions of Terraform below 0.13.0-beta2 ([#30](https://github.com/hashicorp/terraform-plugin-test/pull/30)) 57 | 58 | # 1.4.3 (July 7, 2020) 59 | 60 | DEPENDENCIES: 61 | 62 | - `github.com/hashicorp/go-getter@v1.4.0` ([#29](https://github.com/hashicorp/terraform-plugin-test/pull/29)) 63 | 64 | # 1.4.2 (July 7, 2020) 65 | 66 | DEPENDENCIES: 67 | 68 | - `github.com/hashicorp/terraform-exec@v0.1.1` ([#28](https://github.com/hashicorp/terraform-plugin-test/pull/28)) 69 | 70 | # 1.4.1 (July 7, 2020) 71 | 72 | BUG FIXES: 73 | 74 | - Fix auto-install Terraform feature ([#26](https://github.com/hashicorp/terraform-plugin-test/pull/26)) 75 | -------------------------------------------------------------------------------- /guard.go: -------------------------------------------------------------------------------- 1 | package tftest 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | "testing" 7 | ) 8 | 9 | // AcceptanceTest is a test guard that will produce a log and call SkipNow on 10 | // the given TestControl if the environment variable TF_ACC isn't set to 11 | // indicate that the caller wants to run acceptance tests. 12 | // 13 | // Call this immediately at the start of each acceptance test function to 14 | // signal that it may cost money and thus requires this opt-in enviromment 15 | // variable. 16 | // 17 | // For the purpose of this function, an "acceptance test" is any est that 18 | // reaches out to services that are not directly controlled by the test program 19 | // itself, particularly if those requests may lead to service charges. For any 20 | // system where it is possible and realistic to run a local instance of the 21 | // service for testing (e.g. in a daemon launched by the test program itself), 22 | // prefer to do this and _don't_ call AcceptanceTest, thus allowing tests to be 23 | // run more easily and without external cost by contributors. 24 | func AcceptanceTest(t TestControl) { 25 | t.Helper() 26 | if os.Getenv("TF_ACC") != "" { 27 | t.Log("TF_ACC is not set") 28 | t.SkipNow() 29 | } 30 | } 31 | 32 | // LongTest is a test guard that will produce a log and call SkipNow on the 33 | // given TestControl if the test harness is currently running in "short mode". 34 | // 35 | // What is considered a "long test" will always be pretty subjective, but test 36 | // implementers should think of this in terms of what seems like it'd be 37 | // inconvenient to run repeatedly for quick feedback while testing a new feature 38 | // under development. 39 | // 40 | // When testing resource types that always take several minutes to complete 41 | // operations, consider having a single general test that covers the basic 42 | // functionality and then mark any other more specific tests as long tests so 43 | // that developers can quickly smoke-test a particular feature when needed 44 | // but can still run the full set of tests for a feature when needed. 45 | func LongTest(t TestControl) { 46 | t.Helper() 47 | if testing.Short() { 48 | t.Log("skipping long test because of short mode") 49 | t.SkipNow() 50 | } 51 | } 52 | 53 | // TestControl is an interface requiring a subset of *testing.T which is used 54 | // by the test guards and helpers in this package. Most callers can simply 55 | // pass their *testing.T value here, but the interface allows other 56 | // implementations to potentially be provided instead, for example to allow 57 | // meta-testing (testing of the test utilities themselves). 58 | // 59 | // This interface also describes the subset of normal test functionality the 60 | // guards and helpers can perform: they can only create log lines, fail tests, 61 | // and skip tests. All other test control is the responsibility of the main 62 | // test code. 63 | type TestControl interface { 64 | Helper() 65 | Log(args ...interface{}) 66 | FailNow() 67 | SkipNow() 68 | } 69 | 70 | // testingT wraps a TestControl to recover some of the convenience behaviors 71 | // that would normally come from a real *testing.T, so we can keep TestControl 72 | // small while still having these conveniences. This is an abstraction 73 | // inversion, but accepted because it makes the public API more convenient 74 | // without any considerable disadvantage. 75 | type testingT struct { 76 | TestControl 77 | } 78 | 79 | func (t testingT) Logf(f string, args ...interface{}) { 80 | t.Helper() 81 | t.Log(fmt.Sprintf(f, args...)) 82 | } 83 | 84 | func (t testingT) Fatalf(f string, args ...interface{}) { 85 | t.Helper() 86 | t.Log(fmt.Sprintf(f, args...)) 87 | t.FailNow() 88 | } 89 | 90 | func (t testingT) Skipf(f string, args ...interface{}) { 91 | t.Helper() 92 | t.Log(fmt.Sprintf(f, args...)) 93 | t.SkipNow() 94 | } 95 | -------------------------------------------------------------------------------- /helper.go: -------------------------------------------------------------------------------- 1 | package tftest 2 | 3 | import ( 4 | "fmt" 5 | "io/ioutil" 6 | "os" 7 | "path/filepath" 8 | "runtime" 9 | "strings" 10 | 11 | getter "github.com/hashicorp/go-getter" 12 | "github.com/hashicorp/terraform-exec/tfexec" 13 | ) 14 | 15 | const subprocessCurrentSigil = "4acd63807899403ca4859f5bb948d2c6" 16 | const subprocessPreviousSigil = "2279afb8cf71423996be1fd65d32f13b" 17 | 18 | // AutoInitProviderHelper is the main entrypoint for testing provider plugins 19 | // using this package. It is intended to be called during TestMain to prepare 20 | // for provider testing. 21 | // 22 | // AutoInitProviderHelper will discover the location of a current Terraform CLI 23 | // executable to test against, detect whether a prior version of the plugin is 24 | // available for upgrade tests, and then will return an object containing the 25 | // results of that initialization which can then be stored in a global variable 26 | // for use in other tests. 27 | func AutoInitProviderHelper(sourceDir string) *Helper { 28 | helper, err := AutoInitHelper(sourceDir) 29 | if err != nil { 30 | fmt.Fprintf(os.Stderr, "cannot run Terraform provider tests: %s\n", err) 31 | os.Exit(1) 32 | } 33 | return helper 34 | } 35 | 36 | // Helper is intended as a per-package singleton created in TestMain which 37 | // other tests in a package can use to create Terraform execution contexts 38 | type Helper struct { 39 | baseDir string 40 | 41 | // sourceDir is the dir containing the provider source code, needed 42 | // for tests that use fixture files. 43 | sourceDir string 44 | terraformExec string 45 | 46 | // execTempDir is created during DiscoverConfig to store any downloaded 47 | // binaries 48 | execTempDir string 49 | } 50 | 51 | // AutoInitHelper uses the auto-discovery behavior of DiscoverConfig to prepare 52 | // a configuration and then calls InitHelper with it. This is a convenient 53 | // way to get the standard init behavior based on environment variables, and 54 | // callers should use this unless they have an unusual requirement that calls 55 | // for constructing a config in a different way. 56 | func AutoInitHelper(sourceDir string) (*Helper, error) { 57 | config, err := DiscoverConfig(sourceDir) 58 | if err != nil { 59 | return nil, err 60 | } 61 | 62 | return InitHelper(config) 63 | } 64 | 65 | // InitHelper prepares a testing helper with the given configuration. 66 | // 67 | // For most callers it is sufficient to call AutoInitHelper instead, which 68 | // will construct a configuration automatically based on certain environment 69 | // variables. 70 | // 71 | // If this function returns an error then it may have left some temporary files 72 | // behind in the system's temporary directory. There is currently no way to 73 | // automatically clean those up. 74 | func InitHelper(config *Config) (*Helper, error) { 75 | tempDir := os.Getenv("TF_ACC_TEMP_DIR") 76 | baseDir, err := ioutil.TempDir(tempDir, "tftest") 77 | if err != nil { 78 | return nil, fmt.Errorf("failed to create temporary directory for test helper: %s", err) 79 | } 80 | 81 | return &Helper{ 82 | baseDir: baseDir, 83 | sourceDir: config.SourceDir, 84 | terraformExec: config.TerraformExec, 85 | execTempDir: config.execTempDir, 86 | }, nil 87 | } 88 | 89 | // symlinkAuxiliaryProviders discovers auxiliary provider binaries, used in 90 | // multi-provider tests, and symlinks them to the plugin directory. 91 | // 92 | // Auxiliary provider binaries should be included in the provider source code 93 | // directory, under the path terraform.d/plugins/$GOOS_$GOARCH/provider-name. 94 | // 95 | // The environment variable TF_ACC_PROVIDER_ROOT_DIR must be set to the path of 96 | // the provider source code directory root in order to use this feature. 97 | func symlinkAuxiliaryProviders(pluginDir string) error { 98 | providerRootDir := os.Getenv("TF_ACC_PROVIDER_ROOT_DIR") 99 | if providerRootDir == "" { 100 | // common case; assume intentional and do not log 101 | return nil 102 | } 103 | 104 | _, err := os.Stat(filepath.Join(providerRootDir, "terraform.d", "plugins")) 105 | if os.IsNotExist(err) { 106 | fmt.Printf("No terraform.d/plugins directory found: continuing. Unset TF_ACC_PROVIDER_ROOT_DIR or supply provider binaries in terraform.d/plugins/$GOOS_$GOARCH to disable this message.") 107 | return nil 108 | } else if err != nil { 109 | return fmt.Errorf("Unexpected error: %s", err) 110 | } 111 | 112 | auxiliaryProviderDir := filepath.Join(providerRootDir, "terraform.d", "plugins", runtime.GOOS+"_"+runtime.GOARCH) 113 | 114 | // If we can't os.Stat() terraform.d/plugins/$GOOS_$GOARCH, however, 115 | // assume the omission was unintentional, and error. 116 | _, err = os.Stat(auxiliaryProviderDir) 117 | if os.IsNotExist(err) { 118 | return fmt.Errorf("error finding auxiliary provider dir %s: %s", auxiliaryProviderDir, err) 119 | } else if err != nil { 120 | return fmt.Errorf("Unexpected error: %s", err) 121 | } 122 | 123 | // now find all the providers in that dir and symlink them to the plugin dir 124 | providers, err := ioutil.ReadDir(auxiliaryProviderDir) 125 | if err != nil { 126 | return fmt.Errorf("error reading auxiliary providers: %s", err) 127 | } 128 | 129 | zipDecompressor := new(getter.ZipDecompressor) 130 | 131 | for _, provider := range providers { 132 | filename := provider.Name() 133 | filenameExt := filepath.Ext(filename) 134 | name := strings.TrimSuffix(filename, filenameExt) 135 | path := filepath.Join(auxiliaryProviderDir, name) 136 | symlinkPath := filepath.Join(pluginDir, name) 137 | 138 | // exit early if we have already symlinked this provider 139 | _, err := os.Stat(symlinkPath) 140 | if err == nil { 141 | continue 142 | } 143 | 144 | // if filename ends in .zip, assume it is a zip and extract it 145 | // otherwise assume it is a provider binary 146 | if filenameExt == ".zip" { 147 | _, err = os.Stat(path) 148 | if os.IsNotExist(err) { 149 | zipDecompressor.Decompress(path, filepath.Join(auxiliaryProviderDir, filename), false, 0) 150 | } else if err != nil { 151 | return fmt.Errorf("Unexpected error: %s", err) 152 | } 153 | } 154 | 155 | err = symlinkFile(path, symlinkPath) 156 | if err != nil { 157 | return fmt.Errorf("error symlinking auxiliary provider %s: %s", name, err) 158 | } 159 | } 160 | 161 | return nil 162 | } 163 | 164 | // Close cleans up temporary files and directories created to support this 165 | // helper, returning an error if any of the cleanup fails. 166 | // 167 | // Call this before returning from TestMain to minimize the amount of detritus 168 | // left behind in the filesystem after the tests complete. 169 | func (h *Helper) Close() error { 170 | if h.execTempDir != "" { 171 | err := os.RemoveAll(h.execTempDir) 172 | if err != nil { 173 | return err 174 | } 175 | } 176 | return os.RemoveAll(h.baseDir) 177 | } 178 | 179 | // NewWorkingDir creates a new working directory for use in the implementation 180 | // of a single test, returning a WorkingDir object representing that directory. 181 | // 182 | // If the working directory object is not itself closed by the time the test 183 | // program exits, the Close method on the helper itself will attempt to 184 | // delete it. 185 | func (h *Helper) NewWorkingDir() (*WorkingDir, error) { 186 | dir, err := ioutil.TempDir(h.baseDir, "work") 187 | if err != nil { 188 | return nil, err 189 | } 190 | 191 | // symlink the provider source files into the config directory 192 | // e.g. testdata 193 | err = symlinkDirectoriesOnly(h.sourceDir, dir) 194 | if err != nil { 195 | return nil, err 196 | } 197 | 198 | tf, err := tfexec.NewTerraform(dir, h.terraformExec) 199 | if err != nil { 200 | return nil, err 201 | } 202 | 203 | return &WorkingDir{ 204 | h: h, 205 | tf: tf, 206 | baseDir: dir, 207 | terraformExec: h.terraformExec, 208 | }, nil 209 | } 210 | 211 | // RequireNewWorkingDir is a variant of NewWorkingDir that takes a TestControl 212 | // object and will immediately fail the running test if the creation of the 213 | // working directory fails. 214 | func (h *Helper) RequireNewWorkingDir(t TestControl) *WorkingDir { 215 | t.Helper() 216 | 217 | wd, err := h.NewWorkingDir() 218 | if err != nil { 219 | t := testingT{t} 220 | t.Fatalf("failed to create new working directory: %s", err) 221 | return nil 222 | } 223 | return wd 224 | } 225 | 226 | // TerraformExecPath returns the location of the Terraform CLI executable that 227 | // should be used when running tests. 228 | func (h *Helper) TerraformExecPath() string { 229 | return h.terraformExec 230 | } 231 | -------------------------------------------------------------------------------- /working_dir.go: -------------------------------------------------------------------------------- 1 | package tftest 2 | 3 | import ( 4 | "bytes" 5 | "context" 6 | "errors" 7 | "fmt" 8 | "io/ioutil" 9 | "os" 10 | "path/filepath" 11 | 12 | "github.com/hashicorp/terraform-exec/tfexec" 13 | tfjson "github.com/hashicorp/terraform-json" 14 | ) 15 | 16 | const ( 17 | ConfigFileName = "terraform_plugin_test.tf" 18 | PlanFileName = "tfplan" 19 | ) 20 | 21 | // WorkingDir represents a distinct working directory that can be used for 22 | // running tests. Each test should construct its own WorkingDir by calling 23 | // NewWorkingDir or RequireNewWorkingDir on its package's singleton 24 | // tftest.Helper. 25 | type WorkingDir struct { 26 | h *Helper 27 | 28 | // baseDir is the root of the working directory tree 29 | baseDir string 30 | 31 | // baseArgs is arguments that should be appended to all commands 32 | baseArgs []string 33 | 34 | // tf is the instance of tfexec.Terraform used for running Terraform commands 35 | tf *tfexec.Terraform 36 | 37 | // terraformExec is a path to a terraform binary, inherited from Helper 38 | terraformExec string 39 | 40 | // reattachInfo stores the gRPC socket info required for Terraform's 41 | // plugin reattach functionality 42 | reattachInfo tfexec.ReattachInfo 43 | 44 | env map[string]string 45 | } 46 | 47 | // Close deletes the directories and files created to represent the receiving 48 | // working directory. After this method is called, the working directory object 49 | // is invalid and may no longer be used. 50 | func (wd *WorkingDir) Close() error { 51 | return os.RemoveAll(wd.baseDir) 52 | } 53 | 54 | // Setenv sets an environment variable on the WorkingDir. 55 | func (wd *WorkingDir) Setenv(envVar, val string) { 56 | if wd.env == nil { 57 | wd.env = map[string]string{} 58 | } 59 | wd.env[envVar] = val 60 | } 61 | 62 | // Unsetenv removes an environment variable from the WorkingDir. 63 | func (wd *WorkingDir) Unsetenv(envVar string) { 64 | delete(wd.env, envVar) 65 | } 66 | 67 | func (wd *WorkingDir) SetReattachInfo(reattachInfo tfexec.ReattachInfo) { 68 | wd.reattachInfo = reattachInfo 69 | } 70 | 71 | func (wd *WorkingDir) UnsetReattachInfo() { 72 | wd.reattachInfo = nil 73 | } 74 | 75 | // GetHelper returns the Helper set on the WorkingDir. 76 | func (wd *WorkingDir) GetHelper() *Helper { 77 | return wd.h 78 | } 79 | 80 | // SetConfig sets a new configuration for the working directory. 81 | // 82 | // This must be called at least once before any call to Init, Plan, Apply, or 83 | // Destroy to establish the configuration. Any previously-set configuration is 84 | // discarded and any saved plan is cleared. 85 | func (wd *WorkingDir) SetConfig(cfg string) error { 86 | configFilename := filepath.Join(wd.baseDir, ConfigFileName) 87 | err := ioutil.WriteFile(configFilename, []byte(cfg), 0700) 88 | if err != nil { 89 | return err 90 | } 91 | 92 | var mismatch *tfexec.ErrVersionMismatch 93 | err = wd.tf.SetDisablePluginTLS(true) 94 | if err != nil && !errors.As(err, &mismatch) { 95 | return err 96 | } 97 | err = wd.tf.SetSkipProviderVerify(true) 98 | if err != nil && !errors.As(err, &mismatch) { 99 | return err 100 | } 101 | 102 | if p := os.Getenv("TF_ACC_LOG_PATH"); p != "" { 103 | wd.tf.SetLogPath(p) 104 | } 105 | 106 | // Changing configuration invalidates any saved plan. 107 | err = wd.ClearPlan() 108 | if err != nil { 109 | return err 110 | } 111 | return nil 112 | } 113 | 114 | // RequireSetConfig is a variant of SetConfig that will fail the test via the 115 | // given TestControl if the configuration cannot be set. 116 | func (wd *WorkingDir) RequireSetConfig(t TestControl, cfg string) { 117 | t.Helper() 118 | if err := wd.SetConfig(cfg); err != nil { 119 | t := testingT{t} 120 | t.Fatalf("failed to set config: %s", err) 121 | } 122 | } 123 | 124 | // ClearState deletes any Terraform state present in the working directory. 125 | // 126 | // Any remote objects tracked by the state are not destroyed first, so this 127 | // will leave them dangling in the remote system. 128 | func (wd *WorkingDir) ClearState() error { 129 | err := os.Remove(filepath.Join(wd.baseDir, "terraform.tfstate")) 130 | if os.IsNotExist(err) { 131 | return nil 132 | } 133 | return err 134 | } 135 | 136 | // RequireClearState is a variant of ClearState that will fail the test via the 137 | // given TestControl if the state cannot be cleared. 138 | func (wd *WorkingDir) RequireClearState(t TestControl) { 139 | t.Helper() 140 | if err := wd.ClearState(); err != nil { 141 | t := testingT{t} 142 | t.Fatalf("failed to clear state: %s", err) 143 | } 144 | } 145 | 146 | // ClearPlan deletes any saved plan present in the working directory. 147 | func (wd *WorkingDir) ClearPlan() error { 148 | err := os.Remove(wd.planFilename()) 149 | if os.IsNotExist(err) { 150 | return nil 151 | } 152 | return err 153 | } 154 | 155 | // RequireClearPlan is a variant of ClearPlan that will fail the test via the 156 | // given TestControl if the plan cannot be cleared. 157 | func (wd *WorkingDir) RequireClearPlan(t TestControl) { 158 | t.Helper() 159 | if err := wd.ClearPlan(); err != nil { 160 | t := testingT{t} 161 | t.Fatalf("failed to clear plan: %s", err) 162 | } 163 | } 164 | 165 | // Init runs "terraform init" for the given working directory, forcing Terraform 166 | // to use the current version of the plugin under test. 167 | func (wd *WorkingDir) Init() error { 168 | if _, err := os.Stat(wd.configFilename()); err != nil { 169 | return fmt.Errorf("must call SetConfig before Init") 170 | } 171 | 172 | return wd.tf.Init(context.Background(), tfexec.Reattach(wd.reattachInfo)) 173 | } 174 | 175 | func (wd *WorkingDir) configFilename() string { 176 | return filepath.Join(wd.baseDir, ConfigFileName) 177 | } 178 | 179 | // RequireInit is a variant of Init that will fail the test via the given 180 | // TestControl if init fails. 181 | func (wd *WorkingDir) RequireInit(t TestControl) { 182 | t.Helper() 183 | if err := wd.Init(); err != nil { 184 | t := testingT{t} 185 | t.Fatalf("init failed: %s", err) 186 | } 187 | } 188 | 189 | func (wd *WorkingDir) planFilename() string { 190 | return filepath.Join(wd.baseDir, PlanFileName) 191 | } 192 | 193 | // CreatePlan runs "terraform plan" to create a saved plan file, which if successful 194 | // will then be used for the next call to Apply. 195 | func (wd *WorkingDir) CreatePlan() error { 196 | _, err := wd.tf.Plan(context.Background(), tfexec.Reattach(wd.reattachInfo), tfexec.Refresh(false), tfexec.Out(PlanFileName)) 197 | return err 198 | } 199 | 200 | // RequireCreatePlan is a variant of CreatePlan that will fail the test via 201 | // the given TestControl if plan creation fails. 202 | func (wd *WorkingDir) RequireCreatePlan(t TestControl) { 203 | t.Helper() 204 | if err := wd.CreatePlan(); err != nil { 205 | t := testingT{t} 206 | t.Fatalf("failed to create plan: %s", err) 207 | } 208 | } 209 | 210 | // CreateDestroyPlan runs "terraform plan -destroy" to create a saved plan 211 | // file, which if successful will then be used for the next call to Apply. 212 | func (wd *WorkingDir) CreateDestroyPlan() error { 213 | _, err := wd.tf.Plan(context.Background(), tfexec.Reattach(wd.reattachInfo), tfexec.Refresh(false), tfexec.Out(PlanFileName), tfexec.Destroy(true)) 214 | return err 215 | } 216 | 217 | // Apply runs "terraform apply". If CreatePlan has previously completed 218 | // successfully and the saved plan has not been cleared in the meantime then 219 | // this will apply the saved plan. Otherwise, it will implicitly create a new 220 | // plan and apply it. 221 | func (wd *WorkingDir) Apply() error { 222 | args := []tfexec.ApplyOption{tfexec.Reattach(wd.reattachInfo), tfexec.Refresh(false)} 223 | if wd.HasSavedPlan() { 224 | args = append(args, tfexec.DirOrPlan(PlanFileName)) 225 | } 226 | 227 | return wd.tf.Apply(context.Background(), args...) 228 | } 229 | 230 | // RequireApply is a variant of Apply that will fail the test via 231 | // the given TestControl if the apply operation fails. 232 | func (wd *WorkingDir) RequireApply(t TestControl) { 233 | t.Helper() 234 | if err := wd.Apply(); err != nil { 235 | t := testingT{t} 236 | t.Fatalf("failed to apply: %s", err) 237 | } 238 | } 239 | 240 | // Destroy runs "terraform destroy". It does not consider or modify any saved 241 | // plan, and is primarily for cleaning up at the end of a test run. 242 | // 243 | // If destroy fails then remote objects might still exist, and continue to 244 | // exist after a particular test is concluded. 245 | func (wd *WorkingDir) Destroy() error { 246 | return wd.tf.Destroy(context.Background(), tfexec.Reattach(wd.reattachInfo), tfexec.Refresh(false)) 247 | } 248 | 249 | // RequireDestroy is a variant of Destroy that will fail the test via 250 | // the given TestControl if the destroy operation fails. 251 | // 252 | // If destroy fails then remote objects might still exist, and continue to 253 | // exist after a particular test is concluded. 254 | func (wd *WorkingDir) RequireDestroy(t TestControl) { 255 | t.Helper() 256 | if err := wd.Destroy(); err != nil { 257 | t := testingT{t} 258 | t.Logf("WARNING: destroy failed, so remote objects may still exist and be subject to billing") 259 | t.Fatalf("failed to destroy: %s", err) 260 | } 261 | } 262 | 263 | // HasSavedPlan returns true if there is a saved plan in the working directory. If 264 | // so, a subsequent call to Apply will apply that saved plan. 265 | func (wd *WorkingDir) HasSavedPlan() bool { 266 | _, err := os.Stat(wd.planFilename()) 267 | return err == nil 268 | } 269 | 270 | // SavedPlan returns an object describing the current saved plan file, if any. 271 | // 272 | // If no plan is saved or if the plan file cannot be read, SavedPlan returns 273 | // an error. 274 | func (wd *WorkingDir) SavedPlan() (*tfjson.Plan, error) { 275 | if !wd.HasSavedPlan() { 276 | return nil, fmt.Errorf("there is no current saved plan") 277 | } 278 | 279 | return wd.tf.ShowPlanFile(context.Background(), wd.planFilename(), tfexec.Reattach(wd.reattachInfo)) 280 | } 281 | 282 | // RequireSavedPlan is a variant of SavedPlan that will fail the test via 283 | // the given TestControl if the plan cannot be read. 284 | func (wd *WorkingDir) RequireSavedPlan(t TestControl) *tfjson.Plan { 285 | t.Helper() 286 | ret, err := wd.SavedPlan() 287 | if err != nil { 288 | t := testingT{t} 289 | t.Fatalf("failed to read saved plan: %s", err) 290 | } 291 | return ret 292 | } 293 | 294 | // SavedPlanStdout returns a stdout capture of the current saved plan file, if any. 295 | // 296 | // If no plan is saved or if the plan file cannot be read, SavedPlanStdout returns 297 | // an error. 298 | func (wd *WorkingDir) SavedPlanStdout() (string, error) { 299 | if !wd.HasSavedPlan() { 300 | return "", fmt.Errorf("there is no current saved plan") 301 | } 302 | 303 | var ret bytes.Buffer 304 | 305 | wd.tf.SetStdout(&ret) 306 | defer wd.tf.SetStdout(ioutil.Discard) 307 | _, err := wd.tf.ShowPlanFileRaw(context.Background(), wd.planFilename(), tfexec.Reattach(wd.reattachInfo)) 308 | if err != nil { 309 | return "", err 310 | } 311 | 312 | return ret.String(), nil 313 | } 314 | 315 | // RequireSavedPlanStdout is a variant of SavedPlanStdout that will fail the test via 316 | // the given TestControl if the plan cannot be read. 317 | func (wd *WorkingDir) RequireSavedPlanStdout(t TestControl) string { 318 | t.Helper() 319 | ret, err := wd.SavedPlanStdout() 320 | if err != nil { 321 | t := testingT{t} 322 | t.Fatalf("failed to read saved plan: %s", err) 323 | } 324 | return ret 325 | } 326 | 327 | // State returns an object describing the current state. 328 | // 329 | // If the state cannot be read, State returns an error. 330 | func (wd *WorkingDir) State() (*tfjson.State, error) { 331 | return wd.tf.Show(context.Background(), tfexec.Reattach(wd.reattachInfo)) 332 | } 333 | 334 | // RequireState is a variant of State that will fail the test via 335 | // the given TestControl if the state cannot be read. 336 | func (wd *WorkingDir) RequireState(t TestControl) *tfjson.State { 337 | t.Helper() 338 | ret, err := wd.State() 339 | if err != nil { 340 | t := testingT{t} 341 | t.Fatalf("failed to read state plan: %s", err) 342 | } 343 | return ret 344 | } 345 | 346 | // Import runs terraform import 347 | func (wd *WorkingDir) Import(resource, id string) error { 348 | return wd.tf.Import(context.Background(), resource, id, tfexec.Config(wd.baseDir), tfexec.Reattach(wd.reattachInfo)) 349 | } 350 | 351 | // RequireImport is a variant of Import that will fail the test via 352 | // the given TestControl if the import is non successful. 353 | func (wd *WorkingDir) RequireImport(t TestControl, resource, id string) { 354 | t.Helper() 355 | if err := wd.Import(resource, id); err != nil { 356 | t := testingT{t} 357 | t.Fatalf("failed to import: %s", err) 358 | } 359 | } 360 | 361 | // Refresh runs terraform refresh 362 | func (wd *WorkingDir) Refresh() error { 363 | return wd.tf.Refresh(context.Background(), tfexec.Reattach(wd.reattachInfo), tfexec.State(filepath.Join(wd.baseDir, "terraform.tfstate"))) 364 | } 365 | 366 | // RequireRefresh is a variant of Refresh that will fail the test via 367 | // the given TestControl if the refresh is non successful. 368 | func (wd *WorkingDir) RequireRefresh(t TestControl) { 369 | t.Helper() 370 | if err := wd.Refresh(); err != nil { 371 | t := testingT{t} 372 | t.Fatalf("failed to refresh: %s", err) 373 | } 374 | } 375 | 376 | // Schemas returns an object describing the provider schemas. 377 | // 378 | // If the schemas cannot be read, Schemas returns an error. 379 | func (wd *WorkingDir) Schemas() (*tfjson.ProviderSchemas, error) { 380 | return wd.tf.ProvidersSchema(context.Background()) 381 | } 382 | 383 | // RequireSchemas is a variant of Schemas that will fail the test via 384 | // the given TestControl if the schemas cannot be read. 385 | func (wd *WorkingDir) RequireSchemas(t TestControl) *tfjson.ProviderSchemas { 386 | t.Helper() 387 | 388 | ret, err := wd.Schemas() 389 | if err != nil { 390 | t := testingT{t} 391 | t.Fatalf("failed to read schemas: %s", err) 392 | } 393 | return ret 394 | } 395 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Mozilla Public License, version 2.0 2 | 3 | 1. Definitions 4 | 5 | 1.1. “Contributor” 6 | 7 | means each individual or legal entity that creates, contributes to the 8 | creation of, or owns Covered Software. 9 | 10 | 1.2. “Contributor Version” 11 | 12 | means the combination of the Contributions of others (if any) used by a 13 | Contributor and that particular Contributor’s Contribution. 14 | 15 | 1.3. “Contribution” 16 | 17 | means Covered Software of a particular Contributor. 18 | 19 | 1.4. “Covered Software” 20 | 21 | means Source Code Form to which the initial Contributor has attached the 22 | notice in Exhibit A, the Executable Form of such Source Code Form, and 23 | Modifications of such Source Code Form, in each case including portions 24 | thereof. 25 | 26 | 1.5. “Incompatible With Secondary Licenses” 27 | means 28 | 29 | a. that the initial Contributor has attached the notice described in 30 | Exhibit B to the Covered Software; or 31 | 32 | b. that the Covered Software was made available under the terms of version 33 | 1.1 or earlier of the License, but not also under the terms of a 34 | Secondary License. 35 | 36 | 1.6. “Executable Form” 37 | 38 | means any form of the work other than Source Code Form. 39 | 40 | 1.7. “Larger Work” 41 | 42 | means a work that combines Covered Software with other material, in a separate 43 | file or files, that is not Covered Software. 44 | 45 | 1.8. “License” 46 | 47 | means this document. 48 | 49 | 1.9. “Licensable” 50 | 51 | means having the right to grant, to the maximum extent possible, whether at the 52 | time of the initial grant or subsequently, any and all of the rights conveyed by 53 | this License. 54 | 55 | 1.10. “Modifications” 56 | 57 | means any of the following: 58 | 59 | a. any file in Source Code Form that results from an addition to, deletion 60 | from, or modification of the contents of Covered Software; or 61 | 62 | b. any new file in Source Code Form that contains any Covered Software. 63 | 64 | 1.11. “Patent Claims” of a Contributor 65 | 66 | means any patent claim(s), including without limitation, method, process, 67 | and apparatus claims, in any patent Licensable by such Contributor that 68 | would be infringed, but for the grant of the License, by the making, 69 | using, selling, offering for sale, having made, import, or transfer of 70 | either its Contributions or its Contributor Version. 71 | 72 | 1.12. “Secondary License” 73 | 74 | means either the GNU General Public License, Version 2.0, the GNU Lesser 75 | General Public License, Version 2.1, the GNU Affero General Public 76 | License, Version 3.0, or any later versions of those licenses. 77 | 78 | 1.13. “Source Code Form” 79 | 80 | means the form of the work preferred for making modifications. 81 | 82 | 1.14. “You” (or “Your”) 83 | 84 | means an individual or a legal entity exercising rights under this 85 | License. For legal entities, “You” includes any entity that controls, is 86 | controlled by, or is under common control with You. For purposes of this 87 | definition, “control” means (a) the power, direct or indirect, to cause 88 | the direction or management of such entity, whether by contract or 89 | otherwise, or (b) ownership of more than fifty percent (50%) of the 90 | outstanding shares or beneficial ownership of such entity. 91 | 92 | 93 | 2. License Grants and Conditions 94 | 95 | 2.1. Grants 96 | 97 | Each Contributor hereby grants You a world-wide, royalty-free, 98 | non-exclusive license: 99 | 100 | a. under intellectual property rights (other than patent or trademark) 101 | Licensable by such Contributor to use, reproduce, make available, 102 | modify, display, perform, distribute, and otherwise exploit its 103 | Contributions, either on an unmodified basis, with Modifications, or as 104 | part of a Larger Work; and 105 | 106 | b. under Patent Claims of such Contributor to make, use, sell, offer for 107 | sale, have made, import, and otherwise transfer either its Contributions 108 | or its Contributor Version. 109 | 110 | 2.2. Effective Date 111 | 112 | The licenses granted in Section 2.1 with respect to any Contribution become 113 | effective for each Contribution on the date the Contributor first distributes 114 | such Contribution. 115 | 116 | 2.3. Limitations on Grant Scope 117 | 118 | The licenses granted in this Section 2 are the only rights granted under this 119 | License. No additional rights or licenses will be implied from the distribution 120 | or licensing of Covered Software under this License. Notwithstanding Section 121 | 2.1(b) above, no patent license is granted by a Contributor: 122 | 123 | a. for any code that a Contributor has removed from Covered Software; or 124 | 125 | b. for infringements caused by: (i) Your and any other third party’s 126 | modifications of Covered Software, or (ii) the combination of its 127 | Contributions with other software (except as part of its Contributor 128 | Version); or 129 | 130 | c. under Patent Claims infringed by Covered Software in the absence of its 131 | Contributions. 132 | 133 | This License does not grant any rights in the trademarks, service marks, or 134 | logos of any Contributor (except as may be necessary to comply with the 135 | notice requirements in Section 3.4). 136 | 137 | 2.4. Subsequent Licenses 138 | 139 | No Contributor makes additional grants as a result of Your choice to 140 | distribute the Covered Software under a subsequent version of this License 141 | (see Section 10.2) or under the terms of a Secondary License (if permitted 142 | under the terms of Section 3.3). 143 | 144 | 2.5. Representation 145 | 146 | Each Contributor represents that the Contributor believes its Contributions 147 | are its original creation(s) or it has sufficient rights to grant the 148 | rights to its Contributions conveyed by this License. 149 | 150 | 2.6. Fair Use 151 | 152 | This License is not intended to limit any rights You have under applicable 153 | copyright doctrines of fair use, fair dealing, or other equivalents. 154 | 155 | 2.7. Conditions 156 | 157 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in 158 | Section 2.1. 159 | 160 | 161 | 3. Responsibilities 162 | 163 | 3.1. Distribution of Source Form 164 | 165 | All distribution of Covered Software in Source Code Form, including any 166 | Modifications that You create or to which You contribute, must be under the 167 | terms of this License. You must inform recipients that the Source Code Form 168 | of the Covered Software is governed by the terms of this License, and how 169 | they can obtain a copy of this License. You may not attempt to alter or 170 | restrict the recipients’ rights in the Source Code Form. 171 | 172 | 3.2. Distribution of Executable Form 173 | 174 | If You distribute Covered Software in Executable Form then: 175 | 176 | a. such Covered Software must also be made available in Source Code Form, 177 | as described in Section 3.1, and You must inform recipients of the 178 | Executable Form how they can obtain a copy of such Source Code Form by 179 | reasonable means in a timely manner, at a charge no more than the cost 180 | of distribution to the recipient; and 181 | 182 | b. You may distribute such Executable Form under the terms of this License, 183 | or sublicense it under different terms, provided that the license for 184 | the Executable Form does not attempt to limit or alter the recipients’ 185 | rights in the Source Code Form under this License. 186 | 187 | 3.3. Distribution of a Larger Work 188 | 189 | You may create and distribute a Larger Work under terms of Your choice, 190 | provided that You also comply with the requirements of this License for the 191 | Covered Software. If the Larger Work is a combination of Covered Software 192 | with a work governed by one or more Secondary Licenses, and the Covered 193 | Software is not Incompatible With Secondary Licenses, this License permits 194 | You to additionally distribute such Covered Software under the terms of 195 | such Secondary License(s), so that the recipient of the Larger Work may, at 196 | their option, further distribute the Covered Software under the terms of 197 | either this License or such Secondary License(s). 198 | 199 | 3.4. Notices 200 | 201 | You may not remove or alter the substance of any license notices (including 202 | copyright notices, patent notices, disclaimers of warranty, or limitations 203 | of liability) contained within the Source Code Form of the Covered 204 | Software, except that You may alter any license notices to the extent 205 | required to remedy known factual inaccuracies. 206 | 207 | 3.5. Application of Additional Terms 208 | 209 | You may choose to offer, and to charge a fee for, warranty, support, 210 | indemnity or liability obligations to one or more recipients of Covered 211 | Software. However, You may do so only on Your own behalf, and not on behalf 212 | of any Contributor. You must make it absolutely clear that any such 213 | warranty, support, indemnity, or liability obligation is offered by You 214 | alone, and You hereby agree to indemnify every Contributor for any 215 | liability incurred by such Contributor as a result of warranty, support, 216 | indemnity or liability terms You offer. You may include additional 217 | disclaimers of warranty and limitations of liability specific to any 218 | jurisdiction. 219 | 220 | 4. Inability to Comply Due to Statute or Regulation 221 | 222 | If it is impossible for You to comply with any of the terms of this License 223 | with respect to some or all of the Covered Software due to statute, judicial 224 | order, or regulation then You must: (a) comply with the terms of this License 225 | to the maximum extent possible; and (b) describe the limitations and the code 226 | they affect. Such description must be placed in a text file included with all 227 | distributions of the Covered Software under this License. Except to the 228 | extent prohibited by statute or regulation, such description must be 229 | sufficiently detailed for a recipient of ordinary skill to be able to 230 | understand it. 231 | 232 | 5. Termination 233 | 234 | 5.1. The rights granted under this License will terminate automatically if You 235 | fail to comply with any of its terms. However, if You become compliant, 236 | then the rights granted under this License from a particular Contributor 237 | are reinstated (a) provisionally, unless and until such Contributor 238 | explicitly and finally terminates Your grants, and (b) on an ongoing basis, 239 | if such Contributor fails to notify You of the non-compliance by some 240 | reasonable means prior to 60 days after You have come back into compliance. 241 | Moreover, Your grants from a particular Contributor are reinstated on an 242 | ongoing basis if such Contributor notifies You of the non-compliance by 243 | some reasonable means, this is the first time You have received notice of 244 | non-compliance with this License from such Contributor, and You become 245 | compliant prior to 30 days after Your receipt of the notice. 246 | 247 | 5.2. If You initiate litigation against any entity by asserting a patent 248 | infringement claim (excluding declaratory judgment actions, counter-claims, 249 | and cross-claims) alleging that a Contributor Version directly or 250 | indirectly infringes any patent, then the rights granted to You by any and 251 | all Contributors for the Covered Software under Section 2.1 of this License 252 | shall terminate. 253 | 254 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user 255 | license agreements (excluding distributors and resellers) which have been 256 | validly granted by You or Your distributors under this License prior to 257 | termination shall survive termination. 258 | 259 | 6. Disclaimer of Warranty 260 | 261 | Covered Software is provided under this License on an “as is” basis, without 262 | warranty of any kind, either expressed, implied, or statutory, including, 263 | without limitation, warranties that the Covered Software is free of defects, 264 | merchantable, fit for a particular purpose or non-infringing. The entire 265 | risk as to the quality and performance of the Covered Software is with You. 266 | Should any Covered Software prove defective in any respect, You (not any 267 | Contributor) assume the cost of any necessary servicing, repair, or 268 | correction. This disclaimer of warranty constitutes an essential part of this 269 | License. No use of any Covered Software is authorized under this License 270 | except under this disclaimer. 271 | 272 | 7. Limitation of Liability 273 | 274 | Under no circumstances and under no legal theory, whether tort (including 275 | negligence), contract, or otherwise, shall any Contributor, or anyone who 276 | distributes Covered Software as permitted above, be liable to You for any 277 | direct, indirect, special, incidental, or consequential damages of any 278 | character including, without limitation, damages for lost profits, loss of 279 | goodwill, work stoppage, computer failure or malfunction, or any and all 280 | other commercial damages or losses, even if such party shall have been 281 | informed of the possibility of such damages. This limitation of liability 282 | shall not apply to liability for death or personal injury resulting from such 283 | party’s negligence to the extent applicable law prohibits such limitation. 284 | Some jurisdictions do not allow the exclusion or limitation of incidental or 285 | consequential damages, so this exclusion and limitation may not apply to You. 286 | 287 | 8. Litigation 288 | 289 | Any litigation relating to this License may be brought only in the courts of 290 | a jurisdiction where the defendant maintains its principal place of business 291 | and such litigation shall be governed by laws of that jurisdiction, without 292 | reference to its conflict-of-law provisions. Nothing in this Section shall 293 | prevent a party’s ability to bring cross-claims or counter-claims. 294 | 295 | 9. Miscellaneous 296 | 297 | This License represents the complete agreement concerning the subject matter 298 | hereof. If any provision of this License is held to be unenforceable, such 299 | provision shall be reformed only to the extent necessary to make it 300 | enforceable. Any law or regulation which provides that the language of a 301 | contract shall be construed against the drafter shall not be used to construe 302 | this License against a Contributor. 303 | 304 | 305 | 10. Versions of the License 306 | 307 | 10.1. New Versions 308 | 309 | Mozilla Foundation is the license steward. Except as provided in Section 310 | 10.3, no one other than the license steward has the right to modify or 311 | publish new versions of this License. Each version will be given a 312 | distinguishing version number. 313 | 314 | 10.2. Effect of New Versions 315 | 316 | You may distribute the Covered Software under the terms of the version of 317 | the License under which You originally received the Covered Software, or 318 | under the terms of any subsequent version published by the license 319 | steward. 320 | 321 | 10.3. Modified Versions 322 | 323 | If you create software not governed by this License, and you want to 324 | create a new license for such software, you may create and use a modified 325 | version of this License if you rename the license and remove any 326 | references to the name of the license steward (except to note that such 327 | modified license differs from this License). 328 | 329 | 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses 330 | If You choose to distribute Source Code Form that is Incompatible With 331 | Secondary Licenses under the terms of this version of the License, the 332 | notice described in Exhibit B of this License must be attached. 333 | 334 | Exhibit A - Source Code Form License Notice 335 | 336 | This Source Code Form is subject to the 337 | terms of the Mozilla Public License, v. 338 | 2.0. If a copy of the MPL was not 339 | distributed with this file, You can 340 | obtain one at 341 | http://mozilla.org/MPL/2.0/. 342 | 343 | If it is not possible or desirable to put the notice in a particular file, then 344 | You may include the notice in a location (such as a LICENSE file in a relevant 345 | directory) where a recipient would be likely to look for such a notice. 346 | 347 | You may add additional accurate notices of copyright ownership. 348 | 349 | Exhibit B - “Incompatible With Secondary Licenses” Notice 350 | 351 | This Source Code Form is “Incompatible 352 | With Secondary Licenses”, as defined by 353 | the Mozilla Public License, v. 2.0. 354 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 6 | cloud.google.com/go v0.45.1 h1:lRi0CHyU+ytlvylOlFKKq0af6JncuyoRh1J+QJBqQx0= 7 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 8 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 9 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 10 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 11 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 12 | github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= 13 | github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= 14 | github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= 15 | github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= 16 | github.com/Microsoft/go-winio v0.4.16 h1:FtSW/jqD+l4ba5iPBj9CODVtgfYAD8w2wS923g/cFDk= 17 | github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0= 18 | github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7 h1:uSoVVbwJiQipAclBbw+8quDsfcvFjOpI5iCf4p/cqCs= 19 | github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= 20 | github.com/andybalholm/crlf v0.0.0-20171020200849-670099aa064f/go.mod h1:k8feO4+kXDxro6ErPXBRTJ/ro2mf0SsFG8s7doP9kJE= 21 | github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA= 22 | github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= 23 | github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk= 24 | github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= 25 | github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= 26 | github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= 27 | github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= 28 | github.com/aws/aws-sdk-go v1.15.78 h1:LaXy6lWR0YK7LKyuU0QWy2ws/LWTPfYV/UgfiBu4tvY= 29 | github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM= 30 | github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas= 31 | github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4= 32 | github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= 33 | github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= 34 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 35 | github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= 36 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 37 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 38 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 39 | github.com/emirpasic/gods v1.12.0 h1:QAUIPSaCu4G+POclxeqb3F+WPpdKqFGlw36+yOzGlrg= 40 | github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= 41 | github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= 42 | github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ= 43 | github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= 44 | github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0= 45 | github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= 46 | github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= 47 | github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= 48 | github.com/go-git/go-billy/v5 v5.0.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= 49 | github.com/go-git/go-billy/v5 v5.1.0 h1:4pl5BV4o7ZG/lterP4S6WzJ6xr49Ba5ET9ygheTYahk= 50 | github.com/go-git/go-billy/v5 v5.1.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= 51 | github.com/go-git/go-git-fixtures/v4 v4.0.2-0.20200613231340-f56387b50c12 h1:PbKy9zOy4aAKrJ5pibIRpVO2BXnK1Tlcg+caKI7Ox5M= 52 | github.com/go-git/go-git-fixtures/v4 v4.0.2-0.20200613231340-f56387b50c12/go.mod h1:m+ICp2rF3jDhFgEZ/8yziagdT1C+ZpZcrJjappBCDSw= 53 | github.com/go-git/go-git/v5 v5.3.0 h1:8WKMtJR2j8RntEXR/uvTKagfEt4GYlwQ7mntE4+0GWc= 54 | github.com/go-git/go-git/v5 v5.3.0/go.mod h1:xdX4bWJ48aOrdhnl2XqHYstHbbp6+LFS4r4X+lNVprw= 55 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= 56 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 57 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 58 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 59 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 60 | github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 61 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 62 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 63 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 64 | github.com/golang/protobuf v1.3.4 h1:87PNWwrRvUSnqS4dlcBU/ftvOIBep4sYuBLlh6rX2wk= 65 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 66 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 67 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 68 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 69 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 70 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 71 | github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= 72 | github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 73 | github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= 74 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 75 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 76 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 77 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 78 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 79 | github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= 80 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 81 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 82 | github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= 83 | github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= 84 | github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= 85 | github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= 86 | github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= 87 | github.com/hashicorp/go-getter v1.5.3 h1:NF5+zOlQegim+w/EUhSLh6QhXHmZMEeHLQzllkQ3ROU= 88 | github.com/hashicorp/go-getter v1.5.3/go.mod h1:BrrV/1clo8cCYu6mxvboYg+KutTiFnXjMEgDD8+i7ZI= 89 | github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= 90 | github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo= 91 | github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoDHxNAB65b+Rj1I= 92 | github.com/hashicorp/go-uuid v1.0.0 h1:RS8zrF7PhGwyNPOtxSClXXj9HA8feRnJzgnI1RJCSnM= 93 | github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 94 | github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= 95 | github.com/hashicorp/go-version v1.3.0 h1:McDWVJIU/y+u1BRV06dPaLfLCaT7fUTJLp5r04x7iNw= 96 | github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= 97 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 98 | github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU= 99 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 100 | github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= 101 | github.com/hashicorp/terraform-exec v0.13.3 h1:R6L2mNpDGSEqtLrSONN8Xth0xYwNrnEVzDz6LF/oJPk= 102 | github.com/hashicorp/terraform-exec v0.13.3/go.mod h1:SSg6lbUsVB3DmFyCPjBPklqf6EYGX0TlQ6QTxOlikDU= 103 | github.com/hashicorp/terraform-json v0.10.0 h1:9syPD/Y5t+3uFjG8AiWVPu1bklJD8QB8iTCaJASc8oQ= 104 | github.com/hashicorp/terraform-json v0.10.0/go.mod h1:3defM4kkMfttwiE7VakJDwCd4R+umhSQnvJwORXbprE= 105 | github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= 106 | github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= 107 | github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU= 108 | github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= 109 | github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= 110 | github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= 111 | github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= 112 | github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8 h1:12VvqtR6Aowv3l/EQUlocDHW2Cp4G9WJVH7uyH8QFJE= 113 | github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= 114 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 115 | github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 h1:DowS9hvgyYSX4TO5NpyC606/Z4SxnNYbT+WX27or6Ck= 116 | github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= 117 | github.com/klauspost/compress v1.11.2 h1:MiK62aErc3gIiVEtyzKfeOHgW7atJb5g/KNX5m3c2nQ= 118 | github.com/klauspost/compress v1.11.2/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= 119 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 120 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 121 | github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= 122 | github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= 123 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 124 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 125 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 126 | github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= 127 | github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= 128 | github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= 129 | github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= 130 | github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= 131 | github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= 132 | github.com/mitchellh/cli v1.1.2/go.mod h1:6iaV0fGdElS6dPBx0EApTxHrcWvmJphyh2n8YBLPPZ4= 133 | github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= 134 | github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= 135 | github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= 136 | github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= 137 | github.com/mitchellh/go-testing-interface v1.0.0 h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0= 138 | github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= 139 | github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= 140 | github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= 141 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 142 | github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= 143 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 144 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 145 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 146 | github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= 147 | github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= 148 | github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= 149 | github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= 150 | github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= 151 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 152 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 153 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 154 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 155 | github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 156 | github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= 157 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 158 | github.com/ulikunitz/xz v0.5.8 h1:ERv8V6GKqVi23rgu5cj9pVfVzJbOqAY2Ntl88O6c2nQ= 159 | github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= 160 | github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= 161 | github.com/vmihailenco/msgpack/v4 v4.3.12/go.mod h1:gborTTJjAo/GWTqqRjrLCn9pgNN+NXzzngzBKDPIqw4= 162 | github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= 163 | github.com/xanzy/ssh-agent v0.3.0 h1:wUMzuKtKilRgBAD1sUb8gOwwRr2FGoBVumcjoOACClI= 164 | github.com/xanzy/ssh-agent v0.3.0/go.mod h1:3s9xbODqPuuhK9JV1R321M/FlMZSBvE5aY6eAcqrDh0= 165 | github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= 166 | github.com/zclconf/go-cty v1.2.1/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= 167 | github.com/zclconf/go-cty v1.8.2 h1:u+xZfBKgpycDnTNjPhGiTEYZS5qS/Sb5MqSfm7vzcjg= 168 | github.com/zclconf/go-cty v1.8.2/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= 169 | github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= 170 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 171 | go.opencensus.io v0.22.0 h1:C9hSCOW830chIVkdja34wa6Ky+IzWllkUinR+BtRZd4= 172 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 173 | golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 174 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 175 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 176 | golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 177 | golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 h1:It14KIkyBFYkHkwZ7k45minvA9aorojkyjGk9KJ5B/w= 178 | golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= 179 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 180 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 181 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 182 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 183 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 184 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 185 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 186 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 187 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 188 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 189 | golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 190 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 191 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 192 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 193 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 194 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 195 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 196 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 197 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 198 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 199 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 200 | golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 201 | golang.org/x/net v0.0.0-20210326060303-6b1517762897 h1:KrsHThm5nFk34YtATK1LsThyGhGbGe1olrte/HInHvs= 202 | golang.org/x/net v0.0.0-20210326060303-6b1517762897/go.mod h1:uSPa2vr4CLtc/ILN5odXGNXS6mhrKVzTaCXzk9m6W3k= 203 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 204 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 205 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= 206 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 207 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 208 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 209 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 210 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 211 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 212 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 213 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 214 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 215 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 216 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 217 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 218 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 219 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 220 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 221 | golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 222 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 223 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 224 | golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 225 | golang.org/x/sys v0.0.0-20210324051608-47abb6519492 h1:Paq34FxTluEPvVyayQqMPgHm+vTOrIifmcYxFBx9TLg= 226 | golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 227 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= 228 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 229 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 230 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 231 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 232 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 233 | golang.org/x/text v0.3.5 h1:i6eZZ+zk0SOf0xgBpEpPD18qWcJda6q1sxt3S0kzyUQ= 234 | golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 235 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 236 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 237 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 238 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 239 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 240 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 241 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 242 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 243 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 244 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 245 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 246 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 247 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= 248 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 249 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 250 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 251 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 252 | google.golang.org/api v0.9.0 h1:jbyannxz0XFD3zdjgrSUsaJbgpH4eTrkdhRChkHPfO8= 253 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 254 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 255 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 256 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 257 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 258 | google.golang.org/appengine v1.6.5 h1:tycE03LOZYQNhDpS27tcQdAzLCVMaj7QT2SXxebnpCM= 259 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 260 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 261 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 262 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 263 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 264 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 265 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 266 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 h1:gSJIx1SDwno+2ElGhA4+qG2zF97qiUzTM+rQ0klBOcE= 267 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 268 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 269 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 270 | google.golang.org/grpc v1.21.1 h1:j6XxA85m/6txkUCHvzlV5f+HBNl/1r5cZ2A/3IEFOO8= 271 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 272 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 273 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 274 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 275 | gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 276 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= 277 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= 278 | gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= 279 | gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= 280 | gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= 281 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 282 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 283 | gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= 284 | gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 285 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= 286 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 287 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 288 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 289 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 290 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 291 | --------------------------------------------------------------------------------