Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithSourceInfo ¶ added in v3.5.0
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 ¶ added in v3.5.0
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 ¶ added in v3.5.0
func NewAnonymousCredentials(opts ...option) Credentials
NewAnonymousCredentials makes anonymous credentials object Passed options redefines default values of credentials object internal fields
Click to show internal directories.
Click to hide internal directories.