# README
ydb-go-yc-metadata
helpers to connect to YDB inside yandex-cloud using metadata service
Overview
Currently package provides helpers to connect to YDB inside yandex-cloud.
Usage
import (
yc "github.com/ydb-platform/ydb-go-yc-metadata"
)
...
db, err := ydb.Open(
ctx,
os.Getenv("YDB_CONNECTION_STRING"),
yc.WithInternalCA(),
yc.WithCredentials(ctx), // auth inside cloud (virtual machine or yandex function)
)
# Packages
No description provided by the author
# Functions
NewInstanceServiceAccount makes credentials provider that uses instance metadata url to obtain token for service account attached to instance.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
# Interfaces
No description provided by the author