9 Commits

Author SHA1 Message Date
Brian Flad
c4ac215bff
Bump Go version, dependency versions, add example function (#198)
Reference: https://developer.hashicorp.com/terraform/plugin/framework/functions
Reference: https://github.com/hashicorp/terraform-providers-devex-internal/issues/175

Terraform 1.8 and later introduce the concept of provider-defined functions and this adds an example function that accepts a string argument and returns the same value as a string return.

Dependencies updated via:

```
go get github.com/hashicorp/terraform-plugin-framework@v1.6.0
go get github.com/hashicorp/terraform-plugin-docs@v0.18.0
go mod tidy
```
2024-02-28 10:11:33 -05:00
Austin Valle
9b24243a86
[COMPLIANCE] Add copyright and license headers (#146)
* add copywrite config

* add note to copywrite HCL file

* [COMPLIANCE] Add copyright and license headers

* Update .copywrite.hcl

Co-authored-by: Brian Flad <bflad417@gmail.com>

* Update .copywrite.hcl

Co-authored-by: Brian Flad <bflad417@gmail.com>

* Update .copywrite.hcl

Co-authored-by: Brian Flad <bflad417@gmail.com>

---------

Co-authored-by: Brian Flad <bflad417@gmail.com>
2023-06-05 14:11:07 -04:00
dependabot[bot]
5e83f9b668
Bump github.com/hashicorp/terraform-plugin-framework from 0.17.0 to 1.0.0 (#104)
* Bump github.com/hashicorp/terraform-plugin-framework

Bumps [github.com/hashicorp/terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework) from 0.17.0 to 1.0.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-framework/compare/v0.17.0...v1.0.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-framework
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* internal/provider: Remove now extraneous provider.ProviderWithMetadata

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brian Flad <bflad417@gmail.com>
2022-12-13 14:33:38 -05:00
Brian Flad
aed8000e78
Migrate to new schema packages (#103) 2022-12-10 20:15:03 -05:00
Brian Flad
486074a22a
Updates for framework provider.DataSourceType and provider.ResourceType deprecations (#86) 2022-09-12 15:59:37 -04:00
dependabot[bot]
cdfbef8f1b
Bump github.com/hashicorp/terraform-plugin-framework from 0.10.0 to 0.11.0 (#77)
* Bump github.com/hashicorp/terraform-plugin-framework

Bumps [github.com/hashicorp/terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-framework/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Code updates for terraform-plugin-framework v0.11.0

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brian Flad <bflad417@gmail.com>
2022-08-11 13:03:35 -04:00
Brian Flad
51deae2bc7
internal/provider: Add compilation based interface assertions (#38)
This is a quick method for compilation errors to be raised should the types not satisfy the expected framework interfaces.
2022-04-22 06:46:40 -04:00
Brian Flad
d1b343faed Add provider configuration fetching to Configure since it will be a very common use case 2021-12-01 06:39:46 -05:00
Brian Flad
a64a312802 Initial commit
Most of the content is inspired by existing content in https://github.com/hashicorp/terraform-provider-scaffolding.
2021-12-01 05:37:16 -05:00