storagegroup

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_v2_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"`
	// Last NeoFS epoch number of the storage group lifetime
	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 []*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 payed storage guaranties are gathered in `StorageGroups` with additional information used for proof of storage. `StorageGroup` only contains objects from the same container.

func (*StorageGroup) Descriptor deprecated

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

Deprecated: Use StorageGroup.ProtoReflect.Descriptor instead.

func (*StorageGroup) GetExpirationEpoch

func (x *StorageGroup) GetExpirationEpoch() uint64

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

func (m *StorageGroup) SetExpirationEpoch(v uint64)

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

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