-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement codegen for source verification providers (#100)
* refactor: Implement interface for source verification provider * chore: Use generated code * refactor: Move generated code into its own package * feat: Source verification codegen * chore: Generate source verifications * chore: Resolve lint errors * chore: Use `/latest` OpenAPI spec route Co-authored-by: Phil Leggetter <[email protected]> * chore: Update Go SDK v0.5.0 and generate all supported verification * feat: Add support for JSON verification for backward compatibility * chore: Fix lint issue * build: Separate TF docs & source verification codegen generate commands (#99) * chore(deps): bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0 (#69) Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 5.1.0 to 6.0.0. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](goreleaser/goreleaser-action@5742e2a...286f3b1) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ci: Separate codegen & tfdocs generate commands * chore: add pre-commit git hook for docs generation * fix: linting (#105) * chore: add pre-commit git hook for docs generation (#103) * chore(deps): bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0 (#69) Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 5.1.0 to 6.0.0. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](goreleaser/goreleaser-action@5742e2a...286f3b1) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore: add pre-commit git hook for docs generation * chore: fix lint * fix: linting (#105) --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: Upgrade SDK v0.6.0 and support SDK max attempts option (#110) * chore: Upgrade SDK v0.6.0 * feat: Support SDK max retries * docs: generate * chore(docs): update API ref link --------- Co-authored-by: Phil Leggetter <[email protected]> * chore: generate --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Phil Leggetter <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Phil Leggetter <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
730e9e9
commit 3f0bdc0
Showing
139 changed files
with
3,960 additions
and
2,065 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[core] | ||
hooksPath = .githooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
make generate-tfdocs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package main | ||
|
||
import ( | ||
"log" | ||
"terraform-provider-hookdeck/internal/codegen" | ||
) | ||
|
||
func main() { | ||
if err := codegen.RunCodeGen(); err != nil { | ||
log.Panicln(err) | ||
} | ||
} | ||
|
||
// Run "go generate" to generate Hookdeck source verification codes | ||
|
||
//go:generate go run . | ||
//go:generate gofmt -w ../../internal/provider/sourceverification/generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package main | ||
|
||
// Run "go generate" to format example terraform files and generate the docs for the registry/website | ||
|
||
// If you do not have terraform installed, you can remove the formatting command, but its suggested to | ||
// ensure the documentation is formatted properly. | ||
//go:generate terraform fmt -recursive ../../examples/ | ||
|
||
// Run the docs generation tool, check its repository for more information on how it works and how docs | ||
// can be customized. | ||
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-dir ../../ | ||
|
||
func main() { | ||
// noop | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.