Documentation ¶
Overview ¶
Package traversal provides abstraction and implementation needed to traverse all chunks below a given root hash. It tries to parse all manifests and collections in its attempt to log all chunk addresses on the way.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPyramid = errors.New("traversal: invalid pyramid")
Functions ¶
This section is empty.
Types ¶
type Traverser ¶ added in v1.1.0
type Traverser interface { // Traverse iterates through each address related to the supplied one, if possible. Traverse(context.Context, boson.Address, boson.AddressIterFunc) error // GetPyramid returns pyramid hash and its contains data. GetPyramid(context.Context, boson.Address) (map[string][]byte, error) // GetChunkHashes returns all stored data chunk related to the given reference, if possible. GetChunkHashes(context.Context, boson.Address, map[string][]byte) ([][][]byte, [][]byte, error) }
Traverser represents service which traverse through address dependent chunks.
Click to show internal directories.
Click to hide internal directories.