akv

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New(client akv.KeysClient, logger log.Logger) *Store

func (*Store) Create

func (s *Store) Create(ctx context.Context, id string, alg *entities2.Algorithm, attr *entities.Attributes) (*entities.Key, error)

func (*Store) Decrypt

func (s *Store) Decrypt(_ context.Context, id string, data []byte) ([]byte, error)

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, id string) error

func (*Store) Destroy

func (s *Store) Destroy(ctx context.Context, id string) error

func (*Store) Encrypt

func (s *Store) Encrypt(_ context.Context, id string, data []byte) ([]byte, error)

func (*Store) Get

func (s *Store) Get(ctx context.Context, id string) (*entities.Key, error)

func (*Store) GetDeleted

func (s *Store) GetDeleted(ctx context.Context, id string) (*entities.Key, error)

func (*Store) Import

func (s *Store) Import(ctx context.Context, id string, privKey []byte, alg *entities2.Algorithm, attr *entities.Attributes) (*entities.Key, error)

func (*Store) Info

func (s *Store) Info(context.Context) (*entities.Store, error)

func (*Store) List

func (s *Store) List(ctx context.Context, _, _ uint64) ([]string, error)

func (*Store) ListDeleted

func (s *Store) ListDeleted(ctx context.Context, _, _ uint64) ([]string, error)

func (*Store) Restore

func (s *Store) Restore(ctx context.Context, id string) error

func (*Store) Sign

func (s *Store) Sign(ctx context.Context, id string, data []byte, algo *entities2.Algorithm) ([]byte, error)

func (*Store) Update

func (s *Store) Update(ctx context.Context, id string, attr *entities.Attributes) (*entities.Key, error)

func (*Store) Verify

func (s *Store) Verify(_ context.Context, pubKey, data, sig []byte, algo *entities2.Algorithm) error

Jump to

Keyboard shortcuts

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