Documentation ¶
Index ¶
- Constants
- type IVPusher
- type Migrator
- type Pusher
- type Store
- func (s *Store) AddCommit(_ context.Context, commit *store.Commit)
- func (s *Store) Close(ctx context.Context) error
- func (s *Store) EncryptedPull(ctx context.Context, buf store.DocumentBuffer, setters ...store.PullOption) (*store.PullDescription, error)
- func (s *Store) FlushCommits(ctx context.Context) error
- func (s *Store) GetIVManager() dcrypto.IVManager
- func (s *Store) Pull(ctx context.Context, buf store.DocumentBuffer, setters ...store.PullOption) (*store.PullDescription, error)
- func (s *Store) Revert(ctx context.Context, sha string) error
Constants ¶
View Source
const ( // DefaultBucketName is the default name for a bucket in MongoDB. DefaultBucketName = "diskhop" DefaultDBName = "diskhop" DefaultNameCollectionName = "name" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IVPusher ¶
type IVPusher struct {
// contains filtered or unexported fields
}
IVPusher is a struct that will push an initialization vector to the store.
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a store.EncPusher that migrates files from one MongoDB gridfs bucket to another.
type Store ¶
type Store struct { Pusher // contains filtered or unexported fields }
Store is a MongoDB database for pushing and pulling data from local disk.
func (*Store) EncryptedPull ¶
func (s *Store) EncryptedPull( ctx context.Context, buf store.DocumentBuffer, setters ...store.PullOption, ) (*store.PullDescription, error)
PullEnc will retrieve a slice of encrypted documents from a remote host.
func (*Store) GetIVManager ¶
GetIVManager will return an IVManager.
func (*Store) Pull ¶
func (s *Store) Pull(ctx context.Context, buf store.DocumentBuffer, setters ...store.PullOption) (*store.PullDescription, error)
Pull will retrieve a slice of documents from a remote host.
Click to show internal directories.
Click to hide internal directories.