storage

package
v0.0.0-...-7974e50 Latest Latest
Warning

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

Go to latest
Published: May 15, 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 Getter

type Getter interface {
	// Token's id is its corresponding opaque token.
	Get(ctx context.Context, id string) (entity.Token, error)

	GetMultiple(ctx context.Context, filter filter.Filter) ([]entity.Token, error)
}

type Storage

type Storage interface {
	Getter
	Writer
	io.Closer
}

type Vault

type Vault interface {
	GetRandom(ctx context.Context) (entity.Key, error)
	GetKeySet(ctx context.Context) ([]entity.Key, error)
}

type Writer

type Writer interface {
	Create(ctx context.Context, token entity.Token) error
	Delete(ctx context.Context, id string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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