Documentation ¶
Overview ¶
Package linkstore adds IPLD format architecture storage support to a prime architecture link system so that it can be used more easily, eg, with carfiles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageLinkSystem ¶
type StorageLinkSystem struct { linking.LinkSystem ReadStore carv1.ReadStore WriteStore carv1.Store }
StorageLinkSystem is a LinkSystem with format architecture storage duct taped to it so, eg, it can be written to carfiles.
func NewStorageLinkSystemWithNewStorage ¶
func NewStorageLinkSystemWithNewStorage(ls linking.LinkSystem) *StorageLinkSystem
NewStorageLinkSystemWithNewStorage creates a new StorageLinkSystem with new storage.
func NewStorageLinkSystemWithNoStorage ¶
func NewStorageLinkSystemWithNoStorage(ls linking.LinkSystem) *StorageLinkSystem
NewStorageLinkSystemWithNoStorage creates a new storage link system with no attached storage.
func NewStorageLinkSystemWithStorage ¶
func NewStorageLinkSystemWithStorage(ls linking.LinkSystem, store storage.Memory) *StorageLinkSystem
NewStorageLinkSystemWithStorage creates a new StorageLinkSystem with supplied storage.
func (*StorageLinkSystem) ConfigureStorage ¶
func (slinks *StorageLinkSystem) ConfigureStorage(store storage.Memory) *StorageLinkSystem
ConfigureStorage configures link system storage for prime architecture nodes and sets up the duct tape storage for format architecture nodes.