Documentation ¶
Overview ¶
Package backend handles overall persistence
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptStore ¶
type CryptStore struct {
// contains filtered or unexported fields
}
CryptStore internally holds all persistence state dependencies
func OpenCryptStore ¶
func OpenCryptStore(storeLocation string) (*CryptStore, error)
OpenCryptStore initializes and opens the persistence file
func (*CryptStore) GetStorageContainer ¶
func (cs *CryptStore) GetStorageContainer() (*StorageContainer, error)
GetStorageContainer returns the entire storage container
func (*CryptStore) PersistStorageContainer ¶
func (cs *CryptStore) PersistStorageContainer(s *StorageContainer) error
PersistStorageContainer persists the entire storage container
type CryptStoreInterface ¶
type CryptStoreInterface interface { GetStorageContainer() (*StorageContainer, error) PersistStorageContainer(s *StorageContainer) error }
CryptStoreInterface defines the persistence interface exposed to other packages
type StorageContainer ¶
StorageContainer is the top-level struct for persistence
Click to show internal directories.
Click to hide internal directories.