2022-11-12 12:59:49 +00:00
|
|
|
package object
|
|
|
|
|
|
|
|
import (
|
2023-12-11 13:50:44 +00:00
|
|
|
"fmt"
|
|
|
|
|
2023-07-06 12:36:41 +00:00
|
|
|
objectSDK "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object"
|
2023-03-07 13:38:26 +00:00
|
|
|
oid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/id"
|
2022-11-12 12:59:49 +00:00
|
|
|
)
|
|
|
|
|
2024-05-13 13:50:21 +00:00
|
|
|
type ECInfo struct {
|
|
|
|
ParentID oid.ID
|
|
|
|
Index uint32
|
|
|
|
Total uint32
|
|
|
|
}
|
|
|
|
|
|
|
|
// Info groups object address with its FrostFS
|
|
|
|
// object info.
|
|
|
|
type Info struct {
|
2023-12-11 13:50:44 +00:00
|
|
|
Address oid.Address
|
|
|
|
Type objectSDK.Type
|
|
|
|
IsLinkingObject bool
|
2024-05-13 13:50:21 +00:00
|
|
|
ECInfo *ECInfo
|
2023-12-11 13:50:44 +00:00
|
|
|
}
|
|
|
|
|
2024-05-13 13:50:21 +00:00
|
|
|
func (v Info) String() string {
|
2023-12-11 13:50:44 +00:00
|
|
|
return fmt.Sprintf("address: %s, type: %s, is linking: %t", v.Address, v.Type, v.IsLinkingObject)
|
2022-11-12 12:59:49 +00:00
|
|
|
}
|