forked from TrueCloudLab/frostfs-api-go
[#417] storagegroup: Mark all expiration methods as deprecated
`expiration_epoch` field of `StorageGroup` message has been marked as deprecated in previous NeoFS API protocol's release. Mark all method related to the field as deprecated. Leave and use them for test purposes only. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
cf868188ef
commit
49bf6b24b0
4 changed files with 9 additions and 1 deletions
|
@ -45,6 +45,8 @@ func (s *StorageGroup) SetValidationHash(v *refs.Checksum) {
|
|||
}
|
||||
|
||||
// GetExpirationEpoch of unified storage group structure.
|
||||
//
|
||||
// Deprecated: Do not use.
|
||||
func (s *StorageGroup) GetExpirationEpoch() uint64 {
|
||||
if s != nil {
|
||||
return s.exp
|
||||
|
@ -54,6 +56,8 @@ func (s *StorageGroup) GetExpirationEpoch() uint64 {
|
|||
}
|
||||
|
||||
// SetExpirationEpoch into unified storage group structure.
|
||||
//
|
||||
// Deprecated: Do not use.
|
||||
func (s *StorageGroup) SetExpirationEpoch(v uint64) {
|
||||
s.exp = v
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue