|
@@ -12,6 +12,13 @@ import (
|
|
|
|
|
|
|
|
|
type provider struct {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -21,16 +28,25 @@ type provider struct {
|
|
|
|
|
|
|
|
|
version string
|
|
|
+}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+type providerData struct {
|
|
|
+ Example types.String `tfsdk:"example"`
|
|
|
}
|
|
|
|
|
|
func (p *provider) Configure(ctx context.Context, req tfsdk.ConfigureProviderRequest, resp *tfsdk.ConfigureProviderResponse) {
|
|
|
+ var data providerData
|
|
|
+ diags := req.Config.Get(ctx, &data)
|
|
|
+ resp.Diagnostics.Append(diags...)
|
|
|
+
|
|
|
+ if resp.Diagnostics.HasError() {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|