package credentials
import "github.com/ydb-platform/ydb-go-sdk/v3/credentials"
Index ¶
Functions ¶
func WithSourceInfo ¶
func WithSourceInfo(sourceInfo string) option
WithSourceInfo option append to credentials object the source info for reporting source info details on error case
Types ¶
type Credentials ¶
type Credentials interface { // Token must return actual token or error Token(context.Context) (string, error) }
Credentials is an interface of YDB credentials required for connect with YDB
func NewAccessTokenCredentials ¶
func NewAccessTokenCredentials(accessToken string, opts ...option) Credentials
NewAccessTokenCredentials makes access token credentials object Passed options redefines default values of credentials object internal fields
func NewAnonymousCredentials ¶
func NewAnonymousCredentials(opts ...option) Credentials
NewAnonymousCredentials makes anonymous credentials object Passed options redefines default values of credentials object internal fields
Source Files ¶
- Version
- v3.39.0-rc4
- Published
- Oct 12, 2022
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 10 minutes ago –
Tools for package owners.