Skip to content

Commit

Permalink
WithMetadataCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
hitsedesen authored Apr 23, 2022
1 parent dbcbc1b commit 6b8fbb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/docs/en/core/reference/ydb-sdk/example/go/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 6b8fbb3

Please sign in to comment.