storagegroup

package
v2.0.0-...-196241c Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_storagegroup_grpc_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type StorageGroup

type StorageGroup struct {

	// Total size of the payloads of objects in the storage group
	ValidationDataSize uint64 `protobuf:"varint,1,opt,name=validation_data_size,json=validationDataSize,proto3" json:"validation_data_size,omitempty"`
	// Homomorphic hash from the concatenation of the payloads of the storage
	// group members. The order of concatenation is the same as the order of the
	// members in the `members` field.
	ValidationHash *grpc.Checksum `protobuf:"bytes,2,opt,name=validation_hash,json=validationHash,proto3" json:"validation_hash,omitempty"`
	// DEPRECATED. Last NeoFS epoch number of the storage group lifetime
	//
	// Deprecated: Do not use.
	ExpirationEpoch uint64 `protobuf:"varint,3,opt,name=expiration_epoch,json=expirationEpoch,proto3" json:"expiration_epoch,omitempty"`
	// Strictly ordered list of storage group member objects. Members MUST be unique
	Members []*grpc.ObjectID `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

StorageGroup keeps verification information for Data Audit sessions. Objects that require paid storage guarantees are gathered in `StorageGroups` with additional information used for the proof of storage. `StorageGroup` only contains objects from the same container.

Being an object payload, StorageGroup may have expiration Epoch set with `__NEOFS__EXPIRATION_EPOCH` well-known attribute. When expired, StorageGroup will be ignored by InnerRing nodes during Data Audit cycles and will be deleted by Storage Nodes.

func (*StorageGroup) Descriptor deprecated

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

Deprecated: Use StorageGroup.ProtoReflect.Descriptor instead.

func (*StorageGroup) GetExpirationEpoch deprecated

func (x *StorageGroup) GetExpirationEpoch() uint64

Deprecated: Do not use.

func (*StorageGroup) GetMembers

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

func (*StorageGroup) GetValidationDataSize

func (x *StorageGroup) GetValidationDataSize() uint64

func (*StorageGroup) GetValidationHash

func (x *StorageGroup) GetValidationHash() *grpc.Checksum

func (*StorageGroup) ProtoMessage

func (*StorageGroup) ProtoMessage()

func (*StorageGroup) ProtoReflect

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

func (*StorageGroup) Reset

func (x *StorageGroup) Reset()

func (*StorageGroup) SetExpirationEpoch deprecated

func (m *StorageGroup) SetExpirationEpoch(v uint64)

SetExpirationEpoch sets number of the last epoch of the storage group lifetime.

Deprecated: do not use, `expiration_epoch` field is deprecated in protocol.

func (*StorageGroup) SetMembers

func (m *StorageGroup) SetMembers(v []*refs.ObjectID)

SetMembers sets list of the identifiers of the storage group members.

func (*StorageGroup) SetValidationDataSize

func (m *StorageGroup) SetValidationDataSize(v uint64)

SetValidationDataSize sets the total size of the payloads of the storage group.

func (*StorageGroup) SetValidationHash

func (m *StorageGroup) SetValidationHash(v *refs.Checksum)

SetValidationHash sets total homomorphic hash of the storage group payloads.

func (*StorageGroup) String

func (x *StorageGroup) String() string

Jump to

Keyboard shortcuts

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