Skip to content

Commit

Permalink
object: Export constant key to the expiration attribute (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Aug 30, 2023
2 parents 55f10d6 + f164bc9 commit 4305d6c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions object/attribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ import (
"github.com/nspcc-dev/neofs-api-go/v2/object"
)

// Various system attributes.
const (
// AttributeExpirationEpoch is a key to an object attribute that determines
// after what epoch the object becomes expired. Objects that do not have this
// attribute never expire.
//
// Reaction of NeoFS system components to the objects' 'expired' property may
// vary. For example, in the basic scenario, expired objects are auto-deleted
// from the storage. Detailed behavior can be found in the NeoFS Specification.
//
// Note that the value determines exactly the last epoch of the object's
// relevance: for example, with the value N, the object is relevant in epoch N
// and expired in any epoch starting from N+1.
AttributeExpirationEpoch = object.SysAttributeExpEpoch
)

// Attribute represents v2-compatible object attribute.
type Attribute object.Attribute

Expand Down

0 comments on commit 4305d6c

Please sign in to comment.