hashicorp

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountManager

type AccountManager interface {
	Status() (string, error)
	Accounts() ([]util.Account, error)
	Contains(acctAddr util.Address) bool
	Sign(acctAddr util.Address, toSign []byte) ([]byte, error)
	UnlockAndSign(acctAddr util.Address, toSign []byte) ([]byte, error)
	TimedUnlock(acctAddr util.Address, duration time.Duration) error
	Lock(acctAddr util.Address)
	NewAccount(conf config.NewAccount) (util.Account, error)
	ImportPrivateKey(privateKeyECDSA *ecdsa.PrivateKey, conf config.NewAccount) (util.Account, error)
}

func NewAccountManager

func NewAccountManager(conf config.VaultClient) (AccountManager, error)

NewAccountManager creates a new AccountManager. The implementation created is determined by the config provided.

Jump to

Keyboard shortcuts

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