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
|
|
|
)
|
|
|
|
|
2023-02-05 15:59:38 +00:00
|
|
|
// AddressWithType groups object address with its FrostFS
|
2022-11-12 12:59:49 +00:00
|
|
|
// object type.
|
|
|
|
type AddressWithType struct {
|
2023-12-11 13:50:44 +00:00
|
|
|
Address oid.Address
|
|
|
|
Type objectSDK.Type
|
|
|
|
IsLinkingObject bool
|
|
|
|
}
|
|
|
|
|
|
|
|
func (v AddressWithType) String() string {
|
|
|
|
return fmt.Sprintf("address: %s, type: %s, is linking: %t", v.Address, v.Type, v.IsLinkingObject)
|
2022-11-12 12:59:49 +00:00
|
|
|
}
|