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>
23 lines
551 B
Go
23 lines
551 B
Go
package data
|
|
|
|
import (
|
|
cid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container/id"
|
|
)
|
|
|
|
const (
|
|
VersioningUnversioned = "Unversioned"
|
|
VersioningEnabled = "Enabled"
|
|
VersioningSuspended = "Suspended"
|
|
)
|
|
|
|
type BucketInfo struct {
|
|
Name string // container name from system attribute
|
|
Zone string // container zone from system attribute
|
|
CID cid.ID
|
|
HomomorphicHashDisabled bool
|
|
}
|
|
|
|
// BucketSettings stores settings such as versioning.
|
|
type BucketSettings struct {
|
|
Versioning string
|
|
}
|