File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,17 @@ package tpfprovider
2
2
3
3
import (
4
4
"context"
5
+ "net/url"
5
6
6
7
"github.com/hashicorp/terraform-plugin-framework/datasource"
7
8
"github.com/hashicorp/terraform-plugin-framework/provider"
8
9
"github.com/hashicorp/terraform-plugin-framework/provider/schema"
9
10
"github.com/hashicorp/terraform-plugin-framework/resource"
10
11
)
11
12
12
- type coderProvider struct {}
13
+ type coderProvider struct {
14
+ URL * url.URL
15
+ }
13
16
14
17
var _ provider.Provider = (* coderProvider )(nil )
15
18
@@ -27,7 +30,12 @@ func (p *coderProvider) DataSources(_ context.Context) []func() datasource.DataS
27
30
28
31
func (p * coderProvider ) Schema (_ context.Context , _ provider.SchemaRequest , resp * provider.SchemaResponse ) {
29
32
resp .Schema = schema.Schema {
30
- Attributes : map [string ]schema.Attribute {},
33
+ Attributes : map [string ]schema.Attribute {
34
+ "url" : schema.StringAttribute {
35
+ Description : "The URL to access Coder." ,
36
+ Optional : true ,
37
+ },
38
+ },
31
39
}
32
40
}
33
41
You can’t perform that action at this time.
0 commit comments