28 lines
710 B
Go
28 lines
710 B
Go
|
package data
|
||
|
|
||
|
import (
|
||
|
cid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container/id"
|
||
|
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
||
|
)
|
||
|
|
||
|
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
|
||
|
LockConfiguration *ObjectLockConfiguration
|
||
|
CannedACL string
|
||
|
OwnerKey *keys.PublicKey
|
||
|
}
|