Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 MultiCredentials ¶
func MultiCredentials(cs ...Credentials) Credentials
MultiCredentials creates Credentials which represents multiple ways of obtaining token. Its Token() method proxies call to the underlying credentials in order. When first successful call met, it returns. If there are no successful calls, it returns last error.
func NewAccessTokenCredentials ¶
func NewAccessTokenCredentials(token string, sourceInfo string) Credentials
func NewAnonymousCredentials ¶
func NewAnonymousCredentials(sourceInfo string) Credentials
func NewStaticCredentials ¶ added in v3.34.0
func NewStaticCredentials(user, password string, authEndpoint string, opts ...grpc.DialOption) Credentials
Click to show internal directories.
Click to hide internal directories.