Skip to content

Commit d13aca7

Browse files
author
Devansh Thakur
committed
added new comment and fixed linter
1 parent 65769c3 commit d13aca7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

examples/intake/intake.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ func main() {
1414
region := "eu01" // Region where the resources will be created
1515
projectId := "PROJECT_ID" // Your STACKIT project ID
1616

17-
dremioCatalogURI := "DREMIO_CATALOG_URI" // E.g., "https://my-dremio-catalog.data-platform.stackit.run/iceberg"
18-
dremioTokenEndpoint := "DREMIO_TOKEN_ENDPOINT" // E.g., "https://my-dremio.data-platform.stackit.run/oauth/token"
19-
dremioPAT := "DREMIO_PERSONAL_ACCESS_TOKEN" // Your Dremio Personal Access Token
20-
catalogWarehouse := "CATALOG_WAREHOUSE" // Catalog warehouse where the data will be ingested
17+
dremioCatalogURI := "DREMIO_CATALOG_URI" //nolint:gosec // E.g., "https://my-dremio-catalog.data-platform.stackit.run/iceberg"
18+
dremioTokenEndpoint := "DREMIO_TOKEN_ENDPOINT" //nolint:gosec // E.g., "https://my-dremio.data-platform.stackit.run/oauth/token"
19+
dremioPAT := "DREMIO_PERSONAL_ACCESS_TOKEN" //nolint:gosec // Your Dremio Personal Access Token
20+
catalogWarehouse := "CATALOG_WAREHOUSE" //nolint:gosec // Catalog warehouse where the data will be ingested
2121

22-
intakeUserPassword := "s3cuRe_p@ssW0rd_f0r_1ntake!" // A secure password for the new intake user
22+
intakeUserPassword := "s3cuRe_p@ssW0rd_f0r_1ntake!" //nolint:gosec // A secure password for the new intake user
2323

2424
ctx := context.Background()
2525

@@ -76,6 +76,7 @@ func main() {
7676
DisplayName: utils.Ptr("my-example-user"),
7777
Password: utils.Ptr(intakeUserPassword),
7878
}
79+
// Create an Intake user
7980
createIntakeUserResp, err := intakeClient.CreateIntakeUser(ctx, projectId, region, intakeId).CreateIntakeUserPayload(createIntakeUserPayload).Execute()
8081
if err != nil {
8182
fmt.Fprintf(os.Stderr, "Error creating Intake User: %v\n", err)

0 commit comments

Comments
 (0)