Add tree service's GetBucketSettings to use them to check for protocol to use (S3 or native). Also add mock implementations for this and GetLatestVersion methods. Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
20 lines
423 B
Go
20 lines
423 B
Go
package data
|
|
|
|
import (
|
|
oid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/id"
|
|
)
|
|
|
|
// NodeVersion represent node from tree service.
|
|
type NodeVersion struct {
|
|
BaseNodeVersion
|
|
IsUnversioned bool
|
|
}
|
|
|
|
// BaseNodeVersion is minimal node info from tree service.
|
|
// Basically used for "system" object.
|
|
type BaseNodeVersion struct {
|
|
ID uint64
|
|
OID oid.ID
|
|
FilePath string
|
|
IsDeleteMarker bool
|
|
}
|