credentials

package
v3.25.0-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 8

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL