Documentation ¶
Index ¶
- type Storage
- type VaultStorage
- func (s VaultStorage) DecryptToFile(secret string) (path string, err error)
- func (s *VaultStorage) DecryptedDataPath() string
- func (s *VaultStorage) Edit(secretPath string) error
- func (s *VaultStorage) EncryptedDataPath() string
- func (s *VaultStorage) Get(path string) (map[string]interface{}, error)
- func (s *VaultStorage) Put(path string, mergeValues map[string]interface{}) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { Get(path string) (secretData map[string]interface{}, err error) Put(path string, mergeValues map[string]interface{}) (map[string]interface{}, error) Edit(path string) error EncryptedDataPath() (kvDataPath string) DecryptedDataPath() (tmpPath string) DecryptToFile(secretPath string) (secretFile string, err error) }
Storage is the interface that implements the Get and Put methods of the VaultStorage struct
type VaultStorage ¶
VaultStorage holds the configuration using Vault transit via the kv library
func (VaultStorage) DecryptToFile ¶
func (s VaultStorage) DecryptToFile(secret string) (path string, err error)
DecryptToFile writes a secret to a random secret data file on disk
func (*VaultStorage) DecryptedDataPath ¶
func (s *VaultStorage) DecryptedDataPath() string
DecryptedDataPath method return the temp path to decrypt secrets to
func (*VaultStorage) Edit ¶
func (s *VaultStorage) Edit(secretPath string) error
Edit opens a workspace KV file in the user's $EDITOR for modifications and applies those modifications
func (*VaultStorage) EncryptedDataPath ¶
func (s *VaultStorage) EncryptedDataPath() string
EncryptedDataPath returns the base path of VaultStorage
Click to show internal directories.
Click to hide internal directories.