frostfs-http-gw/internal/data/info.go
Nikita Zinkevich 5e4a68105d
All checks were successful
/ DCO (pull_request) Successful in 2m33s
/ Vulncheck (pull_request) Successful in 2m46s
/ Builds (pull_request) Successful in 1m43s
/ Lint (pull_request) Successful in 2m43s
/ Tests (pull_request) Successful in 1m45s
[#166] Change the check of protocol during get object request
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>
2024-12-09 13:39:01 +03:00

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
}