qri-io / cafs Goto Github PK
View Code? Open in Web Editor NEWcontent addressed file store interface
License: MIT License
content addressed file store interface
License: MIT License
cafs is now a subpackage of qri-io/qfs. We should first make sure qfs includes all the same CI checks as this repo, update this repo's readme to point viewers to cafs, and archive this repo.
casters need to be able to add a "directory" of byte slices. Maybe:
type Node struct {
Name string
Data []byte
Children []*Node
}
type castore interface {
...
AddTree(node *Node) error
}
from there we could add helper methods that convert things like .zip
archives & unix directories into a tree of nodes.
In the dataset package, we added VisConfig as a field to Dataset. When we try to write to the filestore, however, the adder only allows for 8 channels. We need to increase this to 9 in order to allow all the Dataset fields to be written to the filestore.
This needs to be changed in the cafs/ipfs and cafs/memfs packages
This causes annoying behavior: no error, but hanging! Maybe we need a function that returns whether all the channels are full? Not enough knowledge to make this function, also it's 1:30am, lol
Either our implementation of the Adder interface or the way we're consuming an adder isn't behaving properly. the size of the buffer theoretically shouldn't matter But clearly the buffer needs to be large enough to accommodate all files before reading starts, which is not how this code is supposed to behave. Or at least it should be possible to write code that doesn't behave this way.
Let's write a test that adds more files to adder than the size of the adder channel buffer and make it not hang forever.
I'm leaving this as a stub for later and will add steps to complete in the future. If you'd like to work on this issue and would like more guidance, comment here & I'd be happy to add details!
castore.Put(data []byte) error
-> castore.Put(data []byte, pin bool) error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.