vault

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(vaultAPIURL string, vaultSaltSecret string) *vault

Types

type StoredVault

type StoredVault struct {
	Vault string
	Vsk   string
}

type Vault

type Vault interface {
	Store(uuid string, passphrase string, backupType domain.KeyBackupType, apiToken string, items []VaultItem) (*StoredVault, error)
	Retrieve(uuid string, passphrase string, backupType domain.KeyBackupType) ([]VaultItem, error)
}

type VaultItem

type VaultItem struct {
	ItemType VaultItemType
	Value    string
}

type VaultItemType

type VaultItemType string
const (
	PrivateKeyWithMnemonic VaultItemType = "PrivateKeyWithMnemonic"
)

Vault item types

type VkVersion

type VkVersion string
const (
	VkVersion1 VkVersion = "V1"
)

Jump to

Keyboard shortcuts

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