Skip to content

Commit a2d5ba0

Browse files
authored
chore: Restucture package to expose internals (#56)
This package will be imported by coder/coder to align parsing code!
1 parent 5de380a commit a2d5ba0

15 files changed

+9
-9
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ jobs:
7171
env:
7272
TF_ACC: "1"
7373
run: |
74-
go test -v -cover ./internal/provider/
74+
go test -v -cover ./provider/

docs/resources/app.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ resource "coder_app" "intellij" {
6363
### Optional
6464

6565
- `command` (String) A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either "command" or "url" may be specified, but not both.
66-
- `healthcheck` (Block Set) HTTP health checking to determine the application readiness. (see [below for nested schema](#nestedblock--healthcheck))
66+
- `healthcheck` (Block Set, Max: 1) HTTP health checking to determine the application readiness. (see [below for nested schema](#nestedblock--healthcheck))
6767
- `icon` (String) A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icons. Use a built-in icon with `data.coder_workspace.me.access_url + "/icons/<path>"`.
6868
- `name` (String) A display name to identify the app.
6969
- `relative_path` (Boolean) Specifies whether the URL will be accessed via a relative path or wildcard. Use if wildcard routing is unavailable.

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
55

6-
"github.com/coder/terraform-provider-coder/internal/provider"
6+
"github.com/coder/terraform-provider-coder/provider"
77
)
88

99
// Run the docs generation tool, check its repository for more information on how it works and how docs
File renamed without changes.

internal/provider/agent_test.go renamed to provider/agent_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package provider_test
33
import (
44
"testing"
55

6-
"github.com/coder/terraform-provider-coder/internal/provider"
6+
"github.com/coder/terraform-provider-coder/provider"
77
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
88
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
99
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
File renamed without changes.

internal/provider/app_test.go renamed to provider/app_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package provider_test
33
import (
44
"testing"
55

6-
"github.com/coder/terraform-provider-coder/internal/provider"
6+
"github.com/coder/terraform-provider-coder/provider"
77
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
88
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
99
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
File renamed without changes.

internal/provider/metadata_test.go renamed to provider/metadata_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"regexp"
55
"testing"
66

7-
"github.com/coder/terraform-provider-coder/internal/provider"
7+
"github.com/coder/terraform-provider-coder/provider"
88
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
99
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1010
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
File renamed without changes.

internal/provider/provider_test.go renamed to provider/provider_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/stretchr/testify/require"
77

8-
"github.com/coder/terraform-provider-coder/internal/provider"
8+
"github.com/coder/terraform-provider-coder/provider"
99
)
1010

1111
func TestProvider(t *testing.T) {
File renamed without changes.

internal/provider/provisioner_test.go renamed to provider/provisioner_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"runtime"
55
"testing"
66

7-
"github.com/coder/terraform-provider-coder/internal/provider"
7+
"github.com/coder/terraform-provider-coder/provider"
88
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
99
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1010
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
File renamed without changes.

internal/provider/workspace_test.go renamed to provider/workspace_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package provider_test
33
import (
44
"testing"
55

6-
"github.com/coder/terraform-provider-coder/internal/provider"
6+
"github.com/coder/terraform-provider-coder/provider"
77
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
88
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
99
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"

0 commit comments

Comments
 (0)