Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrique Santos committed Sep 29, 2023
1 parent 59d3bc9 commit e93dc8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stackit/internal/services/objectstorage/bucket/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ type bucketDataSource struct {
client *objectstorage.APIClient
}

// Metadata returns the resource type name.
// Metadata returns the data source type name.
func (r *bucketDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
resp.TypeName = req.ProviderTypeName + "_objectstorage_bucket"
}

// Configure adds the provider configured client to the resource.
// Configure adds the provider configured client to the data source.
func (r *bucketDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) {
// Prevent panic if the provider has not been configured.
if req.ProviderData == nil {
Expand Down Expand Up @@ -71,11 +71,11 @@ func (r *bucketDataSource) Configure(ctx context.Context, req datasource.Configu
tflog.Info(ctx, "ObjectStorage bucket client configured")
}

// Schema defines the schema for the resource.
// Schema defines the schema for the data source.
func (r *bucketDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
descriptions := map[string]string{
"main": "ObjectStorage credentials data source schema.",
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`bucket_name`\".",
"id": "Terraform's internal data source identifier. It is structured as \"`project_id`,`bucket_name`\".",
"bucket_name": "The bucket name. It must be DNS conform.",
"project_id": "STACKIT Project ID to which the bucket is associated.",
"url_path_style": "URL in path style.",
Expand Down

0 comments on commit e93dc8f

Please sign in to comment.