storagemocks

package
v0.0.0-...-a6f3d4c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	*mock.Mock
}

func NewStorage

func NewStorage() Storage

func (Storage) Close

func (m Storage) Close() error

func (Storage) Create

func (m Storage) Create(ctx context.Context, token entity.Token) error

func (Storage) Delete

func (m Storage) Delete(ctx context.Context, id string) error

func (Storage) Get

func (m Storage) Get(ctx context.Context, id string) (entity.Token, error)

Token's id is its corresponding opaque token.

func (Storage) GetMultiple

func (m Storage) GetMultiple(ctx context.Context, query filter.Filter) ([]entity.Token, error)

type Vault

type Vault struct {
	*mock.Mock
}

func NewVault

func NewVault() Vault

func (Vault) GetKeySet

func (m Vault) GetKeySet(ctx context.Context) ([]entity.Key, error)

func (Vault) GetRandom

func (m Vault) GetRandom(ctx context.Context) (entity.Key, error)

Jump to

Keyboard shortcuts

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