2020-08-13 12:43:47 +00:00
|
|
|
package storagegroup
|
2020-08-12 19:06:10 +00:00
|
|
|
|
|
|
|
import (
|
2020-08-14 16:00:16 +00:00
|
|
|
refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
|
2020-08-12 19:06:10 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// SetValidationDataSize sets the total size of the payloads of the storage group.
|
|
|
|
func (m *StorageGroup) SetValidationDataSize(v uint64) {
|
|
|
|
if m != nil {
|
|
|
|
m.ValidationDataSize = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetValidationHash sets total homomorphic hash of the storage group payloads.
|
2020-08-20 08:04:16 +00:00
|
|
|
func (m *StorageGroup) SetValidationHash(v *refs.Checksum) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.ValidationHash = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetExpirationEpoch sets number of the last epoch of the storage group lifetime.
|
|
|
|
func (m *StorageGroup) SetExpirationEpoch(v uint64) {
|
|
|
|
if m != nil {
|
|
|
|
m.ExpirationEpoch = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMembers sets list of the identifiers of the storage group members.
|
|
|
|
func (m *StorageGroup) SetMembers(v []*refs.ObjectID) {
|
|
|
|
if m != nil {
|
|
|
|
m.Members = v
|
|
|
|
}
|
|
|
|
}
|