github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/storagegroup/grpc/types.go (about)

     1  package storagegroup
     2  
     3  import (
     4  	refs "github.com/TrueCloudLab/frostfs-api-go/v2/refs/grpc"
     5  )
     6  
     7  // SetValidationDataSize sets the total size of the payloads of the storage group.
     8  func (m *StorageGroup) SetValidationDataSize(v uint64) {
     9  	m.ValidationDataSize = v
    10  }
    11  
    12  // SetValidationHash sets total homomorphic hash of the storage group payloads.
    13  func (m *StorageGroup) SetValidationHash(v *refs.Checksum) {
    14  	m.ValidationHash = v
    15  }
    16  
    17  // SetExpirationEpoch sets number of the last epoch of the storage group lifetime.
    18  //
    19  // Deprecated: do not use, `expiration_epoch` field is deprecated in protocol.
    20  func (m *StorageGroup) SetExpirationEpoch(v uint64) {
    21  	m.ExpirationEpoch = v
    22  }
    23  
    24  // SetMembers sets list of the identifiers of the storage group members.
    25  func (m *StorageGroup) SetMembers(v []*refs.ObjectID) {
    26  	m.Members = v
    27  }