Documentation ¶
Index ¶
- func Create(database fdb.Database, name string, blockSize uint32, size uint64) error
- func CreateBySubspace(database fdb.Database, subspace directory.DirectorySubspace, blockSize uint32, ...) error
- func Exists(database fdb.Database, name string) (bool, error)
- type ArrayDescription
- type FDBArray
- func (array FDBArray) BlockSize() uint32
- func (array FDBArray) Clear()
- func (array FDBArray) Delete()
- func (array FDBArray) Read(read []byte, offset uint64) error
- func (array FDBArray) Size() uint64
- func (array FDBArray) Usage() (uint64, error)
- func (array FDBArray) Write(write []byte, offset uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBySubspace ¶
func CreateBySubspace(database fdb.Database, subspace directory.DirectorySubspace, blockSize uint32, size uint64) error
Create a new array database - instance of the database name - name of the array blockSize - size of the block in bytes size - size of the volume in bytes
Types ¶
type ArrayDescription ¶
ArrayDescription is a short summary about the array
type FDBArray ¶
type FDBArray struct {
// contains filtered or unexported fields
}
FDBArray holds metadata and directories of the respective array
func OpenByName ¶
func OpenBySubspace ¶
func OpenBySubspace(database fdb.Database, subspace directory.DirectorySubspace, blocksPerTransaction uint32) (FDBArray, error)
Open and initialize an already created array. Calling this function will disconnect any other connected clients.
Click to show internal directories.
Click to hide internal directories.