├── .go-version ├── PROVIDER_NAME.txt ├── PROVIDER_VERSION.txt ├── vendor ├── github.com │ ├── hashicorp │ │ ├── go-hclog │ │ │ └── .gitignore │ │ ├── hc-install │ │ │ ├── .go-version │ │ │ ├── version │ │ │ │ └── VERSION │ │ │ ├── .copywrite.hcl │ │ │ ├── internal │ │ │ │ ├── src │ │ │ │ │ └── src.go │ │ │ │ └── validators │ │ │ │ │ └── validators.go │ │ │ ├── fs │ │ │ │ └── fs.go │ │ │ ├── releases │ │ │ │ └── releases.go │ │ │ ├── errors │ │ │ │ └── errors.go │ │ │ └── catalog-info.yaml │ │ ├── terraform-json │ │ │ ├── .go-version │ │ │ ├── .gitignore │ │ │ ├── CODEOWNERS │ │ │ ├── .copywrite.hcl │ │ │ ├── tfjson.go │ │ │ ├── Makefile │ │ │ ├── catalog-info.yaml │ │ │ └── version.go │ │ ├── go-retryablehttp │ │ │ ├── .go-version │ │ │ ├── .gitignore │ │ │ ├── CODEOWNERS │ │ │ ├── Makefile │ │ │ ├── cert_error_go119.go │ │ │ └── cert_error_go120.go │ │ ├── go-plugin │ │ │ ├── .gitignore │ │ │ ├── process.go │ │ │ ├── buf.yaml │ │ │ ├── buf.gen.yaml │ │ │ ├── internal │ │ │ │ ├── plugin │ │ │ │ │ ├── grpc_controller.proto │ │ │ │ │ └── grpc_broker.proto │ │ │ │ └── cmdrunner │ │ │ │ │ ├── process.go │ │ │ │ │ ├── process_posix.go │ │ │ │ │ └── addr_translator.go │ │ │ ├── stream.go │ │ │ ├── constants.go │ │ │ └── error.go │ │ ├── terraform-registry-address │ │ │ ├── .go-version │ │ │ ├── .copywrite.hcl │ │ │ └── errors.go │ │ ├── go-cty │ │ │ └── cty │ │ │ │ ├── msgpack │ │ │ │ ├── infinity.go │ │ │ │ └── unknown.go │ │ │ │ ├── set │ │ │ │ └── iterator.go │ │ │ │ ├── gocty │ │ │ │ └── doc.go │ │ │ │ ├── null.go │ │ │ │ └── json │ │ │ │ ├── doc.go │ │ │ │ └── type.go │ │ ├── go-uuid │ │ │ ├── .travis.yml │ │ │ └── README.md │ │ ├── terraform-plugin-go │ │ │ ├── internal │ │ │ │ └── logging │ │ │ │ │ ├── doc.go │ │ │ │ │ └── provider.go │ │ │ ├── tfprotov5 │ │ │ │ ├── internal │ │ │ │ │ ├── diag │ │ │ │ │ │ └── doc.go │ │ │ │ │ ├── toproto │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── timestamp.go │ │ │ │ │ │ ├── string_kind.go │ │ │ │ │ │ ├── deferred.go │ │ │ │ │ │ ├── function_error.go │ │ │ │ │ │ └── server_capabilities.go │ │ │ │ │ ├── fromproto │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── raw_state.go │ │ │ │ │ │ └── dynamic_value.go │ │ │ │ │ ├── funcerr │ │ │ │ │ │ └── doc.go │ │ │ │ │ └── tf5serverlogging │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ └── context_keys.go │ │ │ │ ├── tf5server │ │ │ │ │ └── doc.go │ │ │ │ └── function_error.go │ │ │ ├── tfprotov6 │ │ │ │ ├── internal │ │ │ │ │ ├── diag │ │ │ │ │ │ └── doc.go │ │ │ │ │ ├── toproto │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── timestamp.go │ │ │ │ │ │ ├── string_kind.go │ │ │ │ │ │ ├── deferred.go │ │ │ │ │ │ ├── function_error.go │ │ │ │ │ │ └── server_capabilities.go │ │ │ │ │ ├── fromproto │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── raw_state.go │ │ │ │ │ │ └── dynamic_value.go │ │ │ │ │ ├── funcerr │ │ │ │ │ │ └── doc.go │ │ │ │ │ └── tf6serverlogging │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ └── context_keys.go │ │ │ │ ├── tf6server │ │ │ │ │ └── doc.go │ │ │ │ └── function_error.go │ │ │ └── tftypes │ │ │ │ └── unknown_value.go │ │ ├── hcl │ │ │ └── v2 │ │ │ │ ├── tools.go │ │ │ │ ├── Makefile │ │ │ │ ├── hclsyntax │ │ │ │ ├── doc.go │ │ │ │ ├── file.go │ │ │ │ ├── generate.go │ │ │ │ └── keywords.go │ │ │ │ ├── .copywrite.hcl │ │ │ │ └── schema.go │ │ ├── terraform-svchost │ │ │ ├── CONTRIBUTING.md │ │ │ └── CHANGELOG.md │ │ ├── terraform-plugin-sdk │ │ │ └── v2 │ │ │ │ ├── helper │ │ │ │ ├── schema │ │ │ │ │ ├── context.go │ │ │ │ │ ├── equal.go │ │ │ │ │ ├── json.go │ │ │ │ │ ├── field_writer.go │ │ │ │ │ └── README.md │ │ │ │ ├── resource │ │ │ │ │ └── json.go │ │ │ │ ├── structure │ │ │ │ │ ├── expand_json.go │ │ │ │ │ ├── flatten_json.go │ │ │ │ │ ├── suppress_json_diff.go │ │ │ │ │ └── normalize_json.go │ │ │ │ └── validation │ │ │ │ │ └── uuid.go │ │ │ │ ├── internal │ │ │ │ ├── plugintest │ │ │ │ │ └── doc.go │ │ │ │ └── tfdiags │ │ │ │ │ ├── simple_warning.go │ │ │ │ │ ├── error.go │ │ │ │ │ ├── diagnostic.go │ │ │ │ │ └── severity_string.go │ │ │ │ └── terraform │ │ │ │ ├── util.go │ │ │ │ ├── instancetype.go │ │ │ │ └── resource_mode.go │ │ ├── terraform-exec │ │ │ ├── tfexec │ │ │ │ ├── doc.go │ │ │ │ └── workspace_select.go │ │ │ └── internal │ │ │ │ └── version │ │ │ │ └── version.go │ │ ├── logutils │ │ │ └── .gitignore │ │ ├── yamux │ │ │ └── .gitignore │ │ ├── terraform-plugin-log │ │ │ ├── tfsdklog │ │ │ │ └── doc.go │ │ │ └── tflog │ │ │ │ └── doc.go │ │ ├── go-version │ │ │ └── version_collection.go │ │ └── go-multierror │ │ │ ├── sort.go │ │ │ └── flatten.go │ ├── mitchellh │ │ ├── reflectwalk │ │ │ ├── .travis.yml │ │ │ ├── README.md │ │ │ ├── location.go │ │ │ └── location_string.go │ │ ├── go-testing-interface │ │ │ └── .travis.yml │ │ └── copystructure │ │ │ ├── copier_time.go │ │ │ └── README.md │ ├── golang-jwt │ │ └── jwt │ │ │ └── v5 │ │ │ ├── .gitignore │ │ │ ├── staticcheck.conf │ │ │ ├── doc.go │ │ │ ├── token_option.go │ │ │ └── claims.go │ ├── agext │ │ └── levenshtein │ │ │ ├── MAINTAINERS │ │ │ ├── NOTICE │ │ │ ├── test.sh │ │ │ └── .travis.yml │ ├── kylelemons │ │ └── godebug │ │ │ └── pretty │ │ │ └── .gitignore │ ├── mattn │ │ ├── go-isatty │ │ │ ├── doc.go │ │ │ ├── go.test.sh │ │ │ ├── isatty_others.go │ │ │ ├── isatty_plan9.go │ │ │ ├── isatty_tcgets.go │ │ │ ├── isatty_solaris.go │ │ │ └── isatty_bsd.go │ │ └── go-colorable │ │ │ └── go.test.sh │ ├── Azure │ │ └── azure-sdk-for-go │ │ │ └── sdk │ │ │ ├── azidentity │ │ │ ├── go.work │ │ │ ├── .gitignore │ │ │ ├── assets.json │ │ │ ├── managed-identity-matrix.json │ │ │ ├── logging.go │ │ │ └── version.go │ │ │ ├── internal │ │ │ ├── log │ │ │ │ └── doc.go │ │ │ ├── diag │ │ │ │ └── doc.go │ │ │ ├── uuid │ │ │ │ └── doc.go │ │ │ └── errorinfo │ │ │ │ └── doc.go │ │ │ └── azcore │ │ │ ├── streaming │ │ │ └── doc.go │ │ │ ├── policy │ │ │ └── doc.go │ │ │ ├── runtime │ │ │ ├── doc.go │ │ │ ├── transport_default_dialer_other.go │ │ │ └── transport_default_dialer_wasm.go │ │ │ ├── log │ │ │ └── doc.go │ │ │ ├── errors.go │ │ │ └── ci.yml │ ├── vmihailenco │ │ ├── msgpack │ │ │ ├── v5 │ │ │ │ ├── package.json │ │ │ │ ├── .prettierrc │ │ │ │ ├── commitlint.config.js │ │ │ │ ├── version.go │ │ │ │ ├── Makefile │ │ │ │ ├── safe.go │ │ │ │ ├── .travis.yml │ │ │ │ └── unsafe.go │ │ │ ├── Makefile │ │ │ ├── .travis.yml │ │ │ └── msgpack.go │ │ └── tagparser │ │ │ └── v2 │ │ │ ├── internal │ │ │ ├── safe.go │ │ │ └── unsafe.go │ │ │ ├── Makefile │ │ │ ├── .travis.yml │ │ │ └── README.md │ ├── pkg │ │ └── browser │ │ │ ├── browser_darwin.go │ │ │ ├── browser_windows.go │ │ │ ├── browser_unsupported.go │ │ │ ├── browser_freebsd.go │ │ │ ├── browser_netbsd.go │ │ │ ├── browser_openbsd.go │ │ │ └── browser_linux.go │ ├── ProtonMail │ │ └── go-crypto │ │ │ ├── openpgp │ │ │ ├── packet │ │ │ │ ├── config_v5.go │ │ │ │ ├── recipient.go │ │ │ │ └── packet_unsupported.go │ │ │ └── hash.go │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── google │ │ ├── uuid │ │ │ ├── CONTRIBUTORS │ │ │ ├── doc.go │ │ │ └── node_js.go │ │ └── go-cmp │ │ │ └── cmp │ │ │ └── internal │ │ │ ├── flags │ │ │ └── flags.go │ │ │ └── diff │ │ │ └── debug_disable.go │ ├── cloudflare │ │ └── circl │ │ │ ├── sign │ │ │ └── ed25519 │ │ │ │ ├── pubkey112.go │ │ │ │ └── pubkey.go │ │ │ ├── dh │ │ │ ├── x448 │ │ │ │ └── curve_noasm.go │ │ │ └── x25519 │ │ │ │ └── curve_noasm.go │ │ │ ├── math │ │ │ ├── integer.go │ │ │ ├── fp448 │ │ │ │ └── fp_noasm.go │ │ │ └── fp25519 │ │ │ │ └── fp_noasm.go │ │ │ └── internal │ │ │ └── sha3 │ │ │ ├── xor.go │ │ │ └── rc.go │ ├── golang │ │ └── protobuf │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── stretchr │ │ └── testify │ │ │ ├── require │ │ │ ├── require_forward.go.tmpl │ │ │ ├── require.go.tmpl │ │ │ └── forward_requirements.go │ │ │ └── assert │ │ │ ├── assertion_format.go.tmpl │ │ │ ├── assertion_forward.go.tmpl │ │ │ ├── errors.go │ │ │ ├── forward_assertions.go │ │ │ └── yaml │ │ │ └── yaml_fail.go │ ├── ahmetb │ │ └── go-linq │ │ │ ├── doc.go │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── microsoft │ │ └── azure-devops-go-api │ │ │ └── azuredevops │ │ │ └── v7 │ │ │ ├── auth.go │ │ │ ├── client_options.go │ │ │ ├── errors.go │ │ │ └── auth_pat.go │ ├── oklog │ │ └── run │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── zclconf │ │ └── go-cty │ │ │ └── cty │ │ │ ├── set │ │ │ └── iterator.go │ │ │ ├── function │ │ │ ├── doc.go │ │ │ └── stdlib │ │ │ │ └── doc.go │ │ │ ├── gocty │ │ │ └── doc.go │ │ │ ├── ctystrings │ │ │ └── normalize.go │ │ │ ├── null.go │ │ │ └── json │ │ │ ├── doc.go │ │ │ └── type.go │ ├── AzureAD │ │ └── microsoft-authentication-library-for-go │ │ │ └── apps │ │ │ └── internal │ │ │ └── version │ │ │ └── version.go │ ├── fatih │ │ └── color │ │ │ └── color_windows.go │ └── apparentlymart │ │ └── go-textseg │ │ └── v15 │ │ └── textseg │ │ ├── utf8_seqs.go │ │ └── generate.go ├── google.golang.org │ ├── grpc │ │ ├── AUTHORS │ │ ├── GOVERNANCE.md │ │ ├── CODE-OF-CONDUCT.md │ │ ├── SECURITY.md │ │ ├── reflection │ │ │ └── README.md │ │ └── NOTICE.txt │ ├── protobuf │ │ ├── internal │ │ │ ├── editiondefaults │ │ │ │ ├── editions_defaults.binpb │ │ │ │ └── defaults.go │ │ │ ├── flags │ │ │ │ ├── proto_legacy_enable.go │ │ │ │ └── proto_legacy_disable.go │ │ │ ├── genid │ │ │ │ ├── name.go │ │ │ │ ├── doc.go │ │ │ │ ├── wrappers.go │ │ │ │ ├── map_entry.go │ │ │ │ └── empty_gen.go │ │ │ ├── impl │ │ │ │ ├── codec_unsafe.go │ │ │ │ └── enum.go │ │ │ └── protolazy │ │ │ │ └── pointer_unsafe.go │ │ ├── encoding │ │ │ ├── prototext │ │ │ │ └── doc.go │ │ │ └── protojson │ │ │ │ └── doc.go │ │ ├── runtime │ │ │ └── protoiface │ │ │ │ └── legacy.go │ │ └── proto │ │ │ ├── proto_reflect.go │ │ │ └── proto_methods.go │ └── appengine │ │ ├── internal │ │ ├── identity_flex.go │ │ ├── main_common.go │ │ ├── main.go │ │ └── base │ │ │ └── api_base.proto │ │ ├── timeout.go │ │ └── appengine_vm.go ├── golang.org │ └── x │ │ ├── net │ │ ├── http2 │ │ │ ├── .gitignore │ │ │ ├── config_go125.go │ │ │ └── config_go126.go │ │ └── idna │ │ │ ├── pre_go118.go │ │ │ └── go118.go │ │ ├── sys │ │ ├── unix │ │ │ ├── .gitignore │ │ │ ├── ptrace_ios.go │ │ │ ├── vgetrandom_unsupported.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── endian_big.go │ │ │ ├── ptrace_darwin.go │ │ │ ├── constants.go │ │ │ ├── endian_little.go │ │ │ ├── mmap_nomremap.go │ │ │ ├── vgetrandom_linux.go │ │ │ ├── auxv_unsupported.go │ │ │ ├── aliases.go │ │ │ ├── readdirent_getdents.go │ │ │ ├── pagesize_unix.go │ │ │ ├── sysvshm_unix_other.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── syscall_linux_gc_arm.go │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── syscall_linux_alarm.go │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── syscall_hurd_386.go │ │ │ ├── sysvshm_linux.go │ │ │ ├── sockcmsg_dragonfly.go │ │ │ ├── race0.go │ │ │ ├── syscall_linux_gc_386.go │ │ │ ├── syscall_linux_gccgo_arm.go │ │ │ ├── syscall_unix_gc.go │ │ │ ├── syscall_solaris_amd64.go │ │ │ └── race.go │ │ ├── cpu │ │ │ ├── cpu_other_arm.go │ │ │ ├── cpu_zos.go │ │ │ ├── cpu_other_arm64.go │ │ │ ├── cpu_mipsx.go │ │ │ ├── cpu_other_riscv64.go │ │ │ ├── cpu_other_mips64x.go │ │ │ ├── cpu_other_ppc64x.go │ │ │ ├── cpu_linux_noinit.go │ │ │ ├── cpu_gc_arm64.go │ │ │ ├── cpu_other_x86.go │ │ │ ├── cpu_linux.go │ │ │ ├── cpu_mips64x.go │ │ │ ├── cpu_gccgo_arm64.go │ │ │ ├── cpu_loong64.s │ │ │ ├── cpu_openbsd_arm64.s │ │ │ ├── cpu_ppc64x.go │ │ │ ├── endian_big.go │ │ │ ├── runtime_auxv_go121.go │ │ │ ├── runtime_auxv.go │ │ │ ├── endian_little.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── cpu_wasm.go │ │ │ ├── cpu_gc_x86.go │ │ │ ├── cpu_linux_mips64x.go │ │ │ ├── asm_darwin_x86_gc.s │ │ │ ├── cpu_gc_x86.s │ │ │ ├── cpu_linux_loong64.go │ │ │ ├── cpu_gccgo_x86.go │ │ │ ├── cpu_aix.go │ │ │ └── cpu_zos_s390x.go │ │ └── windows │ │ │ ├── aliases.go │ │ │ ├── mksyscall.go │ │ │ ├── race0.go │ │ │ ├── str.go │ │ │ └── race.go │ │ ├── crypto │ │ ├── blake2b │ │ │ ├── go125.go │ │ │ ├── blake2b_ref.go │ │ │ └── register.go │ │ ├── internal │ │ │ └── poly1305 │ │ │ │ └── mac_noasm.go │ │ ├── chacha20 │ │ │ ├── chacha_noasm.go │ │ │ ├── chacha_arm64.go │ │ │ └── chacha_ppc64x.go │ │ └── argon2 │ │ │ └── blamka_ref.go │ │ ├── tools │ │ └── internal │ │ │ ├── pkgbits │ │ │ ├── flags.go │ │ │ └── support.go │ │ │ ├── event │ │ │ ├── doc.go │ │ │ └── keys │ │ │ │ └── util.go │ │ │ └── gocommand │ │ │ ├── invoke_unix.go │ │ │ └── invoke_notunix.go │ │ └── text │ │ └── secure │ │ └── bidirule │ │ ├── bidirule10.0.0.go │ │ └── bidirule9.0.0.go ├── go.uber.org │ └── mock │ │ └── AUTHORS └── gopkg.in │ └── yaml.v3 │ └── NOTICE ├── azuredevops ├── utils │ ├── commons.go │ └── sdk │ │ └── dashboardextras │ │ └── models.go └── internal │ ├── acceptancetests │ ├── package.go │ └── testutils │ │ └── data.go │ ├── utils │ ├── testhelper │ │ ├── array.go │ │ ├── dataGenerator.go │ │ └── random.go │ ├── suppress │ │ └── string.go │ └── validate │ │ └── url.go │ └── model │ └── repo.go ├── docs └── images │ ├── prettyprintlogs.png │ └── terraform-docs-website.png ├── version └── version.go ├── examples ├── .env.template ├── azdo-based-cicd │ └── variables.tf └── github-based-cicd-simple │ └── README.md ├── scripts ├── unittest.sh ├── lint-check-go.sh ├── gofmtcheck.sh └── gogetcookie.sh ├── .github ├── workflows │ ├── depscheck.yml │ ├── unit-test.yml │ ├── terrafmt.yml │ └── golint.yml └── ISSUE_TEMPLATE │ └── Question.md ├── .gitignore ├── .azdo └── azure-pipeline-nightly.yml ├── CODE_OF_CONDUCT.md ├── .vscode └── launch.json ├── main.go └── .goreleaser.yml /.go-version: -------------------------------------------------------------------------------- 1 | 1.24.1 -------------------------------------------------------------------------------- /PROVIDER_NAME.txt: -------------------------------------------------------------------------------- 1 | azuredevops -------------------------------------------------------------------------------- /PROVIDER_VERSION.txt: -------------------------------------------------------------------------------- 1 | 0.0.1 -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-hclog/.gitignore: -------------------------------------------------------------------------------- 1 | .idea* -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hc-install/.go-version: -------------------------------------------------------------------------------- 1 | 1.22.4 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/.go-version: -------------------------------------------------------------------------------- 1 | 1.20 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/.go-version: -------------------------------------------------------------------------------- 1 | 1.22.2 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hc-install/version/VERSION: -------------------------------------------------------------------------------- 1 | 0.9.1 2 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea 3 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-registry-address/.go-version: -------------------------------------------------------------------------------- 1 | 1.19 2 | -------------------------------------------------------------------------------- /vendor/github.com/golang-jwt/jwt/v5/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | bin 3 | .idea/ 4 | 5 | -------------------------------------------------------------------------------- /azuredevops/utils/commons.go: -------------------------------------------------------------------------------- 1 | package utils 2 | 3 | const ApiVersion = "7.1-preview.3" 4 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/MAINTAINERS: -------------------------------------------------------------------------------- 1 | Alex Bucataru (@AlexBucataru) 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | *.test 4 | .vscode/ -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @hashicorp/go-retryablehttp-maintainers 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/.gitignore: -------------------------------------------------------------------------------- 1 | .terraform 2 | plan.tfplan 3 | terraform.tfstate.backup 4 | -------------------------------------------------------------------------------- /vendor/github.com/kylelemons/godebug/pretty/.gitignore: -------------------------------------------------------------------------------- 1 | *.test 2 | *.bench 3 | *.golden 4 | *.txt 5 | *.prof 6 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/go.work: -------------------------------------------------------------------------------- 1 | go 1.23.0 2 | 3 | use ( 4 | . 5 | ./cache 6 | ) 7 | -------------------------------------------------------------------------------- /vendor/github.com/golang-jwt/jwt/v5/staticcheck.conf: -------------------------------------------------------------------------------- 1 | checks = ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1023"] 2 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "msgpack", 3 | "version": "5.4.1" 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/.gitignore: -------------------------------------------------------------------------------- 1 | # live test artifacts 2 | Dockerfile 3 | k8s.yaml 4 | sshkey* 5 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/.prettierrc: -------------------------------------------------------------------------------- 1 | semi: false 2 | singleQuote: true 3 | proseWrap: always 4 | printWidth: 100 5 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { extends: ['@commitlint/config-conventional'] } 2 | -------------------------------------------------------------------------------- /docs/images/prettyprintlogs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/terraform-provider-azuredevops/HEAD/docs/images/prettyprintlogs.png -------------------------------------------------------------------------------- /docs/images/terraform-docs-website.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/terraform-provider-azuredevops/HEAD/docs/images/terraform-docs-website.png -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/process.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package plugin 5 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/browser/browser_darwin.go: -------------------------------------------------------------------------------- 1 | package browser 2 | 3 | func openBrowser(url string) error { 4 | return runCmd("open", url) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/openpgp/packet/config_v5.go: -------------------------------------------------------------------------------- 1 | //go:build !v5 2 | 3 | package packet 4 | 5 | func init() { 6 | V5Disabled = true 7 | } 8 | -------------------------------------------------------------------------------- /version/version.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | // ProviderVersion is set during the release process to the release version of the binary 4 | var ProviderVersion = "dev" 5 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/version.go: -------------------------------------------------------------------------------- 1 | package msgpack 2 | 3 | // Version is the current release version. 4 | func Version() string { 5 | return "5.4.1" 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/buf.yaml: -------------------------------------------------------------------------------- 1 | # Copyright (c) HashiCorp, Inc. 2 | # SPDX-License-Identifier: MPL-2.0 3 | 4 | version: v1 5 | build: 6 | excludes: 7 | - examples/ -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hc-install/.copywrite.hcl: -------------------------------------------------------------------------------- 1 | schema_version = 1 2 | 3 | project { 4 | license = "MPL-2.0" 5 | copyright_year = 2020 6 | header_ignore = [] 7 | } 8 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/GOVERNANCE.md: -------------------------------------------------------------------------------- 1 | This repository is governed by the gRPC organization's [governance rules](https://github.com/grpc/grpc-community/blob/master/governance.md). 2 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | bmatsuo 3 | shawnps 4 | theory 5 | jboverfelt 6 | dsymonds 7 | cd1 8 | wallclockbuilder 9 | dansouza 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-cty/cty/msgpack/infinity.go: -------------------------------------------------------------------------------- 1 | package msgpack 2 | 3 | import ( 4 | "math" 5 | ) 6 | 7 | var negativeInfinity = math.Inf(-1) 8 | var positiveInfinity = math.Inf(1) 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hc-install/internal/src/src.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package src 5 | 6 | type InstallSrcSigil struct{} 7 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/CODE-OF-CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Community Code of Conduct 2 | 3 | gRPC follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-registry-address/.copywrite.hcl: -------------------------------------------------------------------------------- 1 | schema_version = 1 2 | 3 | project { 4 | license = "MPL-2.0" 5 | copyright_year = 2021 6 | header_ignore = [] 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/sign/ed25519/pubkey112.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.13 2 | // +build !go1.13 3 | 4 | package ed25519 5 | 6 | // PublicKey is the type of Ed25519 public keys. 7 | type PublicKey []byte 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # This codebase has shared ownership and responsibility. 2 | * @hashicorp/terraform-core @hashicorp/terraform-devex @hashicorp/tf-editor-experience-engineers 3 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | go test ./... 3 | env GOOS=linux GOARCH=386 go test ./... 4 | go test ./... -short -race 5 | go test ./... -run=nothing -bench=. -benchmem 6 | go vet 7 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | go test ./... 3 | go test ./... -short -race 4 | go test ./... -run=NONE -bench=. -benchmem 5 | env GOOS=linux GOARCH=386 go test ./... 6 | go vet 7 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/NOTICE: -------------------------------------------------------------------------------- 1 | Alrux Go EXTensions (AGExt) - package levenshtein 2 | Copyright 2016 ALRUX Inc. 3 | 4 | This product includes software developed at ALRUX Inc. 5 | (http://www.alrux.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | sudo: false 4 | 5 | go: 6 | - 1.4 7 | - 1.5 8 | - 1.6 9 | - tip 10 | 11 | script: 12 | - go test -bench . -benchmem -v ./... 13 | -------------------------------------------------------------------------------- /vendor/github.com/golang-jwt/jwt/v5/doc.go: -------------------------------------------------------------------------------- 1 | // Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html 2 | // 3 | // See README.md for more info. 4 | package jwt 5 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/go-testing-interface/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.x 5 | - tip 6 | 7 | script: 8 | - go test 9 | 10 | matrix: 11 | allow_failures: 12 | - go: tip 13 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/assets.json: -------------------------------------------------------------------------------- 1 | { 2 | "AssetsRepo": "Azure/azure-sdk-assets", 3 | "AssetsRepoPrefixPath": "go", 4 | "TagPrefix": "go/azidentity", 5 | "Tag": "go/azidentity_191110b0dd" 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/log/doc.go: -------------------------------------------------------------------------------- 1 | //go:build go1.18 2 | // +build go1.18 3 | 4 | // Copyright (c) Microsoft Corporation. All rights reserved. 5 | // Licensed under the MIT License. 6 | 7 | package log 8 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/diag/doc.go: -------------------------------------------------------------------------------- 1 | //go:build go1.18 2 | // +build go1.18 3 | 4 | // Copyright (c) Microsoft Corporation. All rights reserved. 5 | // Licensed under the MIT License. 6 | 7 | package diag 8 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/uuid/doc.go: -------------------------------------------------------------------------------- 1 | //go:build go1.18 2 | // +build go1.18 3 | 4 | // Copyright (c) Microsoft Corporation. All rights reserved. 5 | // Licensed under the MIT License. 6 | 7 | package uuid 8 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/terraform-provider-azuredevops/HEAD/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/errorinfo/doc.go: -------------------------------------------------------------------------------- 1 | //go:build go1.18 2 | // +build go1.18 3 | 4 | // Copyright (c) Microsoft Corporation. All rights reserved. 5 | // Licensed under the MIT License. 6 | 7 | package errorinfo 8 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | For information on gRPC Security Policy and reporting potential security issues, please see [gRPC CVE Process](https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md). 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang-jwt/jwt/v5/token_option.go: -------------------------------------------------------------------------------- 1 | package jwt 2 | 3 | // TokenOption is a reserved type, which provides some forward compatibility, 4 | // if we ever want to introduce token creation-related options. 5 | type TokenOption func(*Token) 6 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/Makefile: -------------------------------------------------------------------------------- 1 | default: test 2 | 3 | test: 4 | go vet ./... 5 | go test -v -race ./... 6 | 7 | updatedeps: 8 | go get -f -t -u ./... 9 | go get -f -u ./... 10 | 11 | .PHONY: default test updatedeps 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package logging contains shared environment variable and log functionality. 5 | package logging 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/tools.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | //go:build tools 5 | // +build tools 6 | 7 | package hcl 8 | 9 | import ( 10 | _ "golang.org/x/tools/cmd/stringer" 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/browser/browser_windows.go: -------------------------------------------------------------------------------- 1 | package browser 2 | 3 | import "golang.org/x/sys/windows" 4 | 5 | func openBrowser(url string) error { 6 | return windows.ShellExecute(0, nil, windows.StringToUTF16Ptr(url), nil, nil, windows.SW_SHOWNORMAL) 7 | } 8 | -------------------------------------------------------------------------------- /azuredevops/internal/acceptancetests/package.go: -------------------------------------------------------------------------------- 1 | package acceptancetests 2 | 3 | // A go package needs a non test file in order to be found when running `go list ./...`, which is the 4 | // command that is run in order to discover the acceptance tests in this project. 5 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-svchost/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to the svchost library 2 | 3 | If you find an issue or would like to add a feature, please add an issue in GitHub. We welcome your contributions - fork the repo and submit a pull request. 4 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentFormat}} 2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/tagparser/v2/internal/safe.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package internal 4 | 5 | func BytesToString(b []byte) string { 6 | return string(b) 7 | } 8 | 9 | func StringToBytes(s string) []byte { 10 | return []byte(s) 11 | } 12 | -------------------------------------------------------------------------------- /examples/.env.template: -------------------------------------------------------------------------------- 1 | AZDO_GITHUB_SERVICE_CONNECTION_PAT= 2 | AZDO_ORG_SERVICE_URL= 3 | AZDO_PERSONAL_ACCESS_TOKEN= 4 | AZDO_DOCKERREGISTRY_SERVICE_CONNECTION_USERNAME= 5 | AZDO_DOCKERREGISTRY_SERVICE_CONNECTION_EMAIL= 6 | AZDO_DOCKERREGISTRY_SERVICE_CONNECTION_PASSWORD= 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/context.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package schema 5 | 6 | type Key string 7 | 8 | var ( 9 | StopContextKey = Key("StopContext") 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/sign/ed25519/pubkey.go: -------------------------------------------------------------------------------- 1 | //go:build go1.13 2 | // +build go1.13 3 | 4 | package ed25519 5 | 6 | import cryptoEd25519 "crypto/ed25519" 7 | 8 | // PublicKey is the type of Ed25519 public keys. 9 | type PublicKey cryptoEd25519.PublicKey 10 | -------------------------------------------------------------------------------- /vendor/github.com/ahmetb/go-linq/doc.go: -------------------------------------------------------------------------------- 1 | // Package linq provides methods for querying and manipulating slices, arrays, 2 | // maps, strings, channels and collections. 3 | // 4 | // Authors: Alexander Kalankhodzhaev (kalan), Ahmet Alp Balkan, Cleiton Marques 5 | // Souza. 6 | package linq 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/diag/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package diag contains diagnostics helpers. These implementations are 5 | // intentionally outside the public API. 6 | package diag 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/diag/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package diag contains diagnostics helpers. These implementations are 5 | // intentionally outside the public API. 6 | package diag 7 | -------------------------------------------------------------------------------- /vendor/github.com/microsoft/azure-devops-go-api/azuredevops/v7/auth.go: -------------------------------------------------------------------------------- 1 | package azuredevops 2 | 3 | import ( 4 | "context" 5 | ) 6 | 7 | type Auth struct { 8 | AuthString string 9 | } 10 | 11 | type AuthProvider interface { 12 | GetAuth(ctx context.Context) (string, error) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/oklog/run/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.x 5 | - tip 6 | install: 7 | - go get -v github.com/golang/lint/golint 8 | - go build ./... 9 | script: 10 | - go vet ./... 11 | - $HOME/gopath/bin/golint . 12 | - go test -v -race ./... 13 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require.go.tmpl: -------------------------------------------------------------------------------- 1 | {{ replace .Comment "assert." "require."}} 2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return } 5 | t.FailNow() 6 | } 7 | -------------------------------------------------------------------------------- /azuredevops/internal/utils/testhelper/array.go: -------------------------------------------------------------------------------- 1 | package testhelper 2 | 3 | import "reflect" 4 | 5 | func UnpackArray(s any) []any { 6 | v := reflect.ValueOf(s) 7 | r := make([]any, v.Len()) 8 | for i := 0; i < v.Len(); i++ { 9 | r[i] = v.Index(i).Interface() 10 | } 11 | return r 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package toproto converts terraform-plugin-go tfprotov5 types to Protocol 5 | // Buffers generated tfplugin5 types. 6 | package toproto 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package toproto converts terraform-plugin-go tfprotov6 types to Protocol 5 | // Buffers generated tfplugin6 types. 6 | package toproto 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && arm 6 | 7 | package cpu 8 | 9 | func archInit() {} 10 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/test.sh: -------------------------------------------------------------------------------- 1 | set -ev 2 | 3 | if [[ "$1" == "goveralls" ]]; then 4 | echo "Testing with goveralls..." 5 | go get github.com/mattn/goveralls 6 | $HOME/gopath/bin/goveralls -service=travis-ci 7 | else 8 | echo "Testing with go test..." 9 | go test -v ./... 10 | fi 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package fromproto converts Protocol Buffers generated tfplugin5 types into 5 | // terraform-plugin-go tfprotov5 types. 6 | package fromproto 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/funcerr/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package funcerr contains function error helpers. These implementations are 5 | // intentionally outside the public API. 6 | package funcerr 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package fromproto converts Protocol Buffers generated tfplugin6 types into 5 | // terraform-plugin-go tfprotov6 types. 6 | package fromproto 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/funcerr/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package funcerr contains function error helpers. These implementations are 5 | // intentionally outside the public API. 6 | package funcerr 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_zos.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | func archInit() { 8 | doinit() 9 | Initialized = true 10 | } 11 | -------------------------------------------------------------------------------- /examples/azdo-based-cicd/variables.tf: -------------------------------------------------------------------------------- 1 | variable "aad_users" { 2 | description = "A list of AAD user emails that will be granted access to the provisioned project. These are assumed to be part of an AAD group linked to the AzDO org. eg [\"shanw_cicoria@microsoft.com\"]" 3 | type = list(string) 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package tf5serverlogging contains logging functionality specific to 5 | // tf5server and tfprotov5 types. 6 | package tf5serverlogging 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package tf5serverlogging contains logging functionality specific to 5 | // tf5server and tfprotov5 types. 6 | package tf6serverlogging 7 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | 4 | go: 5 | - 1.7.x 6 | - 1.8.x 7 | - 1.9.x 8 | - 1.10.x 9 | - 1.11.x 10 | - 1.12.x 11 | - tip 12 | 13 | matrix: 14 | allow_failures: 15 | - go: tip 16 | 17 | install: 18 | - go get gopkg.in/check.v1 19 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/tagparser/v2/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | go test ./... 3 | go test ./... -short -race 4 | go test ./... -run=NONE -bench=. -benchmem 5 | env GOOS=linux GOARCH=386 go test ./... 6 | go vet ./... 7 | go get github.com/gordonklaus/ineffassign 8 | ineffassign . 9 | golangci-lint run 10 | -------------------------------------------------------------------------------- /scripts/unittest.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -euo pipefail 4 | 5 | . $(dirname $0)/commons.sh 6 | 7 | info "Executing unit tests" 8 | ( 9 | cd "$SOURCE_DIR" 10 | go test -tags "${*:-all}" -v $(go list ./... | grep -v acceptancetests) || fatal "Build finished in error due to failed tests" 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/equal.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package schema 5 | 6 | // Equal is an interface that checks for deep equality between two objects. 7 | type Equal interface { 8 | Equal(interface{}) bool 9 | } 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && !netbsd && !openbsd && arm64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/set/iterator.go: -------------------------------------------------------------------------------- 1 | package set 2 | 3 | type Iterator[T any] struct { 4 | vals []T 5 | idx int 6 | } 7 | 8 | func (it *Iterator[T]) Value() T { 9 | return it.vals[it.idx] 10 | } 11 | 12 | func (it *Iterator[T]) Next() bool { 13 | it.idx++ 14 | return it.idx < len(it.vals) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/browser/browser_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!windows,!darwin,!openbsd,!freebsd,!netbsd 2 | 3 | package browser 4 | 5 | import ( 6 | "fmt" 7 | "runtime" 8 | ) 9 | 10 | func openBrowser(url string) error { 11 | return fmt.Errorf("openBrowser: unsupported operating system: %v", runtime.GOOS) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/go125.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.25 6 | 7 | package blake2b 8 | 9 | import "hash" 10 | 11 | var _ hash.XOF = (*xof)(nil) 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-cty/cty/set/iterator.go: -------------------------------------------------------------------------------- 1 | package set 2 | 3 | type Iterator struct { 4 | vals []interface{} 5 | idx int 6 | } 7 | 8 | func (it *Iterator) Value() interface{} { 9 | return it.vals[it.idx] 10 | } 11 | 12 | func (it *Iterator) Next() bool { 13 | it.idx++ 14 | return it.idx < len(it.vals) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/README.md: -------------------------------------------------------------------------------- 1 | # reflectwalk 2 | 3 | reflectwalk is a Go library for "walking" a value in Go using reflection, 4 | in the same way a directory tree can be "walked" on the filesystem. Walking 5 | a complex structure can allow you to do manipulations on unknown structures 6 | such as those decoded from JSON. 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mipsx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build mips || mipsle 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() {} 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && riscv64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/pkgbits/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package pkgbits 6 | 7 | const ( 8 | flagSyncMarkers = 1 << iota // file format contains sync markers 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/copystructure/copier_time.go: -------------------------------------------------------------------------------- 1 | package copystructure 2 | 3 | import ( 4 | "reflect" 5 | "time" 6 | ) 7 | 8 | func init() { 9 | Copiers[reflect.TypeOf(time.Time{})] = timeCopier 10 | } 11 | 12 | func timeCopier(v interface{}) (interface{}, error) { 13 | // Just... copy it. 14 | return v.(time.Time), nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/function/doc.go: -------------------------------------------------------------------------------- 1 | // Package function builds on the functionality of cty by modeling functions 2 | // that operate on cty Values. 3 | // 4 | // Functions are, at their core, Go anonymous functions. However, this package 5 | // wraps around them utility functions for parameter type checking, etc. 6 | package function 7 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/location.go: -------------------------------------------------------------------------------- 1 | package reflectwalk 2 | 3 | //go:generate stringer -type=Location location.go 4 | 5 | type Location uint 6 | 7 | const ( 8 | None Location = iota 9 | Map 10 | MapKey 11 | MapValue 12 | Slice 13 | SliceElem 14 | Array 15 | ArrayElem 16 | Struct 17 | StructField 18 | WalkLoc 19 | ) 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && (mips64 || mips64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/encoding/prototext/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package prototext marshals and unmarshals protocol buffer messages as the 6 | // textproto format. 7 | package prototext 8 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/safe.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package msgpack 4 | 5 | // bytesToString converts byte slice to string. 6 | func bytesToString(b []byte) string { 7 | return string(b) 8 | } 9 | 10 | // stringToBytes converts string to byte slice. 11 | func stringToBytes(s string) []byte { 12 | return []byte(s) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build protolegacy 6 | // +build protolegacy 7 | 8 | package flags 9 | 10 | const protoLegacy = true 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-exec/tfexec/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package tfexec exposes functionality for constructing and running Terraform 5 | // CLI commands. Structured return values use the data types defined in the 6 | // github.com/hashicorp/terraform-json package. 7 | package tfexec 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tftypes/unknown_value.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tftypes 5 | 6 | const ( 7 | // UnknownValue represents a value that is not yet known. It can be the 8 | // value of any type. 9 | UnknownValue = unknown(0) 10 | ) 11 | 12 | type unknown byte 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/event/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package event provides a set of packages that cover the main 6 | // concepts of telemetry in an implementation agnostic way. 7 | package event 8 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !protolegacy 6 | // +build !protolegacy 7 | 8 | package flags 9 | 10 | const protoLegacy = false 11 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/cert_error_go119.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | //go:build !go1.20 5 | // +build !go1.20 6 | 7 | package retryablehttp 8 | 9 | import "crypto/x509" 10 | 11 | func isCertError(err error) bool { 12 | _, ok := err.(x509.UnknownAuthorityError) 13 | return ok 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/cert_error_go120.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | //go:build go1.20 5 | // +build go1.20 6 | 7 | package retryablehttp 8 | 9 | import "crypto/tls" 10 | 11 | func isCertError(err error) bool { 12 | _, ok := err.(*tls.CertificateVerificationError) 13 | return ok 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hc-install/fs/fs.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package fs 5 | 6 | import ( 7 | "io" 8 | "log" 9 | "time" 10 | ) 11 | 12 | var ( 13 | defaultTimeout = 10 * time.Second 14 | discardLogger = log.New(io.Discard, "", 0) 15 | ) 16 | 17 | type fileCheckFunc func(path string) error 18 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/gocty/doc.go: -------------------------------------------------------------------------------- 1 | // Package gocty deals with converting between cty Values and native go 2 | // values. 3 | // 4 | // It operates under a similar principle to the encoding/json and 5 | // encoding/xml packages in the standard library, using reflection to 6 | // populate native Go data structures from cty values and vice-versa. 7 | package gocty 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 10 | return ENOTSUP 11 | } 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/identity_flex.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Google LLC. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build appenginevm 6 | // +build appenginevm 7 | 8 | package internal 9 | 10 | func init() { 11 | appengineFlex = true 12 | } 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/main_common.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | // MainPath stores the file path of the main package. On App Engine Standard 4 | // using Go version 1.9 and below, this will be unset. On App Engine Flex and 5 | // App Engine Standard second-gen (Go 1.11 and above), this will be the 6 | // filepath to package main. 7 | var MainPath string 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-cty/cty/gocty/doc.go: -------------------------------------------------------------------------------- 1 | // Package gocty deals with converting between cty Values and native go 2 | // values. 3 | // 4 | // It operates under a similar principle to the encoding/json and 5 | // encoding/xml packages in the standard library, using reflection to 6 | // populate native Go data structures from cty values and vice-versa. 7 | package gocty 8 | -------------------------------------------------------------------------------- /vendor/github.com/oklog/run/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.dll 4 | *.so 5 | *.dylib 6 | 7 | # Test binary, build with `go test -c` 8 | *.test 9 | 10 | # Output of the go coverage tool, specifically when used with LiteIDE 11 | *.out 12 | 13 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 14 | .glide/ 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package windows 8 | 9 | import "syscall" 10 | 11 | type Errno = syscall.Errno 12 | type SysProcAttr = syscall.SysProcAttr 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (!amd64 && !loong64 && !ppc64le && !ppc64 && !s390x) || !gc || purego 6 | 7 | package poly1305 8 | 9 | type mac struct{ macGeneric } 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !aix && !linux && (ppc64 || ppc64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | PPC64.IsPOWER8 = true 11 | Initialized = true 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/AzureAD/microsoft-authentication-library-for-go/apps/internal/version/version.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. 2 | // Licensed under the MIT license. 3 | 4 | // Package version keeps the version number of the client package. 5 | package version 6 | 7 | // Version is the version of this client package that is communicated to the server. 8 | const Version = "1.4.2" 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/pre_go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build !go1.18 8 | 9 | package idna 10 | 11 | const transitionalLookup = true 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && !arm && !arm64 && !loong64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x && !riscv64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux || !go1.24 6 | 7 | package unix 8 | 9 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) { 10 | return -1, false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hc-install/releases/releases.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package releases 5 | 6 | import ( 7 | "io" 8 | "log" 9 | "time" 10 | ) 11 | 12 | var ( 13 | defaultInstallTimeout = 30 * time.Second 14 | defaultListTimeout = 10 * time.Second 15 | discardLogger = log.New(io.Discard, "", 0) 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/browser/browser_freebsd.go: -------------------------------------------------------------------------------- 1 | package browser 2 | 3 | import ( 4 | "errors" 5 | "os/exec" 6 | ) 7 | 8 | func openBrowser(url string) error { 9 | err := runCmd("xdg-open", url) 10 | if e, ok := err.(*exec.Error); ok && e.Err == exec.ErrNotFound { 11 | return errors.New("xdg-open: command not found - install xdg-utils from ports(8)") 12 | } 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/browser/browser_netbsd.go: -------------------------------------------------------------------------------- 1 | package browser 2 | 3 | import ( 4 | "errors" 5 | "os/exec" 6 | ) 7 | 8 | func openBrowser(url string) error { 9 | err := runCmd("xdg-open", url) 10 | if e, ok := err.(*exec.Error); ok && e.Err == exec.ErrNotFound { 11 | return errors.New("xdg-open: command not found - install xdg-utils from pkgsrc(7)") 12 | } 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/browser/browser_openbsd.go: -------------------------------------------------------------------------------- 1 | package browser 2 | 3 | import ( 4 | "errors" 5 | "os/exec" 6 | ) 7 | 8 | func openBrowser(url string) error { 9 | err := runCmd("xdg-open", url) 10 | if e, ok := err.(*exec.Error); ok && e.Err == exec.ErrNotFound { 11 | return errors.New("xdg-open: command not found - install xdg-utils from ports(8)") 12 | } 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/msgpack.go: -------------------------------------------------------------------------------- 1 | package msgpack 2 | 3 | type Marshaler interface { 4 | MarshalMsgpack() ([]byte, error) 5 | } 6 | 7 | type Unmarshaler interface { 8 | UnmarshalMsgpack([]byte) error 9 | } 10 | 11 | type CustomEncoder interface { 12 | EncodeMsgpack(*Encoder) error 13 | } 14 | 15 | type CustomDecoder interface { 16 | DecodeMsgpack(*Decoder) error 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //go:noescape 12 | func gettimeofday(tv *Timeval) (err syscall.Errno) 13 | -------------------------------------------------------------------------------- /azuredevops/internal/utils/testhelper/dataGenerator.go: -------------------------------------------------------------------------------- 1 | package testhelper 2 | 3 | import "github.com/google/uuid" 4 | 5 | // CreateUUID creates a new UUID 6 | func CreateUUID() *uuid.UUID { 7 | val := uuid.New() 8 | return &val 9 | } 10 | 11 | // ToUUID creates a UUID from a string value 12 | func ToUUID(szUUID string) *uuid.UUID { 13 | val := uuid.MustParse(szUUID) 14 | return &val 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/logutils/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-registry-address/errors.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfaddr 5 | 6 | import ( 7 | "fmt" 8 | ) 9 | 10 | type ParserError struct { 11 | Summary string 12 | Detail string 13 | } 14 | 15 | func (pe *ParserError) Error() string { 16 | return fmt.Sprintf("%s: %s", pe.Summary, pe.Detail) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 10 | func getisar1() uint64 11 | func getmmfr1() uint64 12 | func getpfr0() uint64 13 | func getzfr0() uint64 14 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package flags 6 | 7 | // Deterministic controls whether the output of Diff should be deterministic. 8 | // This is only used for testing. 9 | var Deterministic bool 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/json.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package schema 5 | 6 | import ( 7 | "bytes" 8 | "encoding/json" 9 | ) 10 | 11 | func unmarshalJSON(data []byte, v interface{}) error { 12 | dec := json.NewDecoder(bytes.NewReader(data)) 13 | dec.UseNumber() 14 | return dec.Decode(v) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 10 | return ptrace1(request, pid, addr, data) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming/doc.go: -------------------------------------------------------------------------------- 1 | //go:build go1.18 2 | // +build go1.18 3 | 4 | // Copyright 2017 Microsoft Corporation. All rights reserved. 5 | // Use of this source code is governed by an MIT 6 | // license that can be found in the LICENSE file. 7 | 8 | // Package streaming contains helpers for streaming IO operations and progress reporting. 9 | package streaming 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource/json.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package resource 5 | 6 | import ( 7 | "bytes" 8 | "encoding/json" 9 | ) 10 | 11 | func unmarshalJSON(data []byte, v interface{}) error { 12 | dec := json.NewDecoder(bytes.NewReader(data)) 13 | dec.UseNumber() 14 | return dec.Decode(v) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/yamux/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 || amd64p32 || (amd64 && (!darwin || !gc)) 6 | 7 | package cpu 8 | 9 | func darwinSupportsAVX512() bool { 10 | panic("only implemented for gc && amd64 && darwin") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/buf.gen.yaml: -------------------------------------------------------------------------------- 1 | # Copyright (c) HashiCorp, Inc. 2 | # SPDX-License-Identifier: MPL-2.0 3 | 4 | version: v1 5 | plugins: 6 | - plugin: buf.build/protocolbuffers/go 7 | out: . 8 | opt: 9 | - paths=source_relative 10 | - plugin: buf.build/grpc/go:v1.3.0 11 | out: . 12 | opt: 13 | - paths=source_relative 14 | - require_unimplemented_servers=false 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/blake2b_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !amd64 || purego || !gc 6 | 7 | package blake2b 8 | 9 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) { 10 | hashBlocksGeneric(h, c, flag, blocks) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/config_go125.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.26 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | ) 12 | 13 | func http2ConfigStrictMaxConcurrentRequests(h2 *http.HTTP2Config) bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /examples/github-based-cicd-simple/README.md: -------------------------------------------------------------------------------- 1 | # Simple GitHub based CICD 2 | 3 | This sample provisions the following infrastructure: 4 | 5 | - AzDO project 6 | - AzDO build definition that points to `.azdo/azure-pipeline-nightly.yml` 7 | - GitHub service connection that grants AzDO the ability to interact with GitHub via a PAT 8 | 9 | Builds will be triggered based on the trigger block in the yaml pipeline specified. 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !386 && !amd64 && !amd64p32 && !arm64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | if err := readHWCAP(); err != nil { 11 | return 12 | } 13 | doinit() 14 | Initialized = true 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build mips64 || mips64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "msa", Feature: &MIPS64X.HasMSA}, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 11 | } 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/name.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package genid 6 | 7 | const ( 8 | NoUnkeyedLiteral_goname = "noUnkeyedLiteral" 9 | NoUnkeyedLiteralA_goname = "XXX_NoUnkeyedLiteral" 10 | 11 | BuilderSuffix_goname = "_builder" 12 | ) 13 | -------------------------------------------------------------------------------- /.github/workflows/depscheck.yml: -------------------------------------------------------------------------------- 1 | name: Dependency Check 2 | 3 | on: 4 | pull_request: 5 | branches: [ "main" ] 6 | 7 | jobs: 8 | 9 | depscheck: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v4 13 | 14 | - name: Set up Go 15 | uses: actions/setup-go@v4 16 | with: 17 | go-version: '1.24' 18 | 19 | - name: Dependency Check 20 | run: make depscheck 21 | -------------------------------------------------------------------------------- /azuredevops/internal/utils/suppress/string.go: -------------------------------------------------------------------------------- 1 | package suppress 2 | 3 | import ( 4 | "strings" 5 | 6 | "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" 7 | ) 8 | 9 | // CaseDifference reports whether old and new, interpreted as UTF-8 strings, 10 | // are equal under Unicode case-folding. 11 | func CaseDifference(_, old, new string, _ *schema.ResourceData) bool { 12 | return strings.EqualFold(old, new) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/Makefile: -------------------------------------------------------------------------------- 1 | fmtcheck: 2 | "$(CURDIR)/scripts/gofmtcheck.sh" 3 | 4 | fmtfix: 5 | gofmt -w ./ 6 | 7 | vetcheck: 8 | go vet ./... 9 | 10 | copyrightcheck: 11 | go run github.com/hashicorp/copywrite@latest headers --plan 12 | 13 | copyrightfix: 14 | go run github.com/hashicorp/copywrite@latest headers 15 | 16 | check: copyrightcheck vetcheck fmtcheck 17 | 18 | fix: copyrightfix fmtfix 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 { return 0 } 10 | func getisar1() uint64 { return 0 } 11 | func getmmfr1() uint64 { return 0 } 12 | func getpfr0() uint64 { return 0 } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/.copywrite.hcl: -------------------------------------------------------------------------------- 1 | schema_version = 1 2 | 3 | project { 4 | license = "MPL-2.0" 5 | copyright_year = 2019 6 | 7 | # (OPTIONAL) A list of globs that should not have copyright/license headers. 8 | # Supports doublestar glob patterns for more flexibility in defining which 9 | # files or folders should be ignored 10 | header_ignore = [ 11 | "testdata/**", 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build appengine 6 | // +build appengine 7 | 8 | package internal 9 | 10 | import ( 11 | "appengine_internal" 12 | ) 13 | 14 | func Main() { 15 | MainPath = "" 16 | appengine_internal.Main() 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/policy/doc.go: -------------------------------------------------------------------------------- 1 | //go:build go1.18 2 | // +build go1.18 3 | 4 | // Copyright 2017 Microsoft Corporation. All rights reserved. 5 | // Use of this source code is governed by an MIT 6 | // license that can be found in the LICENSE file. 7 | 8 | // Package policy contains the definitions needed for configuring in-box pipeline policies 9 | // and creating custom policies. 10 | package policy 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/plugin/grpc_controller.proto: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | syntax = "proto3"; 5 | package plugin; 6 | option go_package = "./plugin"; 7 | 8 | message Empty { 9 | } 10 | 11 | // The GRPCController is responsible for telling the plugin server to shutdown. 12 | service GRPCController { 13 | rpc Shutdown(Empty) returns (Empty); 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package tf5server implements a server implementation to run 5 | // tfprotov5.ProviderServers as gRPC servers. 6 | // 7 | // Providers will likely be calling tf5server.Serve from their main function to 8 | // start the server so Terraform can connect to it. 9 | package tf5server 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package tf6server implements a server implementation to run 5 | // tfprotov6.ProviderServers as gRPC servers. 6 | // 7 | // Providers will likely be calling tf6server.Serve from their main function to 8 | // start the server so Terraform can connect to it. 9 | package tf6server 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/config_go126.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.26 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | ) 12 | 13 | func http2ConfigStrictMaxConcurrentRequests(h2 *http.HTTP2Config) bool { 14 | return h2.StrictMaxConcurrentRequests 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/structure/expand_json.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package structure 5 | 6 | import "encoding/json" 7 | 8 | func ExpandJsonFromString(jsonString string) (map[string]interface{}, error) { 9 | var result map[string]interface{} 10 | 11 | err := json.Unmarshal([]byte(jsonString), &result) 12 | 13 | return result, err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/mmap_nomremap.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | var mapper = &mmapper{ 10 | active: make(map[*byte][]byte), 11 | mmap: mmap, 12 | munmap: munmap, 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | 7 | package windows 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/timestamp.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "time" 8 | 9 | "google.golang.org/protobuf/types/known/timestamppb" 10 | ) 11 | 12 | func Timestamp(in time.Time) *timestamppb.Timestamp { 13 | if in.IsZero() { 14 | return nil 15 | } 16 | 17 | return timestamppb.New(in) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/timestamp.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "time" 8 | 9 | "google.golang.org/protobuf/types/known/timestamppb" 10 | ) 11 | 12 | func Timestamp(in time.Time) *timestamppb.Timestamp { 13 | if in.IsZero() { 14 | return nil 15 | } 16 | 17 | return timestamppb.New(in) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/field_writer.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package schema 5 | 6 | // FieldWriters are responsible for writing fields by address into 7 | // a proper typed representation. ResourceData uses this to write new data 8 | // into existing sources. 9 | type FieldWriter interface { 10 | WriteField([]string, interface{}) error 11 | } 12 | -------------------------------------------------------------------------------- /vendor/go.uber.org/mock/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoMock authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | # Please keep the list sorted. 10 | 11 | Alex Reece 12 | Google Inc. 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && go1.24 6 | 7 | package unix 8 | 9 | import _ "unsafe" 10 | 11 | //go:linkname vgetrandom runtime.vgetrandom 12 | //go:noescape 13 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package protoiface 6 | 7 | type MessageV1 interface { 8 | Reset() 9 | String() string 10 | ProtoMessage() 11 | } 12 | 13 | type ExtensionRangeV1 struct { 14 | Start, End int32 // both inclusive 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/doc.go: -------------------------------------------------------------------------------- 1 | //go:build go1.18 2 | // +build go1.18 3 | 4 | // Copyright 2017 Microsoft Corporation. All rights reserved. 5 | // Use of this source code is governed by an MIT 6 | // license that can be found in the LICENSE file. 7 | 8 | // Package runtime contains various facilities for creating requests and handling responses. 9 | // The content is intended for SDK authors. 10 | package runtime 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_loong64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | // func get_cpucfg(reg uint32) uint32 8 | TEXT ·get_cpucfg(SB), NOSPLIT|NOFRAME, $0 9 | MOVW reg+0(FP), R5 10 | // CPUCFG R5, R4 = 0x00006ca4 11 | WORD $0x00006ca4 12 | MOVW R4, ret+8(FP) 13 | RET 14 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/transport_default_dialer_other.go: -------------------------------------------------------------------------------- 1 | //go:build !wasm 2 | 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT License. 5 | 6 | package runtime 7 | 8 | import ( 9 | "context" 10 | "net" 11 | ) 12 | 13 | func defaultTransportDialContext(dialer *net.Dialer) func(context.Context, string, string) (net.Conn, error) { 14 | return dialer.DialContext 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime/transport_default_dialer_wasm.go: -------------------------------------------------------------------------------- 1 | //go:build (js && wasm) || wasip1 2 | 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // Licensed under the MIT License. 5 | 6 | package runtime 7 | 8 | import ( 9 | "context" 10 | "net" 11 | ) 12 | 13 | func defaultTransportDialContext(dialer *net.Dialer) func(context.Context, string, string) (net.Conn, error) { 14 | return nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | 4 | go: 5 | - 1.15.x 6 | - 1.16.x 7 | - tip 8 | 9 | matrix: 10 | allow_failures: 11 | - go: tip 12 | 13 | env: 14 | - GO111MODULE=on 15 | 16 | go_import_path: github.com/vmihailenco/msgpack 17 | 18 | before_install: 19 | - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go 20 | env GOPATH)/bin v1.31.0 21 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/tagparser/v2/.travis.yml: -------------------------------------------------------------------------------- 1 | dist: xenial 2 | language: go 3 | 4 | go: 5 | - 1.14.x 6 | - 1.15.x 7 | - tip 8 | 9 | matrix: 10 | allow_failures: 11 | - go: tip 12 | 13 | env: 14 | - GO111MODULE=on 15 | 16 | go_import_path: github.com/vmihailenco/tagparser 17 | 18 | before_install: 19 | - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-exec/internal/version/version.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package version 5 | 6 | const version = "0.22.0" 7 | 8 | // ModuleVersion returns the current version of the github.com/hashicorp/terraform-exec Go module. 9 | // This is a function to allow for future possible enhancement using debug.BuildInfo. 10 | func ModuleVersion() string { 11 | return version 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 8 | JMP libc_sysctl(SB) 9 | 10 | GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 11 | DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/pkgbits/support.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package pkgbits 6 | 7 | import "fmt" 8 | 9 | func assert(b bool) { 10 | if !b { 11 | panic("assertion failed") 12 | } 13 | } 14 | 15 | func panicf(format string, args ...any) { 16 | panic(fmt.Errorf(format, args...)) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/string_kind.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func StringKind(in tfprotov5.StringKind) tfplugin5.StringKind { 12 | return tfplugin5.StringKind(in) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/string_kind.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func StringKind(in tfprotov6.StringKind) tfplugin6.StringKind { 12 | return tfplugin6.StringKind(in) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ppc64 || ppc64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 128 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "darn", Feature: &PPC64.HasDARN}, 14 | {Name: "scv", Feature: &PPC64.HasSCV}, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/editiondefaults/defaults.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package editiondefaults contains the binary representation of the editions 6 | // defaults. 7 | package editiondefaults 8 | 9 | import _ "embed" 10 | 11 | //go:embed editions_defaults.binpb 12 | var Defaults []byte 13 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/dh/x448/curve_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || purego 2 | // +build !amd64 purego 3 | 4 | package x448 5 | 6 | import fp "github.com/cloudflare/circl/math/fp448" 7 | 8 | func double(x, z *fp.Elt) { doubleGeneric(x, z) } 9 | func diffAdd(w *[5]fp.Elt, b uint) { diffAddGeneric(w, b) } 10 | func ladderStep(w *[5]fp.Elt, b uint) { ladderStepGeneric(w, b) } 11 | func mulA24(z, x *fp.Elt) { mulA24Generic(z, x) } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (!arm64 && !s390x && !ppc64 && !ppc64le) || !gc || purego 6 | 7 | package chacha20 8 | 9 | const bufSize = blockSize 10 | 11 | func (s *Cipher) xorKeyStreamBlocks(dst, src []byte) { 12 | s.xorKeyStreamBlocksGeneric(dst, src) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/auxv_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.21 && (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Auxv() ([][2]uintptr, error) { 12 | return nil, syscall.ENOTSUP 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | if !t.isRTL() { 11 | return true 12 | } 13 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/gocommand/invoke_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build unix 6 | 7 | package gocommand 8 | 9 | import "syscall" 10 | 11 | // Sigstuckprocess is the signal to send to kill a hanging subprocess. 12 | // Send SIGQUIT to get a stack trace. 13 | var sigStuckProcess = syscall.SIGQUIT 14 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/dh/x25519/curve_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || purego 2 | // +build !amd64 purego 3 | 4 | package x25519 5 | 6 | import fp "github.com/cloudflare/circl/math/fp25519" 7 | 8 | func double(x, z *fp.Elt) { doubleGeneric(x, z) } 9 | func diffAdd(w *[5]fp.Elt, b uint) { diffAddGeneric(w, b) } 10 | func ladderStep(w *[5]fp.Elt, b uint) { ladderStepGeneric(w, b) } 11 | func mulA24(z, x *fp.Elt) { mulA24Generic(z, x) } 12 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/math/integer.go: -------------------------------------------------------------------------------- 1 | package math 2 | 3 | import "math/bits" 4 | 5 | // NextPow2 finds the next power of two (N=2^k, k>=0) greater than n. 6 | // If n is already a power of two, then this function returns n, and log2(n). 7 | func NextPow2(n uint) (N uint, k uint) { 8 | if bits.OnesCount(n) == 1 { 9 | k = uint(bits.TrailingZeros(n)) 10 | N = n 11 | } else { 12 | k = uint(bits.Len(n)) 13 | N = uint(1) << k 14 | } 15 | return 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = true 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | type Signal = syscall.Signal 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /.github/workflows/unit-test.yml: -------------------------------------------------------------------------------- 1 | name: Unit Test 2 | 3 | on: 4 | pull_request: 5 | branches: [ "main" ] 6 | 7 | jobs: 8 | 9 | test: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v4 13 | 14 | - name: Set up Go 15 | uses: actions/setup-go@v4 16 | with: 17 | go-version: '1.24' 18 | 19 | - name: Build 20 | run: go build -v ./... 21 | 22 | - name: Test (with go fmt check) 23 | run: make test 24 | -------------------------------------------------------------------------------- /azuredevops/internal/acceptancetests/testutils/data.go: -------------------------------------------------------------------------------- 1 | package testutils 2 | 3 | import ( 4 | "fmt" 5 | "regexp" 6 | ) 7 | 8 | func RequiresImportError(resourceName string) *regexp.Regexp { 9 | message := "Error creating service endpoint in Azure DevOps: Service connection with name %[1]s already exists. Only a user having Administrator/User role permissions on service connection %[1]s can see it." 10 | return regexp.MustCompile(fmt.Sprintf(message, resourceName)) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/hclsyntax/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package hclsyntax contains the parser, AST, etc for HCL's native language, 5 | // as opposed to the JSON variant. 6 | // 7 | // In normal use applications should rarely depend on this package directly, 8 | // instead preferring the higher-level interface of the main hcl package and 9 | // its companion package hclparse. 10 | package hclsyntax 11 | -------------------------------------------------------------------------------- /vendor/github.com/microsoft/azure-devops-go-api/azuredevops/v7/client_options.go: -------------------------------------------------------------------------------- 1 | package azuredevops 2 | 3 | import ( 4 | "net/http" 5 | ) 6 | 7 | // ClientOptionFunc can be used customize a new AzureDevops API client. 8 | type ClientOptionFunc func(*Client) 9 | 10 | // WithHTTPClient can be used to configure a custom HTTP client. 11 | func WithHTTPClient(httpClient *http.Client) ClientOptionFunc { 12 | return func(c *Client) { 13 | c.client = httpClient 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.21 6 | 7 | package cpu 8 | 9 | import ( 10 | _ "unsafe" // for linkname 11 | ) 12 | 13 | //go:linkname runtime_getAuxv runtime.getAuxv 14 | func runtime_getAuxv() []uintptr 15 | 16 | func init() { 17 | getAuxvFn = runtime_getAuxv 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/log/doc.go: -------------------------------------------------------------------------------- 1 | //go:build go1.18 2 | // +build go1.18 3 | 4 | // Copyright 2017 Microsoft Corporation. All rights reserved. 5 | // Use of this source code is governed by an MIT 6 | // license that can be found in the LICENSE file. 7 | 8 | // Package log contains functionality for configuring logging behavior. 9 | // Default logging to stderr can be enabled by setting environment variable AZURE_SDK_GO_LOGGING to "all". 10 | package log 11 | -------------------------------------------------------------------------------- /vendor/github.com/ahmetb/go-linq/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | go: 5 | - 1.7 6 | 7 | before_install: 8 | - go get github.com/mattn/goveralls 9 | - go get golang.org/x/tools/cmd/cover 10 | - go get -u github.com/golang/lint/golint 11 | 12 | script: 13 | - go vet -x ./... 14 | - golint ./... 15 | - go test -v ./... 16 | - go test -covermode=count -coverprofile=profile.cov 17 | 18 | after_script: 19 | - goveralls -coverprofile=profile.cov -service=travis-ci -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package uuid generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to 11 | // maps or compared directly. 12 | package uuid 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build go1.18 8 | 9 | package idna 10 | 11 | // Transitional processing is disabled by default in Go 1.18. 12 | // https://golang.org/issue/47510 13 | const transitionalLookup = false 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/gocommand/invoke_notunix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !unix 6 | 7 | package gocommand 8 | 9 | import "os" 10 | 11 | // sigStuckProcess is the signal to send to kill a hanging subprocess. 12 | // On Unix we send SIGQUIT, but on non-Unix we only have os.Kill. 13 | var sigStuckProcess = os.Kill 14 | -------------------------------------------------------------------------------- /scripts/lint-check-go.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -euo pipefail 4 | 5 | . $(dirname $0)/commons.sh 6 | 7 | info "Linting Go Files... If this fails, run 'golint ./... | grep -v 'vendor' ' to see errors" 8 | ( 9 | cd "$SOURCE_DIR" 10 | 11 | # Install golint if not there 12 | go get -u golang.org/x/lint/golint 2>/dev/null 13 | 14 | GOLINT="$(go list -f {{.Target}} golang.org/x/lint/golint)" 15 | "$GOLINT" -set_exit_status $(go list ./... | grep -v 'vendor') 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hc-install/errors/errors.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package errors 5 | 6 | type skippableErr struct { 7 | Err error 8 | } 9 | 10 | func (e skippableErr) Error() string { 11 | return e.Err.Error() 12 | } 13 | 14 | func SkippableErr(err error) skippableErr { 15 | return skippableErr{Err: err} 16 | } 17 | 18 | func IsErrorSkippable(err error) bool { 19 | _, ok := err.(skippableErr) 20 | return ok 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/structure/flatten_json.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package structure 5 | 6 | import "encoding/json" 7 | 8 | func FlattenJsonToString(input map[string]interface{}) (string, error) { 9 | if len(input) == 0 { 10 | return "", nil 11 | } 12 | 13 | result, err := json.Marshal(input) 14 | if err != nil { 15 | return "", err 16 | } 17 | 18 | return string(result), nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/argon2/blamka_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !amd64 || purego || !gc 6 | 7 | package argon2 8 | 9 | func processBlock(out, in1, in2 *block) { 10 | processBlockGeneric(out, in1, in2, false) 11 | } 12 | 13 | func processBlockXOR(out, in1, in2 *block) { 14 | processBlockGeneric(out, in1, in2, true) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /.github/workflows/terrafmt.yml: -------------------------------------------------------------------------------- 1 | name: Terrafmt check 2 | 3 | on: 4 | pull_request: 5 | branches: [ "main" ] 6 | 7 | jobs: 8 | 9 | terrafmt: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v4 13 | 14 | - name: Set up Go 15 | uses: actions/setup-go@v4 16 | with: 17 | go-version: '1.24' 18 | 19 | - name: Terrafmt Check 20 | run: | 21 | go install github.com/katbyte/terrafmt@latest 22 | make terrafmt-check 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/context_keys.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tf5serverlogging 5 | 6 | // Context key types. 7 | // Reference: https://staticcheck.io/docs/checks/#SA1029 8 | 9 | // ContextKeyDownstreamRequestStartTime is a context.Context key to store the 10 | // time.Time when the server began a downstream request. 11 | type ContextKeyDownstreamRequestStartTime struct{} 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/context_keys.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tf6serverlogging 5 | 6 | // Context key types. 7 | // Reference: https://staticcheck.io/docs/checks/#SA1029 8 | 9 | // ContextKeyDownstreamRequestStartTime is a context.Context key to store the 10 | // time.Time when the server began a downstream request. 11 | type ContextKeyDownstreamRequestStartTime struct{} 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-svchost/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## v0.1.1 2 | 3 | The `disco.Disco` and `auth.CachingCredentialsSource` implementations are now safe for concurrent calls. Previously concurrent calls could potentially corrupt the internal cache maps or cause the Go runtime to panic. 4 | 5 | ## v0.1.0 6 | 7 | #### Features: 8 | 9 | - Adds hostname `Alias` method to service discovery, making it possible to interpret one hostname as another. 10 | 11 | ## v0.0.1 12 | 13 | Initial release 14 | -------------------------------------------------------------------------------- /vendor/github.com/microsoft/azure-devops-go-api/azuredevops/v7/errors.go: -------------------------------------------------------------------------------- 1 | package azuredevops 2 | 3 | type ArgumentNilError struct { 4 | ArgumentName string 5 | } 6 | 7 | func (e ArgumentNilError) Error() string { 8 | return "Argument " + e.ArgumentName + " can not be nil" 9 | } 10 | 11 | type ArgumentNilOrEmptyError struct { 12 | ArgumentName string 13 | } 14 | 15 | func (e ArgumentNilOrEmptyError) Error() string { 16 | return "Argument " + e.ArgumentName + " can not be nil or empty" 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/ctystrings/normalize.go: -------------------------------------------------------------------------------- 1 | package ctystrings 2 | 3 | import ( 4 | "golang.org/x/text/unicode/norm" 5 | ) 6 | 7 | // Normalize applies NFC normalization to the given string, returning the 8 | // transformed string. 9 | // 10 | // This function achieves the same effect as wrapping a string in a value 11 | // using [cty.StringVal] and then unwrapping it again using [Value.AsString]. 12 | func Normalize(str string) string { 13 | return norm.NFC.String(str) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/runtime_auxv.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | // getAuxvFn is non-nil on Go 1.21+ (via runtime_auxv_go121.go init) 8 | // on platforms that use auxv. 9 | var getAuxvFn func() []uintptr 10 | 11 | func getAuxv() []uintptr { 12 | if getAuxvFn == nil { 13 | return nil 14 | } 15 | return getAuxvFn() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package genid contains constants for declarations in descriptor.proto 6 | // and the well-known types. 7 | package genid 8 | 9 | import "google.golang.org/protobuf/reflect/protoreflect" 10 | 11 | const GoogleProtobuf_package protoreflect.FullName = "google.protobuf" 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | #direnv files 3 | .envrc 4 | bin/ 5 | 6 | terraform-provider-azure-devops 7 | terraform.log 8 | crash.log 9 | 10 | # Local .terraform directories 11 | **/.terraform/* 12 | 13 | # .tfstate files 14 | *.tfstate 15 | *.tfstate.* 16 | 17 | # .tfvars files 18 | *.tfvars 19 | 20 | # ignore tf files in the root directory 21 | /*.tf 22 | 23 | # unwanted binary file 24 | **/debug.test 25 | dist 26 | 27 | 28 | #GoLand Editor configuration 29 | .idea 30 | .fleet 31 | 32 | .DS_Store 33 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/plugintest/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package plugintest contains utilities to help with writing tests for 5 | // Terraform plugins. 6 | // 7 | // This is not a package for testing configurations or modules written in the 8 | // Terraform language. It is for testing the plugins that allow Terraform to 9 | // manage various cloud services and other APIs. 10 | package plugintest 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && !ios) || zos 6 | 7 | package unix 8 | 9 | // SysvShmCtl performs control operations on the shared memory segment 10 | // specified by id. 11 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 12 | return shmctl(id, cmd, desc) 13 | } 14 | -------------------------------------------------------------------------------- /scripts/gofmtcheck.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Check gofmt 4 | echo "==> Checking that code complies with gofmt requirements..." 5 | 6 | # This filter should match the search filter in ../GNUMakefile 7 | gofmt_files=$(find . -name '*.go' | grep -v vendor | xargs gofmt -l) 8 | if [ -n "${gofmt_files}" ]; then 9 | echo 'gofmt needs running on the following files:' 10 | echo "${gofmt_files}" 11 | echo "You can use the command: \`make fmt\` to reformat code." 12 | exit 1 13 | fi 14 | 15 | exit 0 -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/function_error.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfprotov5 5 | 6 | // FunctionError is used to convey information back to the user running Terraform. 7 | type FunctionError struct { 8 | // Text is the description of the error. 9 | Text string 10 | 11 | // FunctionArgument is the positional function argument for aligning 12 | // configuration source. 13 | FunctionArgument *int64 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/function_error.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfprotov6 5 | 6 | // FunctionError is used to convey information back to the user running Terraform. 7 | type FunctionError struct { 8 | // Text is the description of the error. 9 | Text string 10 | 11 | // FunctionArgument is the positional function argument for aligning 12 | // configuration source. 13 | FunctionArgument *int64 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/microsoft/azure-devops-go-api/azuredevops/v7/auth_pat.go: -------------------------------------------------------------------------------- 1 | package azuredevops 2 | 3 | import ( 4 | "context" 5 | "encoding/base64" 6 | ) 7 | 8 | type AuthProviderPAT struct { 9 | pat string 10 | } 11 | 12 | func NewAuthProviderPAT(pat string) AuthProvider { 13 | return AuthProviderPAT{pat} 14 | } 15 | 16 | func (p AuthProviderPAT) GetAuth(_ context.Context) (string, error) { 17 | auth := "_:" + p.pat 18 | return "Basic " + base64.StdEncoding.EncodeToString([]byte(auth)), nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/unsafe.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package msgpack 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // bytesToString converts byte slice to string. 10 | func bytesToString(b []byte) string { 11 | return *(*string)(unsafe.Pointer(&b)) 12 | } 13 | 14 | // stringToBytes converts string to byte slice. 15 | func stringToBytes(s string) []byte { 16 | return *(*[]byte)(unsafe.Pointer( 17 | &struct { 18 | string 19 | Cap int 20 | }{s, len(s)}, 21 | )) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh || wasm 6 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = false 11 | -------------------------------------------------------------------------------- /.azdo/azure-pipeline-nightly.yml: -------------------------------------------------------------------------------- 1 | schedules: 2 | - cron: "0 0 * * *" 3 | displayName: "Nightly Build" 4 | branches: 5 | include: 6 | - 'main' 7 | 8 | jobs: 9 | - template: ./ci.yml 10 | parameters: 11 | maxParallel: 1 # any more and we get throttled by AzDO! 12 | accTest: true 13 | goVersions: 14 | - value: '1.24.1' 15 | ymlSafeName: '1_24_1' 16 | 17 | vmImages: 18 | - value: 'ubuntu-latest' 19 | ymlSafeName: ubuntu_latest 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/github.com/ahmetb/go-linq/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | 26 | ### Code ### 27 | # Visual Studio Code - https://code.visualstudio.com/ 28 | .settings/ 29 | .vscode/ -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/tagparser/v2/internal/unsafe.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package internal 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // BytesToString converts byte slice to string. 10 | func BytesToString(b []byte) string { 11 | return *(*string)(unsafe.Pointer(&b)) 12 | } 13 | 14 | // StringToBytes converts string to byte slice. 15 | func StringToBytes(s string) []byte { 16 | return *(*[]byte)(unsafe.Pointer( 17 | &struct { 18 | string 19 | Cap int 20 | }{s, len(s)}, 21 | )) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-log/tfsdklog/doc.go: -------------------------------------------------------------------------------- 1 | // Package tfsdklog provides helper functions for logging from SDKs and 2 | // frameworks for building Terraform plugins. 3 | // 4 | // Plugin authors shouldn't need to use this package; it is meant for authors 5 | // of the frameworks and SDKs for plugins. Plugin authors should use the tflog 6 | // package. 7 | // 8 | // This package provides very similar functionality to tflog, except it uses a 9 | // separate namespace for its logs. 10 | package tfsdklog 11 | -------------------------------------------------------------------------------- /.github/workflows/golint.yml: -------------------------------------------------------------------------------- 1 | name: Go lint 2 | 3 | on: 4 | pull_request: 5 | branches: [ "main" ] 6 | 7 | jobs: 8 | 9 | go-lint: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v4 13 | 14 | - name: Set up Go 15 | uses: actions/setup-go@v4 16 | with: 17 | go-version: '1.24' 18 | 19 | - uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2 20 | with: 21 | version: 'v1.64.8' 22 | args: -v ./azuredevops/... 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-exec/tfexec/workspace_select.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfexec 5 | 6 | import "context" 7 | 8 | // WorkspaceSelect represents the workspace select subcommand to the Terraform CLI. 9 | func (tf *Terraform) WorkspaceSelect(ctx context.Context, workspace string) error { 10 | // TODO: [DIR] param option 11 | 12 | return tf.runTerraformCmd(ctx, tf.buildTerraformCmd(ctx, nil, "workspace", "select", "-no-color", workspace)) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | 7 | package unix 8 | 9 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 10 | // values. 11 | 12 | //sys Alarm(seconds uint) (remaining uint, err error) 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/.copywrite.hcl: -------------------------------------------------------------------------------- 1 | schema_version = 1 2 | 3 | project { 4 | license = "MPL-2.0" 5 | copyright_year = 2014 6 | 7 | # (OPTIONAL) A list of globs that should not have copyright/license headers. 8 | # Supports doublestar glob patterns for more flexibility in defining which 9 | # files or folders should be ignored 10 | header_ignore = [ 11 | "hclsyntax/fuzz/testdata/**", 12 | "hclwrite/fuzz/testdata/**", 13 | "json/fuzz/testdata/**", 14 | "specsuite/tests/**", 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/internal/sha3/xor.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (!amd64 && !386 && !ppc64le) || appengine 6 | // +build !amd64,!386,!ppc64le appengine 7 | 8 | package sha3 9 | 10 | // A storageBuf is an aligned array of maxRate bytes. 11 | type storageBuf [maxRate]byte 12 | 13 | func (b *storageBuf) asBytes() *[maxRate]byte { 14 | return (*[maxRate]byte)(b) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !cmp_debug 6 | // +build !cmp_debug 7 | 8 | package diff 9 | 10 | var debug debugger 11 | 12 | type debugger struct{} 13 | 14 | func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc { 15 | return f 16 | } 17 | func (debugger) Update() {} 18 | func (debugger) Finish() {} 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/stream.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package plugin 5 | 6 | import ( 7 | "io" 8 | "log" 9 | ) 10 | 11 | func copyStream(name string, dst io.Writer, src io.Reader) { 12 | if src == nil { 13 | panic(name + ": src is nil") 14 | } 15 | if dst == nil { 16 | panic(name + ": dst is nil") 17 | } 18 | if _, err := io.Copy(dst, src); err != nil && err != io.EOF { 19 | log.Printf("[ERR] plugin: stream copy '%s' error: %s", name, err) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/math/fp448/fp_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || purego 2 | // +build !amd64 purego 3 | 4 | package fp448 5 | 6 | func cmov(x, y *Elt, n uint) { cmovGeneric(x, y, n) } 7 | func cswap(x, y *Elt, n uint) { cswapGeneric(x, y, n) } 8 | func add(z, x, y *Elt) { addGeneric(z, x, y) } 9 | func sub(z, x, y *Elt) { subGeneric(z, x, y) } 10 | func addsub(x, y *Elt) { addsubGeneric(x, y) } 11 | func mul(z, x, y *Elt) { mulGeneric(z, x, y) } 12 | func sqr(z, x *Elt) { sqrGeneric(z, x) } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-version/version_collection.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package version 5 | 6 | // Collection is a type that implements the sort.Interface interface 7 | // so that versions can be sorted. 8 | type Collection []*Version 9 | 10 | func (v Collection) Len() int { 11 | return len(v) 12 | } 13 | 14 | func (v Collection) Less(i, j int) bool { 15 | return v[i].LessThan(v[j]) 16 | } 17 | 18 | func (v Collection) Swap(i, j int) { 19 | v[i], v[j] = v[j], v[i] 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_wasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build wasm 6 | 7 | package cpu 8 | 9 | // We're compiling the cpu package for an unknown (software-abstracted) CPU. 10 | // Make CacheLinePad an empty struct and hope that the usual struct alignment 11 | // rules are good enough. 12 | 13 | const cacheLineSize = 0 14 | 15 | func initOptions() {} 16 | 17 | func archInit() {} 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/wrappers.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package genid 6 | 7 | import "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field name and number for messages in wrappers.proto. 10 | const ( 11 | WrapperValue_Value_field_name protoreflect.Name = "value" 12 | WrapperValue_Value_field_number protoreflect.FieldNumber = 1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/tfjson.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package tfjson is a de-coupled helper library containing types for 5 | // the plan format output by "terraform show -json" command. This 6 | // command is designed for the export of Terraform plan data in 7 | // a format that can be easily processed by tools unrelated to 8 | // Terraform. 9 | // 10 | // This format is stable and should be used over the binary plan data 11 | // whenever possible. 12 | package tfjson 13 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc && !purego 6 | 7 | package chacha20 8 | 9 | const bufSize = 256 10 | 11 | //go:noescape 12 | func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32) 13 | 14 | func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { 15 | xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter) 16 | } 17 | -------------------------------------------------------------------------------- /scripts/gogetcookie.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | touch ~/.gitcookies 4 | chmod 0600 ~/.gitcookies 5 | 6 | git config --global http.cookiefile ~/.gitcookies 7 | 8 | tr , \\t <<\__END__ >>~/.gitcookies 9 | go.googlesource.com,FALSE,/,TRUE,2147483647,o,git-8787xu.gmail.com=1//0gMSiXWNyBFAsCgYIARAAGBASNwF-L9IrlaDV1-0F-IeVEw1aPlpBD3-DVq2rCVx3JR2sxcXxFgkq4oWXJLpaKfT5dmnUgasVCHc 10 | go-review.googlesource.com,FALSE,/,TRUE,2147483647,o,git-8787xu.gmail.com=1//0gMSiXWNyBFAsCgYIARAAGBASNwF-L9IrlaDV1-0F-IeVEw1aPlpBD3-DVq2rCVx3JR2sxcXxFgkq4oWXJLpaKfT5dmnUgasVCHc 11 | __END__ -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/openpgp/packet/recipient.go: -------------------------------------------------------------------------------- 1 | package packet 2 | 3 | // Recipient type represents a Intended Recipient Fingerprint subpacket 4 | // See https://datatracker.ietf.org/doc/html/draft-ietf-openpgp-crypto-refresh#name-intended-recipient-fingerpr 5 | type Recipient struct { 6 | KeyVersion int 7 | Fingerprint []byte 8 | } 9 | 10 | func (r *Recipient) Serialize() []byte { 11 | packet := make([]byte, len(r.Fingerprint)+1) 12 | packet[0] = byte(r.KeyVersion) 13 | copy(packet[1:], r.Fingerprint) 14 | return packet 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/forward_requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/sort.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | // Len implements sort.Interface function for length 4 | func (err Error) Len() int { 5 | return len(err.Errors) 6 | } 7 | 8 | // Swap implements sort.Interface function for swapping elements 9 | func (err Error) Swap(i, j int) { 10 | err.Errors[i], err.Errors[j] = err.Errors[j], err.Errors[i] 11 | } 12 | 13 | // Less implements sort.Interface function for determining order 14 | func (err Error) Less(i, j int) bool { 15 | return err.Errors[i].Error() < err.Errors[j].Error() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | matrix: 4 | fast_finish: true 5 | include: 6 | - go: 1.11.x 7 | env: TEST_METHOD=goveralls 8 | - go: 1.10.x 9 | - go: tip 10 | - go: 1.9.x 11 | - go: 1.8.x 12 | - go: 1.7.x 13 | - go: 1.6.x 14 | - go: 1.5.x 15 | allow_failures: 16 | - go: tip 17 | - go: 1.9.x 18 | - go: 1.8.x 19 | - go: 1.7.x 20 | - go: 1.6.x 21 | - go: 1.5.x 22 | script: ./test.sh $TEST_METHOD 23 | notifications: 24 | email: 25 | on_success: never 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-uuid/README.md: -------------------------------------------------------------------------------- 1 | # uuid [![Build Status](https://travis-ci.org/hashicorp/go-uuid.svg?branch=master)](https://travis-ci.org/hashicorp/go-uuid) 2 | 3 | Generates UUID-format strings using high quality, _purely random_ bytes. It is **not** intended to be RFC compliant, merely to use a well-understood string representation of a 128-bit value. It can also parse UUID-format strings into their component bytes. 4 | 5 | Documentation 6 | ============= 7 | 8 | The full documentation is available on [Godoc](http://godoc.org/github.com/hashicorp/go-uuid). 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo && linux && amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hc-install/catalog-info.yaml: -------------------------------------------------------------------------------- 1 | # Copyright (c) HashiCorp, Inc. 2 | # SPDX-License-Identifier: MPL-2.0 3 | # 4 | # Intended for internal HashiCorp use only 5 | apiVersion: backstage.io/v1alpha1 6 | kind: Component 7 | metadata: 8 | name: hc-install 9 | description: Go module for downloading or locating HashiCorp binaries 10 | annotations: 11 | github.com/project-slug: hashicorp/hc-install 12 | jira/project-key: TF 13 | jira/label: hc-install 14 | spec: 15 | type: library 16 | owner: terraform-core 17 | lifecycle: production 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/hclsyntax/file.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hclsyntax 5 | 6 | import ( 7 | "github.com/hashicorp/hcl/v2" 8 | ) 9 | 10 | // File is the top-level object resulting from parsing a configuration file. 11 | type File struct { 12 | Body *Body 13 | Bytes []byte 14 | } 15 | 16 | func (f *File) AsHCLFile() *hcl.File { 17 | return &hcl.File{ 18 | Body: f.Body, 19 | Bytes: f.Bytes, 20 | 21 | // TODO: The Nav object, once we have an implementation of it 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/reflection/README.md: -------------------------------------------------------------------------------- 1 | # Reflection 2 | 3 | Package reflection implements server reflection service. 4 | 5 | The service implemented is defined in: https://github.com/grpc/grpc/blob/master/src/proto/grpc/reflection/v1/reflection.proto. 6 | 7 | To register server reflection on a gRPC server: 8 | ```go 9 | import "google.golang.org/grpc/reflection" 10 | 11 | s := grpc.NewServer() 12 | pb.RegisterYourOwnServer(s, &server{}) 13 | 14 | // Register reflection service on gRPC server. 15 | reflection.Register(s) 16 | 17 | s.Serve(lis) 18 | ``` 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-cty/cty/null.go: -------------------------------------------------------------------------------- 1 | package cty 2 | 3 | // NullVal returns a null value of the given type. A null can be created of any 4 | // type, but operations on such values will always panic. Calling applications 5 | // are encouraged to use nulls only sparingly, particularly when user-provided 6 | // expressions are to be evaluated, since the precence of nulls creates a 7 | // much higher chance of evaluation errors that can't be caught by a type 8 | // checker. 9 | func NullVal(t Type) Value { 10 | return Value{ 11 | ty: t, 12 | v: nil, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/null.go: -------------------------------------------------------------------------------- 1 | package cty 2 | 3 | // NullVal returns a null value of the given type. A null can be created of any 4 | // type, but operations on such values will always panic. Calling applications 5 | // are encouraged to use nulls only sparingly, particularly when user-provided 6 | // expressions are to be evaluated, since the precence of nulls creates a 7 | // much higher chance of evaluation errors that can't be caught by a type 8 | // checker. 9 | func NullVal(t Type) Value { 10 | return Value{ 11 | ty: t, 12 | v: nil, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/timeout.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | package appengine 6 | 7 | import "context" 8 | 9 | // IsTimeoutError reports whether err is a timeout error. 10 | func IsTimeoutError(err error) bool { 11 | if err == context.DeadlineExceeded { 12 | return true 13 | } 14 | if t, ok := err.(interface { 15 | IsTimeout() bool 16 | }); ok { 17 | return t.IsTimeout() 18 | } 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package impl 6 | 7 | // When using unsafe pointers, we can just treat enum values as int32s. 8 | 9 | var ( 10 | coderEnumNoZero = coderInt32NoZero 11 | coderEnum = coderInt32 12 | coderEnumPtr = coderInt32Ptr 13 | coderEnumSlice = coderInt32Slice 14 | coderEnumPackedSlice = coderInt32PackedSlice 15 | ) 16 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/node_js.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build js 6 | 7 | package uuid 8 | 9 | // getHardwareInterface returns nil values for the JS version of the code. 10 | // This removes the "net" dependency, because it is not used in the browser. 11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes. 12 | func getHardwareInterface(name string) (string, []byte) { return "", nil } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc && !purego && (ppc64 || ppc64le) 6 | 7 | package chacha20 8 | 9 | const bufSize = 256 10 | 11 | //go:noescape 12 | func chaCha20_ctr32_vsx(out, inp *byte, len int, key *[8]uint32, counter *uint32) 13 | 14 | func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { 15 | chaCha20_ctr32_vsx(&dst[0], &src[0], len(src), &c.key, &c.counter) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/managed-identity-matrix.json: -------------------------------------------------------------------------------- 1 | { 2 | "include": [ 3 | { 4 | "Agent": { 5 | "msi_image": { 6 | "ArmTemplateParameters": "@{deployResources = $true}", 7 | "OSVmImage": "env:LINUXNEXTVMIMAGE", 8 | "Pool": "env:LINUXPOOL" 9 | } 10 | }, 11 | "GoVersion": [ 12 | "env:GO_VERSION_PREVIOUS" 13 | ], 14 | "IDENTITY_IMDS_AVAILABLE": "1" 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/process.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package cmdrunner 5 | 6 | import "time" 7 | 8 | // pidAlive checks whether a pid is alive. 9 | func pidAlive(pid int) bool { 10 | return _pidAlive(pid) 11 | } 12 | 13 | // pidWait blocks for a process to exit. 14 | func pidWait(pid int) error { 15 | ticker := time.NewTicker(1 * time.Second) 16 | defer ticker.Stop() 17 | 18 | for range ticker.C { 19 | if !pidAlive(pid) { 20 | break 21 | } 22 | } 23 | 24 | return nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/Makefile: -------------------------------------------------------------------------------- 1 | GOTOOLS = \ 2 | gotest.tools/gotestsum@latest 3 | 4 | test: tools 5 | gotestsum --format=short-verbose $(TEST) $(TESTARGS) 6 | 7 | generate: 8 | cd testdata && make generate 9 | 10 | modules: 11 | go mod download && go mod verify 12 | 13 | test-circle: 14 | mkdir -p test-results/terraform-json 15 | gotestsum --format=short-verbose --junitfile test-results/terraform-json/results.xml 16 | 17 | tools: 18 | @echo $(GOTOOLS) | xargs -t -n1 go install 19 | go mod tidy 20 | 21 | .PHONY: test generate modules test-circle tools 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/deferred.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func Deferred(in *tfprotov5.Deferred) *tfplugin5.Deferred { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfplugin5.Deferred{ 17 | Reason: tfplugin5.Deferred_Reason(in.Reason), 18 | } 19 | 20 | return resp 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/deferred.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func Deferred(in *tfprotov6.Deferred) *tfplugin6.Deferred { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfplugin6.Deferred{ 17 | Reason: tfplugin6.Deferred_Reason(in.Reason), 18 | } 19 | 20 | return resp 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/catalog-info.yaml: -------------------------------------------------------------------------------- 1 | # Copyright (c) HashiCorp, Inc. 2 | # SPDX-License-Identifier: MPL-2.0 3 | # 4 | # Intended for internal HashiCorp use only 5 | apiVersion: backstage.io/v1alpha1 6 | kind: Component 7 | metadata: 8 | name: terraform-json 9 | description: Helper types for the Terraform external data representation 10 | annotations: 11 | github.com/project-slug: hashicorp/terraform-json 12 | jira/project-key: TF 13 | jira/label: terraform-json 14 | spec: 15 | type: library 16 | owner: terraform-core 17 | lifecycle: production 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/raw_state.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package fromproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func RawState(in *tfplugin5.RawState) *tfprotov5.RawState { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfprotov5.RawState{ 17 | JSON: in.Json, 18 | Flatmap: in.Flatmap, 19 | } 20 | 21 | return resp 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/raw_state.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package fromproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func RawState(in *tfplugin6.RawState) *tfprotov6.RawState { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfprotov6.RawState{ 17 | JSON: in.Json, 18 | Flatmap: in.Flatmap, 19 | } 20 | 21 | return resp 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/util.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package terraform 5 | 6 | import ( 7 | "sort" 8 | ) 9 | 10 | // deduplicate a slice of strings 11 | func uniqueStrings(s []string) []string { 12 | if len(s) < 2 { 13 | return s 14 | } 15 | 16 | sort.Strings(s) 17 | result := make([]string, 1, len(s)) 18 | result[0] = s[0] 19 | for i := 1; i < len(s); i++ { 20 | if s[i] != result[len(result)-1] { 21 | result = append(result, s[i]) 22 | } 23 | } 24 | return result 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/logging.go: -------------------------------------------------------------------------------- 1 | //go:build go1.18 2 | // +build go1.18 3 | 4 | // Copyright (c) Microsoft Corporation. All rights reserved. 5 | // Licensed under the MIT License. 6 | 7 | package azidentity 8 | 9 | import "github.com/Azure/azure-sdk-for-go/sdk/internal/log" 10 | 11 | // EventAuthentication entries contain information about authentication. 12 | // This includes information like the names of environment variables 13 | // used when obtaining credentials and the type of credential used. 14 | const EventAuthentication log.Event = "Authentication" 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/process_posix.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | //go:build !windows 5 | // +build !windows 6 | 7 | package cmdrunner 8 | 9 | import ( 10 | "os" 11 | "syscall" 12 | ) 13 | 14 | // _pidAlive tests whether a process is alive or not by sending it Signal 0, 15 | // since Go otherwise has no way to test this. 16 | func _pidAlive(pid int) bool { 17 | proc, err := os.FindProcess(pid) 18 | if err == nil { 19 | err = proc.Signal(syscall.Signal(0)) 20 | } 21 | 22 | return err == nil 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/location_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=Location location.go"; DO NOT EDIT. 2 | 3 | package reflectwalk 4 | 5 | import "fmt" 6 | 7 | const _Location_name = "NoneMapMapKeyMapValueSliceSliceElemArrayArrayElemStructStructFieldWalkLoc" 8 | 9 | var _Location_index = [...]uint8{0, 4, 7, 13, 21, 26, 35, 40, 49, 55, 66, 73} 10 | 11 | func (i Location) String() string { 12 | if i >= Location(len(_Location_index)-1) { 13 | return fmt.Sprintf("Location(%d)", i) 14 | } 15 | return _Location_name[_Location_index[i]:_Location_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/encoding/protojson/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package protojson marshals and unmarshals protocol buffer messages as JSON 6 | // format. It follows the guide at 7 | // https://protobuf.dev/programming-guides/proto3#json. 8 | // 9 | // This package produces a different output than the standard [encoding/json] 10 | // package, which does not operate correctly on protocol buffer messages. 11 | package protojson 12 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/math/fp25519/fp_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || purego 2 | // +build !amd64 purego 3 | 4 | package fp25519 5 | 6 | func cmov(x, y *Elt, n uint) { cmovGeneric(x, y, n) } 7 | func cswap(x, y *Elt, n uint) { cswapGeneric(x, y, n) } 8 | func add(z, x, y *Elt) { addGeneric(z, x, y) } 9 | func sub(z, x, y *Elt) { subGeneric(z, x, y) } 10 | func addsub(x, y *Elt) { addsubGeneric(x, y) } 11 | func mul(z, x, y *Elt) { mulGeneric(z, x, y) } 12 | func sqr(z, x *Elt) { sqrGeneric(z, x) } 13 | func modp(z *Elt) { modpGeneric(z) } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/plugin/grpc_broker.proto: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | syntax = "proto3"; 5 | package plugin; 6 | option go_package = "./plugin"; 7 | 8 | message ConnInfo { 9 | uint32 service_id = 1; 10 | string network = 2; 11 | string address = 3; 12 | message Knock { 13 | bool knock = 1; 14 | bool ack = 2; 15 | string error = 3; 16 | } 17 | Knock knock = 4; 18 | } 19 | 20 | service GRPCBroker { 21 | rpc StartStream(stream ConnInfo) returns (stream ConnInfo); 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (386 || amd64 || amd64p32) && gc 6 | 7 | package cpu 8 | 9 | // cpuid is implemented in cpu_gc_x86.s for gc compiler 10 | // and in cpu_gccgo.c for gccgo. 11 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 12 | 13 | // xgetbv with ecx = 0 is implemented in cpu_gc_x86.s for gc compiler 14 | // and in cpu_gccgo.c for gccgo. 15 | func xgetbv() (eax, edx uint32) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && !race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/README.md: -------------------------------------------------------------------------------- 1 | # Terraform Helper Lib: schema 2 | 3 | The `schema` package provides a high-level interface for writing resource 4 | providers for Terraform. 5 | 6 | If you're writing a resource provider, we recommend you use this package. 7 | 8 | The interface exposed by this package is much friendlier than trying to 9 | write to the Terraform API directly. The core Terraform API is low-level 10 | and built for maximum flexibility and control, whereas this library is built 11 | as a framework around that to more easily write common providers. 12 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Microsoft Open Source Code of Conduct 2 | 3 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). 4 | 5 | Resources: 6 | 7 | - [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) 8 | - [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) 9 | - Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns 10 | - Employees can reach out at [aka.ms/opensource/moderation-support](https://aka.ms/opensource/moderation-support) -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/dynamic_value.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package fromproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func DynamicValue(in *tfplugin5.DynamicValue) *tfprotov5.DynamicValue { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfprotov5.DynamicValue{ 17 | MsgPack: in.Msgpack, 18 | JSON: in.Json, 19 | } 20 | 21 | return resp 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/dynamic_value.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package fromproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func DynamicValue(in *tfplugin6.DynamicValue) *tfprotov6.DynamicValue { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfprotov6.DynamicValue{ 17 | MsgPack: in.Msgpack, 18 | JSON: in.Json, 19 | } 20 | 21 | return resp 22 | } 23 | -------------------------------------------------------------------------------- /azuredevops/internal/model/repo.go: -------------------------------------------------------------------------------- 1 | package model 2 | 3 | // RepoType the type of the repository 4 | type RepoType string 5 | 6 | type repoTypeValuesType struct { 7 | GitHub RepoType 8 | TfsGit RepoType 9 | Bitbucket RepoType 10 | GitHubEnterprise RepoType 11 | OtherGit RepoType 12 | } 13 | 14 | // RepoTypeValues enum of the type of the repository 15 | var RepoTypeValues = repoTypeValuesType{ 16 | GitHub: "GitHub", 17 | TfsGit: "TfsGit", 18 | Bitbucket: "Bitbucket", 19 | GitHubEnterprise: "GitHubEnterprise", 20 | OtherGit: "Git", 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package plugin 5 | 6 | const ( 7 | // EnvUnixSocketDir specifies the directory that _plugins_ should create unix 8 | // sockets in. Does not affect client behavior. 9 | EnvUnixSocketDir = "PLUGIN_UNIX_SOCKET_DIR" 10 | 11 | // EnvUnixSocketGroup specifies the owning, writable group to set for Unix 12 | // sockets created by _plugins_. Does not affect client behavior. 13 | EnvUnixSocketGroup = "PLUGIN_UNIX_SOCKET_GROUP" 14 | 15 | envMultiplexGRPC = "PLUGIN_MULTIPLEX_GRPC" 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 && hurd 6 | 7 | package unix 8 | 9 | const ( 10 | TIOCGETA = 0x62251713 11 | ) 12 | 13 | type Winsize struct { 14 | Row uint16 15 | Col uint16 16 | Xpixel uint16 17 | Ypixel uint16 18 | } 19 | 20 | type Termios struct { 21 | Iflag uint32 22 | Oflag uint32 23 | Cflag uint32 24 | Lflag uint32 25 | Cc [20]uint8 26 | Ispeed int32 27 | Ospeed int32 28 | } 29 | -------------------------------------------------------------------------------- /azuredevops/internal/utils/validate/url.go: -------------------------------------------------------------------------------- 1 | package validate 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | 7 | "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" 8 | ) 9 | 10 | func Url(i interface{}, key string) (_ []string, errors []error) { 11 | url, ok := i.(string) 12 | if !ok { 13 | errors = append(errors, fmt.Errorf("expected type of %q to be string", key)) 14 | return 15 | } 16 | if strings.HasSuffix(url, "/") { 17 | errors = append(errors, fmt.Errorf("%q should not end with slash, got %q.", key, url)) 18 | return 19 | } 20 | return validation.IsURLWithHTTPorHTTPS(url, key) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (mips64 || mips64le) 6 | 7 | package cpu 8 | 9 | // HWCAP bits. These are exposed by the Linux kernel 5.4. 10 | const ( 11 | // CPU features 12 | hwcap_MIPS_MSA = 1 << 1 13 | ) 14 | 15 | func doinit() { 16 | // HWCAP feature bits 17 | MIPS64X.HasMSA = isSet(hwCap, hwcap_MIPS_MSA) 18 | } 19 | 20 | func isSet(hwc uint, value uint) bool { 21 | return hwc&value != 0 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/fatih/color/color_windows.go: -------------------------------------------------------------------------------- 1 | package color 2 | 3 | import ( 4 | "os" 5 | 6 | "golang.org/x/sys/windows" 7 | ) 8 | 9 | func init() { 10 | // Opt-in for ansi color support for current process. 11 | // https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences#output-sequences 12 | var outMode uint32 13 | out := windows.Handle(os.Stdout.Fd()) 14 | if err := windows.GetConsoleMode(out, &outMode); err != nil { 15 | return 16 | } 17 | outMode |= windows.ENABLE_PROCESSED_OUTPUT | windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING 18 | _ = windows.SetConsoleMode(out, outMode) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/provider.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package logging 5 | 6 | import ( 7 | "log" 8 | "strings" 9 | 10 | tfaddr "github.com/hashicorp/terraform-registry-address" 11 | ) 12 | 13 | func ProviderLoggerName(providerAddress string) string { 14 | provider, err := tfaddr.ParseProviderSource(providerAddress) 15 | if err != nil { 16 | log.Printf("[ERROR] Error parsing provider name %q: %s", providerAddress, err) 17 | return "" 18 | } 19 | 20 | return strings.ReplaceAll(provider.Type, "-", "_") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/event/keys/util.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package keys 6 | 7 | import ( 8 | "sort" 9 | "strings" 10 | ) 11 | 12 | // Join returns a canonical join of the keys in S: 13 | // a sorted comma-separated string list. 14 | func Join[S ~[]T, T ~string](s S) string { 15 | strs := make([]string, 0, len(s)) 16 | for _, v := range s { 17 | strs = append(strs, string(v)) 18 | } 19 | sort.Strings(strs) 20 | return strings.Join(strs, ",") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/appengine_vm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !appengine 6 | // +build !appengine 7 | 8 | package appengine 9 | 10 | import ( 11 | "context" 12 | ) 13 | 14 | // BackgroundContext returns a context not associated with a request. 15 | // 16 | // Deprecated: App Engine no longer has a special background context. 17 | // Just use context.Background(). 18 | func BackgroundContext() context.Context { 19 | return context.Background() 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/protolazy/pointer_unsafe.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package protolazy 6 | 7 | import ( 8 | "sync/atomic" 9 | "unsafe" 10 | ) 11 | 12 | func atomicLoadIndex(p **[]IndexEntry) *[]IndexEntry { 13 | return (*[]IndexEntry)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) 14 | } 15 | func atomicStoreIndex(p **[]IndexEntry, v *[]IndexEntry) { 16 | atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-cty/cty/msgpack/unknown.go: -------------------------------------------------------------------------------- 1 | package msgpack 2 | 3 | type unknownType struct{} 4 | 5 | var unknownVal = unknownType{} 6 | 7 | // unknownValBytes is the raw bytes of the msgpack fixext1 value we 8 | // write to represent an unknown value. It's an extension value of 9 | // type zero whose value is irrelevant. Since it's irrelevant, we 10 | // set it to a single byte whose value is also zero, since that's 11 | // the most compact possible representation. 12 | var unknownValBytes = []byte{0xd4, 0, 0} 13 | 14 | func (uv unknownType) MarshalMsgpack() ([]byte, error) { 15 | return unknownValBytes, nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/version.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfjson 5 | 6 | // VersionOutput represents output from the version -json command 7 | // added in v0.13 8 | type VersionOutput struct { 9 | Version string `json:"terraform_version"` 10 | Revision string `json:"terraform_revision"` 11 | Platform string `json:"platform,omitempty"` 12 | ProviderSelections map[string]string `json:"provider_selections"` 13 | Outdated bool `json:"terraform_outdated"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/Question.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 💬 Question 3 | about: If you have a question, please check out our other community resources! 4 | 5 | --- 6 | 7 | Issues on GitHub are intended to be related to bugs or feature requests with provider codebase, 8 | so we recommend using our other community resources instead of asking here 👍. 9 | 10 | --- 11 | 12 | If you have a support request or question please submit them to one of these resources: 13 | 14 | * [Terraform community resources](https://www.terraform.io/docs/extend/community/index.html) 15 | * [HashiCorp support](https://support.hashicorp.com) (Terraform Enterprise customers) -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/simple_warning.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfdiags 5 | 6 | type simpleWarning string 7 | 8 | var _ Diagnostic = simpleWarning("") 9 | 10 | // SimpleWarning constructs a simple (summary-only) warning diagnostic. 11 | func SimpleWarning(msg string) Diagnostic { 12 | return simpleWarning(msg) 13 | } 14 | 15 | func (e simpleWarning) Severity() Severity { 16 | return Warning 17 | } 18 | 19 | func (e simpleWarning) Description() Description { 20 | return Description{ 21 | Summary: string(e), 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/NOTICE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2014 gRPC authors. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/addr_translator.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package cmdrunner 5 | 6 | // addrTranslator implements stateless identity functions, as the host and plugin 7 | // run in the same context wrt Unix and network addresses. 8 | type addrTranslator struct{} 9 | 10 | func (*addrTranslator) PluginToHost(pluginNet, pluginAddr string) (string, string, error) { 11 | return pluginNet, pluginAddr, nil 12 | } 13 | 14 | func (*addrTranslator) HostToPlugin(hostNet, hostAddr string) (string, string, error) { 15 | return hostNet, hostAddr, nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | //go:build (appengine || js || nacl || tinygo || wasm) && !windows 2 | // +build appengine js nacl tinygo wasm 3 | // +build !windows 4 | 5 | package isatty 6 | 7 | // IsTerminal returns true if the file descriptor is terminal which 8 | // is always false on js and appengine classic which is a sandboxed PaaS. 9 | func IsTerminal(fd uintptr) bool { 10 | return false 11 | } 12 | 13 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 14 | // terminal. This is also always false on this environment. 15 | func IsCygwinTerminal(fd uintptr) bool { 16 | return false 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/copystructure/README.md: -------------------------------------------------------------------------------- 1 | # copystructure 2 | 3 | copystructure is a Go library for deep copying values in Go. 4 | 5 | This allows you to copy Go values that may contain reference values 6 | such as maps, slices, or pointers, and copy their data as well instead 7 | of just their references. 8 | 9 | ## Installation 10 | 11 | Standard `go get`: 12 | 13 | ``` 14 | $ go get github.com/mitchellh/copystructure 15 | ``` 16 | 17 | ## Usage & Example 18 | 19 | For usage and examples see the [Godoc](http://godoc.org/github.com/mitchellh/copystructure). 20 | 21 | The `Copy` function has examples associated with it there. 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux 6 | 7 | package unix 8 | 9 | import "runtime" 10 | 11 | // SysvShmCtl performs control operations on the shared memory segment 12 | // specified by id. 13 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 14 | if runtime.GOARCH == "arm" || 15 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 16 | cmd |= ipc_64 17 | } 18 | 19 | return shmctl(id, cmd, desc) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_reflect.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // The protoreflect build tag disables use of fast-path methods. 6 | //go:build protoreflect 7 | // +build protoreflect 8 | 9 | package proto 10 | 11 | import ( 12 | "google.golang.org/protobuf/reflect/protoreflect" 13 | "google.golang.org/protobuf/runtime/protoiface" 14 | ) 15 | 16 | const hasProtoMethods = false 17 | 18 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 19 | return nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/function_error.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func FunctionError(in *tfprotov5.FunctionError) *tfplugin5.FunctionError { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfplugin5.FunctionError{ 17 | FunctionArgument: in.FunctionArgument, 18 | Text: ForceValidUTF8(in.Text), 19 | } 20 | 21 | return resp 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/function_error.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func FunctionError(in *tfprotov6.FunctionError) *tfplugin6.FunctionError { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfplugin6.FunctionError{ 17 | FunctionArgument: in.FunctionArgument, 18 | Text: ForceValidUTF8(in.Text), 19 | } 20 | 21 | return resp 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_plan9.go: -------------------------------------------------------------------------------- 1 | //go:build plan9 2 | // +build plan9 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | path, err := syscall.Fd2path(int(fd)) 13 | if err != nil { 14 | return false 15 | } 16 | return path == "/dev/cons" || path == "/mnt/term/dev/cons" 17 | } 18 | 19 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 20 | // terminal. This is also always false on this environment. 21 | func IsCygwinTerminal(fd uintptr) bool { 22 | return false 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/hclsyntax/generate.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hclsyntax 5 | 6 | //go:generate go run expression_vars_gen.go 7 | //go:generate ruby unicode2ragel.rb --url=http://www.unicode.org/Public/9.0.0/ucd/DerivedCoreProperties.txt -m UnicodeDerived -p ID_Start,ID_Continue -o unicode_derived.rl 8 | //go:generate ragel -Z scan_tokens.rl 9 | //go:generate gofmt -w scan_tokens.go 10 | //go:generate ragel -Z scan_string_lit.rl 11 | //go:generate gofmt -w scan_string_lit.go 12 | //go:generate go run golang.org/x/tools/cmd/stringer -type TokenType -output token_type_string.go 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/structure/suppress_json_diff.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package structure 5 | 6 | import ( 7 | "reflect" 8 | 9 | "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" 10 | ) 11 | 12 | func SuppressJsonDiff(k, oldValue, newValue string, d *schema.ResourceData) bool { 13 | oldMap, err := ExpandJsonFromString(oldValue) 14 | if err != nil { 15 | return false 16 | } 17 | 18 | newMap, err := ExpandJsonFromString(newValue) 19 | if err != nil { 20 | return false 21 | } 22 | 23 | return reflect.DeepEqual(oldMap, newMap) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/map_entry.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package genid 6 | 7 | import "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field names and numbers for synthetic map entry messages. 10 | const ( 11 | MapEntry_Key_field_name protoreflect.Name = "key" 12 | MapEntry_Value_field_name protoreflect.Name = "value" 13 | 14 | MapEntry_Key_field_number protoreflect.FieldNumber = 1 15 | MapEntry_Value_field_number protoreflect.FieldNumber = 2 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_methods.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // The protoreflect build tag disables use of fast-path methods. 6 | //go:build !protoreflect 7 | // +build !protoreflect 8 | 9 | package proto 10 | 11 | import ( 12 | "google.golang.org/protobuf/reflect/protoreflect" 13 | "google.golang.org/protobuf/runtime/protoiface" 14 | ) 15 | 16 | const hasProtoMethods = true 17 | 18 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 19 | return m.ProtoMethods() 20 | } 21 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "Launch a test", 6 | "type": "go", 7 | "request": "launch", 8 | "mode": "auto", 9 | "program": "${file}", 10 | "args": [ 11 | "-test.v", 12 | "-test.run", 13 | "^${selectedText}$" 14 | ], 15 | "env": { 16 | "TF_ACC": "1" 17 | }, 18 | "buildFlags": "-v -tags=all", 19 | "showLog": true, 20 | "envFile": "${workspaceFolder}/.env" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/apparentlymart/go-textseg/v15/textseg/utf8_seqs.go: -------------------------------------------------------------------------------- 1 | package textseg 2 | 3 | import "unicode/utf8" 4 | 5 | // ScanGraphemeClusters is a split function for bufio.Scanner that splits 6 | // on UTF8 sequence boundaries. 7 | // 8 | // This is included largely for completeness, since this behavior is already 9 | // built in to Go when ranging over a string. 10 | func ScanUTF8Sequences(data []byte, atEOF bool) (int, []byte, error) { 11 | if len(data) == 0 { 12 | return 0, nil, nil 13 | } 14 | r, seqLen := utf8.DecodeRune(data) 15 | if r == utf8.RuneError && !atEOF { 16 | return 0, nil, nil 17 | } 18 | return seqLen, data[:seqLen], nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_tcgets.go: -------------------------------------------------------------------------------- 1 | //go:build (linux || aix || zos) && !appengine && !tinygo 2 | // +build linux aix zos 3 | // +build !appengine 4 | // +build !tinygo 5 | 6 | package isatty 7 | 8 | import "golang.org/x/sys/unix" 9 | 10 | // IsTerminal return true if the file descriptor is terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS) 13 | return err == nil 14 | } 15 | 16 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 17 | // terminal. This is also always false on this environment. 18 | func IsCygwinTerminal(fd uintptr) bool { 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azidentity/version.go: -------------------------------------------------------------------------------- 1 | //go:build go1.18 2 | // +build go1.18 3 | 4 | // Copyright (c) Microsoft Corporation. All rights reserved. 5 | // Licensed under the MIT License. 6 | 7 | package azidentity 8 | 9 | const ( 10 | // UserAgent is the string to be used in the user agent string when making requests. 11 | component = "azidentity" 12 | 13 | // module is the fully qualified name of the module used in telemetry and distributed tracing. 14 | module = "github.com/Azure/azure-sdk-for-go/sdk/" + component 15 | 16 | // Version is the semantic version (see http://semver.org) of this module. 17 | version = "v1.10.1" 18 | ) 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/error.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfdiags 5 | 6 | // nativeError is a Diagnostic implementation that wraps a normal Go error 7 | type nativeError struct { 8 | err error 9 | } 10 | 11 | var _ Diagnostic = nativeError{} 12 | 13 | func (e nativeError) Severity() Severity { 14 | return Error 15 | } 16 | 17 | func (e nativeError) Description() Description { 18 | return Description{ 19 | Summary: FormatError(e.err), 20 | } 21 | } 22 | 23 | func FromError(err error) Diagnostic { 24 | return &nativeError{ 25 | err: err, 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/empty_gen.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Code generated by generate-protos. DO NOT EDIT. 6 | 7 | package genid 8 | 9 | import ( 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | const File_google_protobuf_empty_proto = "google/protobuf/empty.proto" 14 | 15 | // Names for google.protobuf.Empty. 16 | const ( 17 | Empty_message_name protoreflect.Name = "Empty" 18 | Empty_message_fullname protoreflect.FullName = "google.protobuf.Empty" 19 | ) 20 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "flag" 5 | 6 | "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" 7 | "github.com/hashicorp/terraform-plugin-sdk/v2/plugin" 8 | "github.com/microsoft/terraform-provider-azuredevops/azuredevops" 9 | ) 10 | 11 | func main() { 12 | var debug bool 13 | 14 | flag.BoolVar(&debug, "debug", false, "set to true to run the provider with support for debuggers like delve") 15 | flag.Parse() 16 | 17 | plugin.Serve(&plugin.ServeOpts{ 18 | Debug: debug, 19 | ProviderAddr: "registry.terraform.io/microsoft/azuredevops", 20 | ProviderFunc: func() *schema.Provider { 21 | return azuredevops.Provider() 22 | }, 23 | }) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/browser/browser_linux.go: -------------------------------------------------------------------------------- 1 | package browser 2 | 3 | import ( 4 | "os/exec" 5 | "strings" 6 | ) 7 | 8 | func openBrowser(url string) error { 9 | providers := []string{"xdg-open", "x-www-browser", "www-browser"} 10 | 11 | // There are multiple possible providers to open a browser on linux 12 | // One of them is xdg-open, another is x-www-browser, then there's www-browser, etc. 13 | // Look for one that exists and run it 14 | for _, provider := range providers { 15 | if _, err := exec.LookPath(provider); err == nil { 16 | return runCmd(provider, url) 17 | } 18 | } 19 | 20 | return &exec.Error{Name: strings.Join(providers, ","), Err: exec.ErrNotFound} 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc && 386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /.goreleaser.yml: -------------------------------------------------------------------------------- 1 | # This is an example goreleaser.yaml file with some sane defaults. 2 | builds: 3 | - binary: "{{ .ProjectName }}_{{ .Tag }}" 4 | env: 5 | - CGO_ENABLED=0 6 | goos: 7 | - linux 8 | - windows 9 | - darwin 10 | archives: 11 | - name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}" 12 | format_overrides: 13 | - goos: windows 14 | format: zip 15 | checksum: 16 | name_template: 'checksums.txt' 17 | snapshot: 18 | name_template: "terraform-provider-azuredevops" 19 | changelog: 20 | sort: asc 21 | filters: 22 | exclude: 23 | - '^docs:' 24 | - '^test:' 25 | release: 26 | github: 27 | owner: microsoft 28 | name: terraform-provider-azuredevops -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/errors.go: -------------------------------------------------------------------------------- 1 | //go:build go1.18 2 | // +build go1.18 3 | 4 | // Copyright (c) Microsoft Corporation. All rights reserved. 5 | // Licensed under the MIT License. 6 | 7 | package azcore 8 | 9 | import "github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported" 10 | 11 | // ResponseError is returned when a request is made to a service and 12 | // the service returns a non-success HTTP status code. 13 | // Use errors.As() to access this type in the error chain. 14 | // 15 | // When marshaling instances, the RawResponse field will be omitted. 16 | // However, the contents returned by Error() will be preserved. 17 | type ResponseError = exported.ResponseError 18 | -------------------------------------------------------------------------------- /vendor/github.com/apparentlymart/go-textseg/v15/textseg/generate.go: -------------------------------------------------------------------------------- 1 | package textseg 2 | 3 | //go:generate go run make_tables.go -output tables.go 4 | //go:generate go run make_test_tables.go -output tables_test.go 5 | //go:generate ruby unicode2ragel.rb --url=https://www.unicode.org/Public/15.0.0/ucd/auxiliary/GraphemeBreakProperty.txt -m GraphemeCluster -p "Prepend,CR,LF,Control,Extend,Regional_Indicator,SpacingMark,L,V,T,LV,LVT,ZWJ" -o grapheme_clusters_table.rl 6 | //go:generate ruby unicode2ragel.rb --url=https://www.unicode.org/Public/15.0.0/ucd/emoji/emoji-data.txt -m Emoji -p "Extended_Pictographic" -o emoji_table.rl 7 | //go:generate ragel -Z grapheme_clusters.rl 8 | //go:generate gofmt -w grapheme_clusters.go 9 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/json/doc.go: -------------------------------------------------------------------------------- 1 | // Package json provides functions for serializing cty types and values in 2 | // JSON format, and for decoding them again. 3 | // 4 | // Since the cty type system is a superset of the JSON type system, 5 | // round-tripping through JSON is lossy unless type information is provided 6 | // both at encoding time and decoding time. Callers of this package are 7 | // therefore suggested to define their expected structure as a cty.Type 8 | // and pass it in consistently both when encoding and when decoding, though 9 | // default (type-lossy) behavior is provided for situations where the precise 10 | // representation of the data is not significant. 11 | package json 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/base/api_base.proto: -------------------------------------------------------------------------------- 1 | // Built-in base types for API calls. Primarily useful as return types. 2 | 3 | syntax = "proto2"; 4 | option go_package = "base"; 5 | 6 | package appengine.base; 7 | 8 | message StringProto { 9 | required string value = 1; 10 | } 11 | 12 | message Integer32Proto { 13 | required int32 value = 1; 14 | } 15 | 16 | message Integer64Proto { 17 | required int64 value = 1; 18 | } 19 | 20 | message BoolProto { 21 | required bool value = 1; 22 | } 23 | 24 | message DoubleProto { 25 | required double value = 1; 26 | } 27 | 28 | message BytesProto { 29 | required bytes value = 1 [ctype=CORD]; 30 | } 31 | 32 | message VoidProto { 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/openpgp/packet/packet_unsupported.go: -------------------------------------------------------------------------------- 1 | package packet 2 | 3 | import ( 4 | "io" 5 | 6 | "github.com/ProtonMail/go-crypto/openpgp/errors" 7 | ) 8 | 9 | // UnsupportedPackage represents a OpenPGP packet with a known packet type 10 | // but with unsupported content. 11 | type UnsupportedPacket struct { 12 | IncompletePacket Packet 13 | Error errors.UnsupportedError 14 | } 15 | 16 | // Implements the Packet interface 17 | func (up *UnsupportedPacket) parse(read io.Reader) error { 18 | err := up.IncompletePacket.parse(read) 19 | if castedErr, ok := err.(errors.UnsupportedError); ok { 20 | up.Error = castedErr 21 | return nil 22 | } 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-cty/cty/json/doc.go: -------------------------------------------------------------------------------- 1 | // Package json provides functions for serializing cty types and values in 2 | // JSON format, and for decoding them again. 3 | // 4 | // Since the cty type system is a superset of the JSON type system, 5 | // round-tripping through JSON is lossy unless type information is provided 6 | // both at encoding time and decoding time. Callers of this package are 7 | // therefore suggested to define their expected structure as a cty.Type 8 | // and pass it in consistently both when encoding and when decoding, though 9 | // default (type-lossy) behavior is provided for situations where the precise 10 | // representation of the data is not significant. 11 | package json 12 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | //go:build solaris && !appengine 2 | // +build solaris,!appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/gen/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | _, err := unix.IoctlGetTermio(int(fd), unix.TCGETA) 14 | return err == nil 15 | } 16 | 17 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 18 | // terminal. This is also always false on this environment. 19 | func IsCygwinTerminal(fd uintptr) bool { 20 | return false 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/instancetype.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package terraform 5 | 6 | // This code was previously generated with a go:generate directive calling: 7 | // go run golang.org/x/tools/cmd/stringer -type=instanceType instancetype.go 8 | // However, it is now considered frozen and the tooling dependency has been 9 | // removed. The String method can be manually updated if necessary. 10 | 11 | // instanceType is an enum of the various types of instances store in the State 12 | type instanceType int 13 | 14 | const ( 15 | typeInvalid instanceType = iota 16 | typePrimary 17 | typeTainted 18 | typeDeposed 19 | ) 20 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/function/stdlib/doc.go: -------------------------------------------------------------------------------- 1 | // Package stdlib is a collection of cty functions that are expected to be 2 | // generally useful, and are thus factored out into this shared library in 3 | // the hope that cty-using applications will have consistent behavior when 4 | // using these functions. 5 | // 6 | // See the parent package "function" for more information on the purpose 7 | // and usage of cty functions. 8 | // 9 | // This package contains both Go functions, which provide convenient access 10 | // to call the functions from Go code, and the Function objects themselves. 11 | // The latter follow the naming scheme of appending "Func" to the end of 12 | // the function name. 13 | package stdlib 14 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/ci.yml: -------------------------------------------------------------------------------- 1 | # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. 2 | trigger: 3 | branches: 4 | include: 5 | - main 6 | - feature/* 7 | - hotfix/* 8 | - release/* 9 | paths: 10 | include: 11 | - sdk/azcore/ 12 | - eng/ 13 | 14 | pr: 15 | branches: 16 | include: 17 | - main 18 | - feature/* 19 | - hotfix/* 20 | - release/* 21 | paths: 22 | include: 23 | - sdk/azcore/ 24 | - eng/ 25 | 26 | extends: 27 | template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml 28 | parameters: 29 | ServiceDirectory: azcore 30 | TriggeringPaths: 31 | - /eng/ 32 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/flatten.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | // Flatten flattens the given error, merging any *Errors together into 4 | // a single *Error. 5 | func Flatten(err error) error { 6 | // If it isn't an *Error, just return the error as-is 7 | if _, ok := err.(*Error); !ok { 8 | return err 9 | } 10 | 11 | // Otherwise, make the result and flatten away! 12 | flatErr := new(Error) 13 | flatten(err, flatErr) 14 | return flatErr 15 | } 16 | 17 | func flatten(err error, flatErr *Error) { 18 | switch err := err.(type) { 19 | case *Error: 20 | for _, e := range err.Errors { 21 | flatten(e, flatErr) 22 | } 23 | default: 24 | flatErr.Errors = append(flatErr.Errors, err) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hc-install/internal/validators/validators.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package validators 5 | 6 | import "regexp" 7 | 8 | var ( 9 | productNameRe = regexp.MustCompile(`^[a-z0-9-]+$`) 10 | binaryNameRe = regexp.MustCompile(`^[a-zA-Z0-9-_.]+$`) 11 | ) 12 | 13 | // IsProductNameValid provides early user-facing validation of a product name 14 | func IsProductNameValid(productName string) bool { 15 | return productNameRe.MatchString(productName) 16 | } 17 | 18 | // IsBinaryNameValid provides early user-facing validation of binary name 19 | func IsBinaryNameValid(binaryName string) bool { 20 | return binaryNameRe.MatchString(binaryName) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/json/type.go: -------------------------------------------------------------------------------- 1 | package json 2 | 3 | import ( 4 | "github.com/zclconf/go-cty/cty" 5 | ) 6 | 7 | // MarshalType returns a JSON serialization of the given type. 8 | // 9 | // This is just a thin wrapper around t.MarshalJSON, for symmetry with 10 | // UnmarshalType. 11 | func MarshalType(t cty.Type) ([]byte, error) { 12 | return t.MarshalJSON() 13 | } 14 | 15 | // UnmarshalType decodes a JSON serialization of the given type as produced 16 | // by either Type.MarshalJSON or MarshalType. 17 | // 18 | // This is a convenience wrapper around Type.UnmarshalJSON. 19 | func UnmarshalType(buf []byte) (cty.Type, error) { 20 | var t cty.Type 21 | err := t.UnmarshalJSON(buf) 22 | return t, err 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gccgo && arm 6 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | -------------------------------------------------------------------------------- /azuredevops/internal/utils/testhelper/random.go: -------------------------------------------------------------------------------- 1 | package testhelper 2 | 3 | import ( 4 | "math/rand" 5 | "time" 6 | ) 7 | 8 | func init() { 9 | rand.NewSource(time.Now().UnixNano()) 10 | } 11 | 12 | // RandIntSlice returns a random range of numbers as a slice within a range 13 | // 14 | // Usage: 15 | // arr := random.RandIntSlice(2, 100, 3) 16 | // 17 | // Output: [40, 5, 81] 18 | // Output: [12, 52, 31] 19 | func RandIntSlice(min int, max int, n int) []int { 20 | arr := make([]int, n) 21 | for r := 0; r <= n-1; r++ { 22 | arr[r] = RandInt(min, max) 23 | } 24 | return arr 25 | } 26 | 27 | // RandInt return a random number within a range 28 | func RandInt(min int, max int) int { 29 | return rand.Intn(max) + min 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-cty/cty/json/type.go: -------------------------------------------------------------------------------- 1 | package json 2 | 3 | import ( 4 | "github.com/hashicorp/go-cty/cty" 5 | ) 6 | 7 | // MarshalType returns a JSON serialization of the given type. 8 | // 9 | // This is just a thin wrapper around t.MarshalJSON, for symmetry with 10 | // UnmarshalType. 11 | func MarshalType(t cty.Type) ([]byte, error) { 12 | return t.MarshalJSON() 13 | } 14 | 15 | // UnmarshalType decodes a JSON serialization of the given type as produced 16 | // by either Type.MarshalJSON or MarshalType. 17 | // 18 | // This is a convenience wrapper around Type.UnmarshalJSON. 19 | func UnmarshalType(buf []byte) (cty.Type, error) { 20 | var t cty.Type 21 | err := t.UnmarshalJSON(buf) 22 | return t, err 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build (darwin || freebsd || openbsd || netbsd || dragonfly || hurd) && !appengine && !tinygo 2 | // +build darwin freebsd openbsd netbsd dragonfly hurd 3 | // +build !appengine 4 | // +build !tinygo 5 | 6 | package isatty 7 | 8 | import "golang.org/x/sys/unix" 9 | 10 | // IsTerminal return true if the file descriptor is terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA) 13 | return err == nil 14 | } 15 | 16 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 17 | // terminal. This is also always false on this environment. 18 | func IsCygwinTerminal(fd uintptr) bool { 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 12 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/enum.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package impl 6 | 7 | import ( 8 | "reflect" 9 | 10 | "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | type EnumInfo struct { 14 | GoReflectType reflect.Type // int32 kind 15 | Desc protoreflect.EnumDescriptor 16 | } 17 | 18 | func (t *EnumInfo) New(n protoreflect.EnumNumber) protoreflect.Enum { 19 | return reflect.ValueOf(n).Convert(t.GoReflectType).Interface().(protoreflect.Enum) 20 | } 21 | func (t *EnumInfo) Descriptor() protoreflect.EnumDescriptor { return t.Desc } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/asm_darwin_x86_gc.s: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && amd64 && gc 6 | 7 | #include "textflag.h" 8 | 9 | TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 10 | JMP libc_sysctl(SB) 11 | GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 12 | DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) 13 | 14 | TEXT libc_sysctlbyname_trampoline<>(SB),NOSPLIT,$0-0 15 | JMP libc_sysctlbyname(SB) 16 | GLOBL ·libc_sysctlbyname_trampoline_addr(SB), RODATA, $8 17 | DATA ·libc_sysctlbyname_trampoline_addr(SB)/8, $libc_sysctlbyname_trampoline<>(SB) 18 | -------------------------------------------------------------------------------- /vendor/github.com/golang-jwt/jwt/v5/claims.go: -------------------------------------------------------------------------------- 1 | package jwt 2 | 3 | // Claims represent any form of a JWT Claims Set according to 4 | // https://datatracker.ietf.org/doc/html/rfc7519#section-4. In order to have a 5 | // common basis for validation, it is required that an implementation is able to 6 | // supply at least the claim names provided in 7 | // https://datatracker.ietf.org/doc/html/rfc7519#section-4.1 namely `exp`, 8 | // `iat`, `nbf`, `iss`, `sub` and `aud`. 9 | type Claims interface { 10 | GetExpirationTime() (*NumericDate, error) 11 | GetIssuedAt() (*NumericDate, error) 12 | GetNotBefore() (*NumericDate, error) 13 | GetIssuer() (string, error) 14 | GetSubject() (string, error) 15 | GetAudience() (ClaimStrings, error) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/hclsyntax/keywords.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hclsyntax 5 | 6 | import ( 7 | "bytes" 8 | ) 9 | 10 | type Keyword []byte 11 | 12 | var forKeyword = Keyword([]byte{'f', 'o', 'r'}) 13 | var inKeyword = Keyword([]byte{'i', 'n'}) 14 | var ifKeyword = Keyword([]byte{'i', 'f'}) 15 | var elseKeyword = Keyword([]byte{'e', 'l', 's', 'e'}) 16 | var endifKeyword = Keyword([]byte{'e', 'n', 'd', 'i', 'f'}) 17 | var endforKeyword = Keyword([]byte{'e', 'n', 'd', 'f', 'o', 'r'}) 18 | 19 | func (kw Keyword) TokenMatches(token Token) bool { 20 | if token.Type != TokenIdent { 21 | return false 22 | } 23 | return bytes.Equal([]byte(kw), token.Bytes) 24 | } 25 | -------------------------------------------------------------------------------- /azuredevops/utils/sdk/dashboardextras/models.go: -------------------------------------------------------------------------------- 1 | // This is a copy of github.com/microsoft/azure-devops-go-api/azuredevops/pipelineschecks/models.go 2 | // The existing version does not contain the "Timeout" property on the CheckConfiguration struct 3 | 4 | // This file cannot be under "internal", because azdosdkmocks/pipelines_checks_v5_extras_mock.go depends on it. 5 | 6 | package dashboardextras 7 | 8 | import ( 9 | "github.com/microsoft/azure-devops-go-api/azuredevops/v7/dashboard" 10 | ) 11 | 12 | type UpdateDashboardArgs struct { 13 | // (required) The initial state of the dashboard 14 | Dashboard *dashboard.Dashboard 15 | // (required) Project ID or project name 16 | Project *string 17 | // (Optional) Team I 18 | Team *string 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/schema.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hcl 5 | 6 | // BlockHeaderSchema represents the shape of a block header, and is 7 | // used for matching blocks within bodies. 8 | type BlockHeaderSchema struct { 9 | Type string 10 | LabelNames []string 11 | } 12 | 13 | // AttributeSchema represents the requirements for an attribute, and is used 14 | // for matching attributes within bodies. 15 | type AttributeSchema struct { 16 | Name string 17 | Required bool 18 | } 19 | 20 | // BodySchema represents the desired shallow structure of a body. 21 | type BodySchema struct { 22 | Attributes []AttributeSchema 23 | Blocks []BlockHeaderSchema 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/tagparser/v2/README.md: -------------------------------------------------------------------------------- 1 | # Opinionated Golang tag parser 2 | 3 | [![Build Status](https://travis-ci.org/vmihailenco/tagparser.png?branch=master)](https://travis-ci.org/vmihailenco/tagparser) 4 | [![GoDoc](https://godoc.org/github.com/vmihailenco/tagparser?status.svg)](https://godoc.org/github.com/vmihailenco/tagparser) 5 | 6 | ## Installation 7 | 8 | Install: 9 | 10 | ```shell 11 | go get github.com/vmihailenco/tagparser/v2 12 | ``` 13 | 14 | ## Quickstart 15 | 16 | ```go 17 | func ExampleParse() { 18 | tag := tagparser.Parse("some_name,key:value,key2:'complex value'") 19 | fmt.Println(tag.Name) 20 | fmt.Println(tag.Options) 21 | // Output: some_name 22 | // map[key:value key2:'complex value'] 23 | } 24 | ``` 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_x86.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (386 || amd64 || amd64p32) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 10 | TEXT ·cpuid(SB), NOSPLIT, $0-24 11 | MOVL eaxArg+0(FP), AX 12 | MOVL ecxArg+4(FP), CX 13 | CPUID 14 | MOVL AX, eax+8(FP) 15 | MOVL BX, ebx+12(FP) 16 | MOVL CX, ecx+16(FP) 17 | MOVL DX, edx+20(FP) 18 | RET 19 | 20 | // func xgetbv() (eax, edx uint32) 21 | TEXT ·xgetbv(SB), NOSPLIT, $0-8 22 | MOVL $0, CX 23 | XGETBV 24 | MOVL AX, eax+0(FP) 25 | MOVL DX, edx+4(FP) 26 | RET 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/server_capabilities.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func ServerCapabilities(in *tfprotov5.ServerCapabilities) *tfplugin5.ServerCapabilities { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfplugin5.ServerCapabilities{ 17 | GetProviderSchemaOptional: in.GetProviderSchemaOptional, 18 | MoveResourceState: in.MoveResourceState, 19 | PlanDestroy: in.PlanDestroy, 20 | } 21 | 22 | return resp 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/server_capabilities.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func ServerCapabilities(in *tfprotov6.ServerCapabilities) *tfplugin6.ServerCapabilities { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfplugin6.ServerCapabilities{ 17 | GetProviderSchemaOptional: in.GetProviderSchemaOptional, 18 | MoveResourceState: in.MoveResourceState, 19 | PlanDestroy: in.PlanDestroy, 20 | } 21 | 22 | return resp 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/uuid.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package validation 5 | 6 | import ( 7 | "fmt" 8 | 9 | "github.com/hashicorp/go-uuid" 10 | ) 11 | 12 | // IsUUID is a ValidateFunc that ensures a string can be parsed as UUID 13 | func IsUUID(i interface{}, k string) (warnings []string, errors []error) { 14 | v, ok := i.(string) 15 | if !ok { 16 | errors = append(errors, fmt.Errorf("expected type of %q to be string", k)) 17 | return 18 | } 19 | 20 | if _, err := uuid.ParseUUID(v); err != nil { 21 | errors = append(errors, fmt.Errorf("expected %q to be a valid UUID, got %v", k, v)) 22 | } 23 | 24 | return warnings, errors 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && solaris 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func (iov *Iovec) SetLen(length int) { 18 | iov.Len = uint64(length) 19 | } 20 | 21 | func (msghdr *Msghdr) SetIovlen(length int) { 22 | msghdr.Iovlen = int32(length) 23 | } 24 | 25 | func (cmsg *Cmsghdr) SetLen(length int) { 26 | cmsg.Len = uint32(length) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && race 6 | 7 | package windows 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-log/tflog/doc.go: -------------------------------------------------------------------------------- 1 | // Package tflog provides helper functions for writing log output and creating 2 | // loggers for Terraform plugins. 3 | // 4 | // For most plugin authors, building on an SDK or framework, the SDK or 5 | // framework will take care of injecting a logger using New. 6 | // 7 | // tflog also allows plugin authors to create subsystem loggers, which are 8 | // loggers for sufficiently distinct areas of the codebase or concerns. The 9 | // benefit of using distinct loggers for these concerns is doing so allows 10 | // plugin authors and practitioners to configure different log levels for each 11 | // subsystem's log, allowing log output to be turned on or off without 12 | // recompiling. 13 | package tflog 14 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go: -------------------------------------------------------------------------------- 1 | //go:build testify_yaml_fail && !testify_yaml_custom && !testify_yaml_default 2 | // +build testify_yaml_fail,!testify_yaml_custom,!testify_yaml_default 3 | 4 | // Package yaml is an implementation of YAML functions that always fail. 5 | // 6 | // This implementation can be used at build time to replace the default implementation 7 | // to avoid linking with [gopkg.in/yaml.v3]: 8 | // 9 | // go test -tags testify_yaml_fail 10 | package yaml 11 | 12 | import "errors" 13 | 14 | var errNotImplemented = errors.New("YAML functions are not available (see https://pkg.go.dev/github.com/stretchr/testify/assert/yaml)") 15 | 16 | func Unmarshal([]byte, interface{}) error { 17 | return errNotImplemented 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/register.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package blake2b 6 | 7 | import ( 8 | "crypto" 9 | "hash" 10 | ) 11 | 12 | func init() { 13 | newHash256 := func() hash.Hash { 14 | h, _ := New256(nil) 15 | return h 16 | } 17 | newHash384 := func() hash.Hash { 18 | h, _ := New384(nil) 19 | return h 20 | } 21 | 22 | newHash512 := func() hash.Hash { 23 | h, _ := New512(nil) 24 | return h 25 | } 26 | 27 | crypto.RegisterHash(crypto.BLAKE2b_256, newHash256) 28 | crypto.RegisterHash(crypto.BLAKE2b_384, newHash384) 29 | crypto.RegisterHash(crypto.BLAKE2b_512, newHash512) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_loong64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | // HWCAP bits. These are exposed by the Linux kernel. 8 | const ( 9 | hwcap_LOONGARCH_LSX = 1 << 4 10 | hwcap_LOONGARCH_LASX = 1 << 5 11 | ) 12 | 13 | func doinit() { 14 | // TODO: Features that require kernel support like LSX and LASX can 15 | // be detected here once needed in std library or by the compiler. 16 | Loong64.HasLSX = hwcIsSet(hwCap, hwcap_LOONGARCH_LSX) 17 | Loong64.HasLASX = hwcIsSet(hwCap, hwcap_LOONGARCH_LASX) 18 | } 19 | 20 | func hwcIsSet(hwc uint, val uint) bool { 21 | return hwc&val != 0 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/internal/sha3/rc.go: -------------------------------------------------------------------------------- 1 | package sha3 2 | 3 | // RC stores the round constants for use in the ι step. 4 | var RC = [24]uint64{ 5 | 0x0000000000000001, 6 | 0x0000000000008082, 7 | 0x800000000000808A, 8 | 0x8000000080008000, 9 | 0x000000000000808B, 10 | 0x0000000080000001, 11 | 0x8000000080008081, 12 | 0x8000000000008009, 13 | 0x000000000000008A, 14 | 0x0000000000000088, 15 | 0x0000000080008009, 16 | 0x000000008000000A, 17 | 0x000000008000808B, 18 | 0x800000000000008B, 19 | 0x8000000000008089, 20 | 0x8000000000008003, 21 | 0x8000000000008002, 22 | 0x8000000000000080, 23 | 0x000000000000800A, 24 | 0x800000008000000A, 25 | 0x8000000080008081, 26 | 0x8000000000008080, 27 | 0x0000000080000001, 28 | 0x8000000080008008, 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/diagnostic.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfdiags 5 | 6 | type Diagnostic interface { 7 | Severity() Severity 8 | Description() Description 9 | } 10 | 11 | type Severity rune 12 | 13 | // This code was previously generated with a go:generate directive calling: 14 | // go run golang.org/x/tools/cmd/stringer -type=Severity 15 | // However, it is now considered frozen and the tooling dependency has been 16 | // removed. The String method can be manually updated if necessary. 17 | 18 | const ( 19 | Error Severity = 'E' 20 | Warning Severity = 'W' 21 | ) 22 | 23 | type Description struct { 24 | Summary string 25 | Detail string 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/resource_mode.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package terraform 5 | 6 | // This code was previously generated with a go:generate directive calling: 7 | // go run golang.org/x/tools/cmd/stringer -type=ResourceMode -output=resource_mode_string.go resource_mode.go 8 | // However, it is now considered frozen and the tooling dependency has been 9 | // removed. The String method can be manually updated if necessary. 10 | 11 | // ResourceMode is deprecated, use addrs.ResourceMode instead. 12 | // It has been preserved for backwards compatibility. 13 | type ResourceMode int 14 | 15 | const ( 16 | ManagedResourceMode ResourceMode = iota 17 | DataResourceMode 18 | ) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (386 || amd64 || amd64p32) && gccgo 6 | 7 | package cpu 8 | 9 | //extern gccgoGetCpuidCount 10 | func gccgoGetCpuidCount(eaxArg, ecxArg uint32, eax, ebx, ecx, edx *uint32) 11 | 12 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) { 13 | var a, b, c, d uint32 14 | gccgoGetCpuidCount(eaxArg, ecxArg, &a, &b, &c, &d) 15 | return a, b, c, d 16 | } 17 | 18 | //extern gccgoXgetbv 19 | func gccgoXgetbv(eax, edx *uint32) 20 | 21 | func xgetbv() (eax, edx uint32) { 22 | var a, d uint32 23 | gccgoXgetbv(&a, &d) 24 | return a, d 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_aix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix 6 | 7 | package cpu 8 | 9 | const ( 10 | // getsystemcfg constants 11 | _SC_IMPL = 2 12 | _IMPL_POWER8 = 0x10000 13 | _IMPL_POWER9 = 0x20000 14 | ) 15 | 16 | func archInit() { 17 | impl := getsystemcfg(_SC_IMPL) 18 | if impl&_IMPL_POWER8 != 0 { 19 | PPC64.IsPOWER8 = true 20 | } 21 | if impl&_IMPL_POWER9 != 0 { 22 | PPC64.IsPOWER8 = true 23 | PPC64.IsPOWER9 = true 24 | } 25 | 26 | Initialized = true 27 | } 28 | 29 | func getsystemcfg(label int) (n uint64) { 30 | r0, _ := callgetsystemcfg(label) 31 | n = uint64(r0) 32 | return 33 | } 34 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_zos_s390x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | func initS390Xbase() { 8 | // get the facilities list 9 | facilities := stfle() 10 | 11 | // mandatory 12 | S390X.HasZARCH = facilities.Has(zarch) 13 | S390X.HasSTFLE = facilities.Has(stflef) 14 | S390X.HasLDISP = facilities.Has(ldisp) 15 | S390X.HasEIMM = facilities.Has(eimm) 16 | 17 | // optional 18 | S390X.HasETF3EH = facilities.Has(etf3eh) 19 | S390X.HasDFP = facilities.Has(dfp) 20 | S390X.HasMSA = facilities.Has(msa) 21 | S390X.HasVX = facilities.Has(vx) 22 | if S390X.HasVX { 23 | S390X.HasVXE = facilities.Has(vxe) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/structure/normalize_json.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package structure 5 | 6 | import "encoding/json" 7 | 8 | // Takes a value containing JSON string and passes it through 9 | // the JSON parser to normalize it, returns either a parsing 10 | // error or normalized JSON string. 11 | func NormalizeJsonString(jsonString interface{}) (string, error) { 12 | var j interface{} 13 | 14 | if jsonString == nil || jsonString.(string) == "" { 15 | return "", nil 16 | } 17 | 18 | s := jsonString.(string) 19 | 20 | err := json.Unmarshal([]byte(s), &j) 21 | if err != nil { 22 | return s, err 23 | } 24 | 25 | bytes, _ := json.Marshal(j) 26 | return string(bytes[:]), nil 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && race) || (linux && race) || (freebsd && race) 6 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/openpgp/hash.go: -------------------------------------------------------------------------------- 1 | package openpgp 2 | 3 | import ( 4 | "crypto" 5 | 6 | "github.com/ProtonMail/go-crypto/openpgp/internal/algorithm" 7 | ) 8 | 9 | // HashIdToHash returns a crypto.Hash which corresponds to the given OpenPGP 10 | // hash id. 11 | func HashIdToHash(id byte) (h crypto.Hash, ok bool) { 12 | return algorithm.HashIdToHash(id) 13 | } 14 | 15 | // HashIdToString returns the name of the hash function corresponding to the 16 | // given OpenPGP hash id. 17 | func HashIdToString(id byte) (name string, ok bool) { 18 | return algorithm.HashIdToString(id) 19 | } 20 | 21 | // HashToHashId returns an OpenPGP hash id which corresponds the given Hash. 22 | func HashToHashId(h crypto.Hash) (id byte, ok bool) { 23 | return algorithm.HashToHashId(h) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/error.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package plugin 5 | 6 | // This is a type that wraps error types so that they can be messaged 7 | // across RPC channels. Since "error" is an interface, we can't always 8 | // gob-encode the underlying structure. This is a valid error interface 9 | // implementer that we will push across. 10 | type BasicError struct { 11 | Message string 12 | } 13 | 14 | // NewBasicError is used to create a BasicError. 15 | // 16 | // err is allowed to be nil. 17 | func NewBasicError(err error) *BasicError { 18 | if err == nil { 19 | return nil 20 | } 21 | 22 | return &BasicError{err.Error()} 23 | } 24 | 25 | func (e *BasicError) Error() string { 26 | return e.Message 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/severity_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=Severity"; DO NOT EDIT. 2 | 3 | package tfdiags 4 | 5 | import "strconv" 6 | 7 | func _() { 8 | // An "invalid array index" compiler error signifies that the constant values have changed. 9 | // Re-run the stringer command to generate them again. 10 | var x [1]struct{} 11 | _ = x[Error-69] 12 | _ = x[Warning-87] 13 | } 14 | 15 | const ( 16 | _Severity_name_0 = "Error" 17 | _Severity_name_1 = "Warning" 18 | ) 19 | 20 | func (i Severity) String() string { 21 | switch { 22 | case i == 69: 23 | return _Severity_name_0 24 | case i == 87: 25 | return _Severity_name_1 26 | default: 27 | return "Severity(" + strconv.FormatInt(int64(i), 10) + ")" 28 | } 29 | } 30 | --------------------------------------------------------------------------------