allocationstore

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2024 License: Apache-2.0, MIT Imports: 8 Imported by: 0

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 (*DsAllocationStore) Put

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL