tombstone

package
v2.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tombstone_grpc_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Tombstone

type Tombstone struct {

	// Last NeoFS epoch number of the tombstone lifetime. It's set by the tombstone
	// creator depending on the current NeoFS network settings. A tombstone object
	// must have the same expiration epoch value in `__NEOFS__EXPIRATION_EPOCH`
	// attribute. Otherwise, the tombstone will be rejected by a storage node.
	ExpirationEpoch uint64 `protobuf:"varint,1,opt,name=expiration_epoch,json=expirationEpoch,proto3" json:"expiration_epoch,omitempty"`
	// 16 byte UUID used to identify the split object hierarchy parts. Must be
	// unique inside a container. All objects participating in the split must
	// have the same `split_id` value.
	SplitId []byte `protobuf:"bytes,2,opt,name=split_id,json=splitID,proto3" json:"split_id,omitempty"`
	// List of objects to be deleted.
	Members []*grpc.ObjectID `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

Tombstone keeps record of deleted objects for a few epochs until they are purged from the NeoFS network.

func (*Tombstone) Descriptor deprecated

func (*Tombstone) Descriptor() ([]byte, []int)

Deprecated: Use Tombstone.ProtoReflect.Descriptor instead.

func (*Tombstone) GetExpirationEpoch

func (x *Tombstone) GetExpirationEpoch() uint64

func (*Tombstone) GetMembers

func (x *Tombstone) GetMembers() []*grpc.ObjectID

func (*Tombstone) GetSplitId

func (x *Tombstone) GetSplitId() []byte

func (*Tombstone) ProtoMessage

func (*Tombstone) ProtoMessage()

func (*Tombstone) ProtoReflect

func (x *Tombstone) ProtoReflect() protoreflect.Message

func (*Tombstone) Reset

func (x *Tombstone) Reset()

func (*Tombstone) SetExpirationEpoch

func (x *Tombstone) SetExpirationEpoch(v uint64)

SetExpirationEpoch sets number of tombstone expiration epoch.

func (*Tombstone) SetMembers

func (x *Tombstone) SetMembers(v []*refs.ObjectID)

SetMembers sets list of objects to be deleted.

func (*Tombstone) SetSplitId

func (x *Tombstone) SetSplitId(v []byte)

SetSplitId sets identifier of split object hierarchy.

func (*Tombstone) String

func (x *Tombstone) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL