Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocationStore ¶
type AllocationStore interface { // List retrieves allocations by the digest of the data allocated. List(context.Context, multihash.Multihash) ([]allocation.Allocation, error) // Put adds or replaces allocation data in the store. Put(context.Context, allocation.Allocation) error }
AllocationStore tracks the items that have been, or will soon be stored on the storage node.
type DsAllocationStore ¶
type DsAllocationStore struct {
// contains filtered or unexported fields
}
func NewDsAllocationStore ¶
func NewDsAllocationStore(ds datastore.Datastore) (*DsAllocationStore, error)
NewDsAllocationStore creates an AllocationStore backed by an IPFS datastore.
func (*DsAllocationStore) List ¶
func (d *DsAllocationStore) List(ctx context.Context, digest multihash.Multihash) ([]allocation.Allocation, error)
func (*DsAllocationStore) Put ¶
func (d *DsAllocationStore) Put(ctx context.Context, alloc allocation.Allocation) error
Click to show internal directories.
Click to hide internal directories.