hcvault

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HCVaultLoginToken

type HCVaultLoginToken struct {
	VaultToken          string
	FileWithVaultToken  string
	GitHubToken         string
	FileWithGitHubToken string
}

type HCVaultSecretStore

type HCVaultSecretStore struct {
	Client *vault.Client
}

func NewHCVaultSecretStore

func NewHCVaultSecretStore(
	vaultURL string,
	loginToken HCVaultLoginToken,
) (*HCVaultSecretStore, error)

func (*HCVaultSecretStore) DoesEthereumWalletExist

func (c *HCVaultSecretStore) DoesEthereumWalletExist(secretPath string) (bool, error)

func (*HCVaultSecretStore) DoesExist

func (c *HCVaultSecretStore) DoesExist(root string, path string) (bool, error)

func (*HCVaultSecretStore) DoesExistWithPath

func (c *HCVaultSecretStore) DoesExistWithPath(path string) (bool, error)

func (*HCVaultSecretStore) DoesVegaNodeExist

func (c *HCVaultSecretStore) DoesVegaNodeExist(network string, node string) (bool, error)

func (*HCVaultSecretStore) DoesVegaWalletExist

func (c *HCVaultSecretStore) DoesVegaWalletExist(secretPath string) (bool, error)

func (*HCVaultSecretStore) GetAllVegaNode

func (c *HCVaultSecretStore) GetAllVegaNode(network string) (map[string]*secrets.VegaNodePrivate, error)

func (*HCVaultSecretStore) GetDigitalOceanApiToken

func (c *HCVaultSecretStore) GetDigitalOceanApiToken() (string, error)

func (*HCVaultSecretStore) GetEthereumNodeURL

func (c *HCVaultSecretStore) GetEthereumNodeURL(environment string) (string, error)

func (*HCVaultSecretStore) GetEthereumWallet

func (c *HCVaultSecretStore) GetEthereumWallet(secretPath string) (*secrets.EthereumWalletPrivate, error)

func (*HCVaultSecretStore) GetEtherscanApikey

func (c *HCVaultSecretStore) GetEtherscanApikey() (string, error)

func (*HCVaultSecretStore) GetInfuraProjectId

func (c *HCVaultSecretStore) GetInfuraProjectId() (string, error)

func (*HCVaultSecretStore) GetSecret

func (c *HCVaultSecretStore) GetSecret(root string, path string) (map[string]interface{}, error)

func (*HCVaultSecretStore) GetSecretAsByte

func (c *HCVaultSecretStore) GetSecretAsByte(root string, path string) ([]byte, error)

func (*HCVaultSecretStore) GetSecretList

func (c *HCVaultSecretStore) GetSecretList(root string, path string) ([]string, error)

func (*HCVaultSecretStore) GetSecretWithPath

func (c *HCVaultSecretStore) GetSecretWithPath(path string) (map[string]interface{}, error)

func (*HCVaultSecretStore) GetVegaNode

func (c *HCVaultSecretStore) GetVegaNode(network string, node string) (*secrets.VegaNodePrivate, error)

func (*HCVaultSecretStore) GetVegaNodeList

func (c *HCVaultSecretStore) GetVegaNodeList(network string) ([]string, error)

func (*HCVaultSecretStore) GetVegaWallet

func (c *HCVaultSecretStore) GetVegaWallet(secretPath string) (*secrets.VegaWalletPrivate, error)

func (*HCVaultSecretStore) StoreEthereumWallet

func (c *HCVaultSecretStore) StoreEthereumWallet(secretPath string, secretData *secrets.EthereumWalletPrivate) error

func (*HCVaultSecretStore) StoreVegaNode

func (c *HCVaultSecretStore) StoreVegaNode(network string, node string, privateData *secrets.VegaNodePrivate) error

func (*HCVaultSecretStore) StoreVegaWallet

func (c *HCVaultSecretStore) StoreVegaWallet(secretPath string, secretData *secrets.VegaWalletPrivate) error

func (*HCVaultSecretStore) UpsertSecret

func (c *HCVaultSecretStore) UpsertSecret(root string, path string, secret map[string]interface{}) error

func (*HCVaultSecretStore) UpsertSecretFromByte

func (c *HCVaultSecretStore) UpsertSecretFromByte(root string, path string, secretDataByte []byte) error

func (*HCVaultSecretStore) UpsertSecretWithPath

func (c *HCVaultSecretStore) UpsertSecretWithPath(path string, secret map[string]interface{}) error

Jump to

Keyboard shortcuts

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