2020-10-21 11:49:02 +00:00
|
|
|
package replicator
|
|
|
|
|
|
|
|
import (
|
2024-10-01 12:27:06 +00:00
|
|
|
containerSDK "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container"
|
2023-03-07 13:38:26 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/netmap"
|
|
|
|
objectSDK "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object"
|
|
|
|
oid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/id"
|
2020-10-21 11:49:02 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Task represents group of Replicator task parameters.
|
|
|
|
type Task struct {
|
2023-06-29 09:13:01 +00:00
|
|
|
// NumCopies is the number of copies to replicate.
|
|
|
|
NumCopies uint32
|
|
|
|
// Addr is the address of the local object.
|
|
|
|
Addr oid.Address
|
|
|
|
// Obj is the object to avoid fetching it from the local storage.
|
|
|
|
Obj *objectSDK.Object
|
|
|
|
// Nodes is a list of potential object holders.
|
|
|
|
Nodes []netmap.NodeInfo
|
2024-10-01 12:27:06 +00:00
|
|
|
|
|
|
|
Container containerSDK.Container
|
2020-10-21 11:49:02 +00:00
|
|
|
}
|