Skip to content

Commit 2d35713

Browse files
committed
review changes
1 parent d10f857 commit 2d35713

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

stackit/provider.go

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,7 @@ func New(version string) func() provider.Provider {
9898
}
9999
}
100100

101-
func (p *Provider) Metadata(
102-
_ context.Context,
103-
_ provider.MetadataRequest,
104-
resp *provider.MetadataResponse,
105-
) {
101+
func (p *Provider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse) {
106102
resp.TypeName = "stackit"
107103
resp.Version = p.version
108104
}
@@ -147,11 +143,7 @@ type providerModel struct {
147143
}
148144

149145
// Schema defines the provider-level schema for configuration data.
150-
func (p *Provider) Schema(
151-
_ context.Context,
152-
_ provider.SchemaRequest,
153-
resp *provider.SchemaResponse,
154-
) {
146+
func (p *Provider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse) {
155147
descriptions := map[string]string{
156148
"credentials_path": "Path of JSON from where the credentials are read. Takes precedence over the env var `STACKIT_CREDENTIALS_PATH`. Default value is `~/.stackit/credentials.json`.",
157149
"service_account_token": "Token used for authentication. If set, the token flow will be used to authenticate all operations.",
@@ -347,11 +339,7 @@ func (p *Provider) Schema(
347339
}
348340

349341
// Configure prepares a stackit API client for data sources and resources.
350-
func (p *Provider) Configure(
351-
ctx context.Context,
352-
req provider.ConfigureRequest,
353-
resp *provider.ConfigureResponse,
354-
) {
342+
func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse) {
355343
// Retrieve provider data and configuration
356344
var providerConfig providerModel
357345
diags := req.Config.Get(ctx, &providerConfig)

0 commit comments

Comments
 (0)