Documentation
¶
Index ¶
- func ReadEncryptedZip(zipPath string) (map[string][]byte, error)
- func WriteEncryptedZip(outPath string, files map[string][]byte) (retErr error)
- func WriteKeyFile(data []byte, outPath string) error
- type FileIO
- func (f *FileIO) CheckMetaFile() bool
- func (f *FileIO) EnsureVaultDir() error
- func (f *FileIO) IsEmpty() (bool, error)
- func (f *FileIO) PrintPaths()
- func (f *FileIO) PurgeVault() error
- func (f *FileIO) ReadAll() ([]byte, []byte, error)
- func (f *FileIO) ReadMeta() ([]byte, []byte, error)
- func (f *FileIO) ReadVault() ([]byte, error)
- func (f *FileIO) WriteMeta(meta model.Meta) error
- func (f *FileIO) WriteSecret(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadEncryptedZip ¶ added in v0.1.2
function to unzip and read encrypted folder
func WriteEncryptedZip ¶ added in v0.1.2
func WriteKeyFile ¶ added in v0.1.2
Types ¶
type FileIO ¶
func (*FileIO) CheckMetaFile ¶
function to check if meta file exists
func (*FileIO) EnsureVaultDir ¶
function to make sure dir exists
func (*FileIO) PurgeVault ¶
function to purge all files and directory
func (*FileIO) WriteSecret ¶
function to write to vault file
Click to show internal directories.
Click to hide internal directories.