tokens

package
v0.0.0-...-f34f428 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SystemSharedUserGuid = "00000000-1111-2222-3333-444444444444"

SystemSharedUserGuid - User ID for the system shared user for endpoints. Also used by front end

Variables

This section is empty.

Functions

func InitRepositoryProvider

func InitRepositoryProvider(databaseProvider string)

InitRepositoryProvider - One time init for the given DB Provider

func NewPgsqlTokenRepository

func NewPgsqlTokenRepository(dcp *sql.DB) (interfaces.TokenRepository, error)

NewPgsqlTokenRepository - get a reference to the token data source

Types

type PgsqlTokenRepository

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

PgsqlTokenRepository is a PostgreSQL-backed token repository

func (*PgsqlTokenRepository) DeleteCNSIToken

func (p *PgsqlTokenRepository) DeleteCNSIToken(cnsiGUID string, userGUID string) error

DeleteCNSIToken - remove a CNSI token (disconnect from a given CNSI)

func (*PgsqlTokenRepository) DeleteCNSITokens

func (p *PgsqlTokenRepository) DeleteCNSITokens(cnsiGUID string) error

func (*PgsqlTokenRepository) FindAllCNSITokenBackup

func (p *PgsqlTokenRepository) FindAllCNSITokenBackup(cnsiGUID string, encryptionKey []byte) ([]interfaces.BackupTokenRecord, error)

func (*PgsqlTokenRepository) FindAuthToken

func (p *PgsqlTokenRepository) FindAuthToken(userGUID string, encryptionKey []byte) (interfaces.TokenRecord, error)

FindAuthToken - return the UAA token from the datastore

func (*PgsqlTokenRepository) FindCNSIToken

func (p *PgsqlTokenRepository) FindCNSIToken(cnsiGUID string, userGUID string, encryptionKey []byte) (interfaces.TokenRecord, error)

func (*PgsqlTokenRepository) FindCNSITokenIncludeDisconnected

func (p *PgsqlTokenRepository) FindCNSITokenIncludeDisconnected(cnsiGUID string, userGUID string, encryptionKey []byte) (interfaces.TokenRecord, error)

func (*PgsqlTokenRepository) SaveAuthToken

func (p *PgsqlTokenRepository) SaveAuthToken(userGUID string, tr interfaces.TokenRecord, encryptionKey []byte) error

saveAuthToken - Save the Auth token to the datastore

func (*PgsqlTokenRepository) SaveCNSIToken

func (p *PgsqlTokenRepository) SaveCNSIToken(cnsiGUID string, userGUID string, tr interfaces.TokenRecord, encryptionKey []byte) error

SaveCNSIToken - Save the CNSI (UAA) token to the datastore

func (*PgsqlTokenRepository) UpdateTokenAuth

func (p *PgsqlTokenRepository) UpdateTokenAuth(userGUID string, tr interfaces.TokenRecord, encryptionKey []byte) error

UpdateTokenAuth - Update a token's auth data

Jump to

Keyboard shortcuts

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