From dbcbc1b5c390ec1c5556707eba4f4258c2fe76b3 Mon Sep 17 00:00:00 2001 From: Fyodor Barkov Date: Sat, 23 Apr 2022 21:15:07 +0500 Subject: [PATCH 1/2] Fix typo in go test app --- ydb/docs/en/core/reference/ydb-sdk/example/go/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ydb/docs/en/core/reference/ydb-sdk/example/go/index.md b/ydb/docs/en/core/reference/ydb-sdk/example/go/index.md index 36a4d43e3912..be472972a514 100644 --- a/ydb/docs/en/core/reference/ydb-sdk/example/go/index.md +++ b/ydb/docs/en/core/reference/ydb-sdk/example/go/index.md @@ -51,7 +51,7 @@ db, err := ydb.Open( dsn, // yc.WithInternalCA(), // using Yandex.Cloud certificates ydb.WithAccessTokenCredentials(token), // token-based authentication -// ydb.WithAnonimousCredentials(token), // anonymous authentication (for example, in docker ydb) +// ydb.WithAnonymousCredentials(), // anonymous authentication (for example, in docker ydb) // yc.WithMetadataCredentials(token), // authentication from inside a VM in Yandex.Cloud or a function in Yandex Functions // yc.WithServiceAccountKeyFileCredentials("~/.ydb/sa.json"), // authentication in Yandex.Cloud using a service account file // environ.WithEnvironCredentials(ctx), // authentication using environment variables From 6b8fbb3a53d434cd4f79c58e03630b1b58fa2499 Mon Sep 17 00:00:00 2001 From: Fyodor Barkov Date: Sat, 23 Apr 2022 21:38:57 +0500 Subject: [PATCH 2/2] WithMetadataCredentials --- ydb/docs/en/core/reference/ydb-sdk/example/go/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ydb/docs/en/core/reference/ydb-sdk/example/go/index.md b/ydb/docs/en/core/reference/ydb-sdk/example/go/index.md index be472972a514..247fd044ac41 100644 --- a/ydb/docs/en/core/reference/ydb-sdk/example/go/index.md +++ b/ydb/docs/en/core/reference/ydb-sdk/example/go/index.md @@ -52,7 +52,7 @@ db, err := ydb.Open( // yc.WithInternalCA(), // using Yandex.Cloud certificates ydb.WithAccessTokenCredentials(token), // token-based authentication // ydb.WithAnonymousCredentials(), // anonymous authentication (for example, in docker ydb) -// yc.WithMetadataCredentials(token), // authentication from inside a VM in Yandex.Cloud or a function in Yandex Functions +// yc.WithMetadataCredentials(ctx), // authentication from inside a VM in Yandex.Cloud or a function in Yandex Functions // yc.WithServiceAccountKeyFileCredentials("~/.ydb/sa.json"), // authentication in Yandex.Cloud using a service account file // environ.WithEnvironCredentials(ctx), // authentication using environment variables )