dependabot[bot] 722a14ef57 chore(deps): bump github.com/ydb-platform/ydb-go-sdk-auth-environ from 0.2.0 to 0.4.2 (#5621) | 5 months ago | |
---|---|---|
.. | ||
doc.go | 2 years ago | |
readme.md | 2 years ago | |
ydb_queries.go | 2 years ago | |
ydb_store.go | 5 months ago | |
ydb_store_kv.go | 2 years ago | |
ydb_store_test.go | 2 years ago | |
ydb_types.go | 2 years ago |
database: https://github.com/ydb-platform/ydb
go driver: https://github.com/ydb-platform/ydb-go-sdk
options:
[ydb]
enabled=true
dsn=grpcs://ydb-ru.yandex.net:2135/?database=/ru/home/username/db
prefix="seaweedfs"
useBucketPrefix=true
poolSizeLimit=50
dialTimeOut = 10
Authenticate produced with one of next environment variables:
YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS=<path/to/sa_key_file>
— used service account key file by pathYDB_ANONYMOUS_CREDENTIALS="1"
— used for authenticate with anonymous access. Anonymous access needs for connect to testing YDB installationYDB_METADATA_CREDENTIALS="1"
— used metadata service for authenticate to YDB from yandex cloud virtual machine or from yandex functionYDB_ACCESS_TOKEN_CREDENTIALS=<access_token>
— used for authenticate to YDB with short-life access token. For example, access token may be IAM tokenYDB_CONNECTION_STRING="grpcs://endpoint/?database=database"
i test using this dev database:
make dev_ydb