package credentials
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/credentials"
Index ¶
Variables ¶
ErrNoCredentials may be returned by Credentials implementations to make driver act as if there are no Credentials at all. That is, driver will not send any token meta information during request.
Types ¶
type Credentials ¶
Credentials is an interface that contains options used to authorize a client.
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
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal/credentials/test |
- Version
- v3.8.12
- Published
- Feb 8, 2022
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 20 seconds ago –
Tools for package owners.