github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/tombstone/types.go (about) 1 package tombstone 2 3 import ( 4 "github.com/TrueCloudLab/frostfs-api-go/v2/refs" 5 ) 6 7 // Tombstone is a unified structure of Tombstone 8 // message from proto definition. 9 type Tombstone struct { 10 exp uint64 11 12 splitID []byte 13 14 members []refs.ObjectID 15 } 16 17 // GetExpirationEpoch returns number of tombstone expiration epoch. 18 func (s *Tombstone) GetExpirationEpoch() uint64 { 19 if s != nil { 20 return s.exp 21 } 22 23 return 0 24 } 25 26 // SetExpirationEpoch sets number of tombstone expiration epoch. 27 func (s *Tombstone) SetExpirationEpoch(v uint64) { 28 s.exp = v 29 } 30 31 // GetSplitID returns identifier of split object hierarchy. 32 func (s *Tombstone) GetSplitID() []byte { 33 if s != nil { 34 return s.splitID 35 } 36 37 return nil 38 } 39 40 // SetSplitID sets identifier of split object hierarchy. 41 func (s *Tombstone) SetSplitID(v []byte) { 42 s.splitID = v 43 } 44 45 // GetMembers returns list of objects to be deleted. 46 func (s *Tombstone) GetMembers() []refs.ObjectID { 47 if s != nil { 48 return s.members 49 } 50 51 return nil 52 } 53 54 // SetMembers sets list of objects to be deleted. 55 func (s *Tombstone) SetMembers(v []refs.ObjectID) { 56 s.members = v 57 }