credentials

package
v3.51.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken added in v3.48.5

type AccessToken struct {
	// contains filtered or unexported fields
}

AccessToken implements Credentials interface with static authorization parameters.

func NewAccessTokenCredentials

func NewAccessTokenCredentials(token string, opts ...Option) *AccessToken

func (AccessToken) String added in v3.48.5

func (c AccessToken) String() string

Token implements Credentials.

func (AccessToken) Token added in v3.48.5

func (c AccessToken) Token(_ context.Context) (string, error)

Token implements Credentials.

type Anonymous added in v3.48.5

type Anonymous struct {
	// contains filtered or unexported fields
}

Anonymous implements Credentials interface with Anonymous access

func NewAnonymousCredentials

func NewAnonymousCredentials(opts ...Option) *Anonymous

func (Anonymous) String added in v3.48.5

func (c Anonymous) String() string

Token implements Credentials.

func (Anonymous) Token added in v3.48.5

func (c Anonymous) Token(_ context.Context) (string, error)

Token implements Credentials.

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

type Option added in v3.48.5

type Option func(opts *optionsHolder)

func WithSourceInfo added in v3.48.5

func WithSourceInfo(sourceInfo string) Option

type Static added in v3.48.5

type Static struct {
	// contains filtered or unexported fields
}

Static implements Credentials interface with static authorization parameters.

func NewStaticCredentials added in v3.34.0

func NewStaticCredentials(user, password string, config staticCredentialsConfig, opts ...Option) *Static

func (*Static) String added in v3.48.5

func (c *Static) String() string

func (*Static) Token added in v3.48.5

func (c *Static) Token(ctx context.Context) (token string, err error)

Jump to

Keyboard shortcuts

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