Documentation ¶
Overview ¶
Package keyvalue implements DVID support for data using generic key/value.
Index ¶
- Constants
- type Data
- func (d *Data) DoHTTP(uuid dvid.UUID, w http.ResponseWriter, r *http.Request) error
- func (d *Data) DoRPC(request datastore.Request, reply *datastore.Response) error
- func (d *Data) FUSEDir(vinfo storage.VersionInfo) storage.FUSEDirer
- func (d *Data) Get(request datastore.Request, reply *datastore.Response) error
- func (d *Data) GetData(uuid dvid.UUID, keyStr string) (value []byte, found bool, err error)
- func (d *Data) JSONString() (jsonStr string, err error)
- func (d *Data) Mount(request datastore.Request, reply *datastore.Response) error
- func (d *Data) Put(request datastore.Request, reply *datastore.Response) error
- func (d *Data) PutData(uuid dvid.UUID, keyStr string, value []byte) error
- type Datatype
- type Dir
- type File
- func (f File) Attr() fuse.Attr
- func (f File) Read(req *fuse.ReadRequest, resp *fuse.ReadResponse, intr fs.Intr) fuse.Error
- func (f File) ReadAll(intr fs.Intr) ([]byte, fuse.Error)
- func (f File) Write(req *fuse.WriteRequest, resp *fuse.WriteResponse, intr fs.Intr) fuse.Error
- func (f File) WriteAll(b []byte, intr fs.Intr) fuse.Error
Constants ¶
View Source
const ( Version = "0.1" RepoUrl = "github.com/janelia-flyem/dvid/datatype/keyvalue" )
View Source
const HelpMessage = `` /* 3612-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
Data embeds the datastore's Data and extends it with keyvalue properties (none for now).
func (*Data) JSONString ¶
JSONString returns the JSON for this Data's configuration
type Datatype ¶
Datatype embeds the datastore's Datatype to create a unique type for keyvalue functions.
func NewDatatype ¶
func NewDatatype() (dtype *Datatype)
NewDatatype returns a pointer to a new keyvalue Datatype with default values set.
func (*Datatype) NewDataService ¶
func (dtype *Datatype) NewDataService(id *datastore.DataID, c dvid.Config) (datastore.DataService, error)
NewData returns a pointer to new keyvalue data with default values.
type Dir ¶
type Dir struct { *Data storage.VersionInfo }
Dir implements both Node and Handle for this data directory Each directory is specific to one data in a dataset.
type File ¶
type File struct { *Dir // contains filtered or unexported fields }
File implements both Node and Handle for a keyvalue entry.
func (File) Read ¶
func (f File) Read(req *fuse.ReadRequest, resp *fuse.ReadResponse, intr fs.Intr) fuse.Error
Click to show internal directories.
Click to hide internal directories.