2022-07-07 12:03:45 +00:00
|
|
|
package common
|
|
|
|
|
2023-03-07 13:38:26 +00:00
|
|
|
import oid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/id"
|
2022-07-07 12:03:45 +00:00
|
|
|
|
|
|
|
// IterationElement represents a unit of elements through which Iterate operation passes.
|
|
|
|
type IterationElement struct {
|
|
|
|
ObjectData []byte
|
|
|
|
Address oid.Address
|
|
|
|
StorageID []byte
|
|
|
|
}
|
|
|
|
|
|
|
|
// IterationHandler is a generic processor of IterationElement.
|
|
|
|
type IterationHandler func(IterationElement) error
|
|
|
|
|
|
|
|
// IteratePrm groups the parameters of Iterate operation.
|
|
|
|
type IteratePrm struct {
|
|
|
|
Handler IterationHandler
|
|
|
|
IgnoreErrors bool
|
|
|
|
}
|
|
|
|
|
|
|
|
// IterateRes groups the resulting values of Iterate operation.
|
|
|
|
type IterateRes struct{}
|