Documentation ¶
Index ¶
- type Provider
- func New(opts *command.BaseOptions, connectionsFactory connectionsfactory.Factory, ...) Provider
- func NewIamCreds(keyfileName, iamEndpoint string) Provider
- func NewIamToken(token string) Provider
- func NewMetadata(logger *zap.SugaredLogger) Provider
- func NewStatic(login, password string, connectionsFactory connectionsfactory.Factory, ...) Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { ContextWithAuth(context.Context) (context.Context, context.CancelFunc) // TODO(shmel1k@): think about compatibility // with ydb-go-sdk ContextWithoutAuth(context.Context) (context.Context, context.CancelFunc) GetToken() (string, error) Init() error }
func New ¶
func New( opts *command.BaseOptions, connectionsFactory connectionsfactory.Factory, logger *zap.SugaredLogger, impl Provider, ) Provider
func NewIamCreds ¶ added in v0.0.4
func NewIamToken ¶
func NewMetadata ¶ added in v0.0.4
func NewMetadata(logger *zap.SugaredLogger) Provider
func NewStatic ¶
func NewStatic( login, password string, connectionsFactory connectionsfactory.Factory, logger *zap.SugaredLogger, ) Provider
Click to show internal directories.
Click to hide internal directories.