Documentation ¶
Index ¶
- Constants
- Variables
- type FSTree
- func (t *FSTree) Delete(addr *objectSDK.Address) error
- func (t *FSTree) Exists(addr *objectSDK.Address) (string, error)
- func (t *FSTree) Get(addr *objectSDK.Address) ([]byte, error)
- func (t *FSTree) Iterate(f func(addr *objectSDK.Address, data []byte) error) error
- func (t *FSTree) NumberOfObjects() (uint64, error)
- func (t *FSTree) Put(addr *objectSDK.Address, data []byte) error
- type Info
Constants ¶
View Source
const ( // DirNameLen is how many bytes is used to group keys into directories. DirNameLen = 1 // in bytes // MaxDepth is maximum depth of nested directories. MaxDepth = (sha256.Size - 1) / DirNameLen )
Variables ¶
View Source
var ErrFileNotFound = errors.New("file not found")
ErrFileNotFound is returned when file is missing.
Functions ¶
This section is empty.
Types ¶
type FSTree ¶
FSTree represents object storage as filesystem tree.
func (*FSTree) Exists ¶
Exists returns path to file with object contents if it exists in storage and an error otherwise.
func (*FSTree) NumberOfObjects ¶ added in v0.26.1
NumberOfObjects walks the file tree rooted at FSTree's root and returns number of stored objects.
Click to show internal directories.
Click to hide internal directories.