hashicorp

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 12 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 hashicorp.PluginClient, logger log.Logger) *Store

func (*Store) Create

func (s *Store) Create(_ context.Context, id string, attr *entities.Attributes) (*entities.Wallet, error)

func (*Store) Delete

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

func (*Store) Destroy

func (s *Store) Destroy(_ context.Context, pubkey string) error

func (*Store) Get

func (s *Store) Get(_ context.Context, pubkey string) (*entities.Wallet, error)

func (*Store) GetDeleted

func (s *Store) GetDeleted(_ context.Context, _ string) (*entities.Wallet, error)

func (*Store) Import

func (s *Store) Import(_ context.Context, id string, privKey []byte, attr *entities.Attributes) (*entities.Wallet, error)

func (*Store) List

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

func (*Store) ListDeleted

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

func (*Store) Restore

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

func (*Store) Sign

func (s *Store) Sign(_ context.Context, pubkey, typeSign string, data []byte) ([]byte, error)

func (*Store) Update

func (s *Store) Update(_ context.Context, pubkey string, attr *entities.Attributes) (*entities.Wallet, error)

Jump to

Keyboard shortcuts

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