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
func NewStaticCredentials ¶
func NewStaticCredentials(user, password string, authEndpoint string, opts ...grpc.DialOption) Credentials
NewStaticCredentials makes static credentials object
Source Files ¶
- Version
- v3.42.5-rc0
- Published
- Jan 12, 2023
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 19 minutes ago –
Tools for package owners.