Documentation
¶
Index ¶
- Constants
- type BadgerStore
- func (s *BadgerStore) Close() error
- func (s *BadgerStore) DeleteObject(bucket, key string) error
- func (s *BadgerStore) DeleteObjectVersion(ctx context.Context, bucket, key, versionID string) error
- func (s *BadgerStore) GetObject(bucket, key string) ([]byte, error)
- func (s *BadgerStore) PurgeDeletedObjects(ctx context.Context, retention time.Duration) error
- func (s *BadgerStore) PutObject(bucket, key string, data []byte) error
- func (s *BadgerStore) SelfHeal(ctx context.Context) error
- func (s *BadgerStore) SoftDeleteObject(ctx context.Context, bucket, key string) error
- func (s *BadgerStore) StoreDAG(ctx context.Context, node *dag.MerkleNode) error
- type PostgresStore
- type QuotaManager
- type Replicator
- type StorageManager
Constants ¶
View Source
const ( HealInterval = 5 * time.Minute MinReplicas = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerStore ¶
type BadgerStore struct {
// contains filtered or unexported fields
}
func NewBadgerStore ¶
func NewBadgerStore(dir string) (*BadgerStore, error)
func (*BadgerStore) Close ¶
func (s *BadgerStore) Close() error
func (*BadgerStore) DeleteObject ¶
func (s *BadgerStore) DeleteObject(bucket, key string) error
func (*BadgerStore) DeleteObjectVersion ¶
func (s *BadgerStore) DeleteObjectVersion(ctx context.Context, bucket, key, versionID string) error
func (*BadgerStore) PurgeDeletedObjects ¶
func (*BadgerStore) PutObject ¶
func (s *BadgerStore) PutObject(bucket, key string, data []byte) error
func (*BadgerStore) SoftDeleteObject ¶
func (s *BadgerStore) SoftDeleteObject(ctx context.Context, bucket, key string) error
func (*BadgerStore) StoreDAG ¶
func (s *BadgerStore) StoreDAG(ctx context.Context, node *dag.MerkleNode) error
type PostgresStore ¶
type PostgresStore struct {
// contains filtered or unexported fields
}
func NewPostgresStore ¶
func NewPostgresStore(connStr string) (*PostgresStore, error)
func (*PostgresStore) Migrate ¶
func (s *PostgresStore) Migrate() error
type QuotaManager ¶
type QuotaManager struct {
// contains filtered or unexported fields
}
func NewQuotaManager ¶
func NewQuotaManager(store *BadgerStore) *QuotaManager
func (*QuotaManager) CheckQuota ¶
type Replicator ¶
type Replicator struct {
// contains filtered or unexported fields
}
func NewReplicator ¶
func NewReplicator(store *BadgerStore, dht *p2p.DHTOperations) *Replicator
func (*Replicator) EnsureReplicas ¶
func (r *Replicator) EnsureReplicas(ctx context.Context) error
type StorageManager ¶
type StorageManager struct {
// contains filtered or unexported fields
}
func NewStorageManager ¶
func NewStorageManager(store *BadgerStore) *StorageManager
Click to show internal directories.
Click to hide internal directories.