storagegroup

package
v1.25.1-0...-2fdc35d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageGroup

type StorageGroup struct {
	// contains filtered or unexported fields
}

StorageGroup is a unified structure of StorageGroup message from proto definition.

func (*StorageGroup) FromGRPCMessage

func (s *StorageGroup) FromGRPCMessage(m neofsgrpc.Message) error

func (*StorageGroup) GetExpirationEpoch

func (s *StorageGroup) GetExpirationEpoch() uint64

GetExpirationEpoch of unified storage group structure.

func (*StorageGroup) GetMembers

func (s *StorageGroup) GetMembers() []*refs.ObjectID

GetMembers of unified storage group structure. Members are objects of storage group.

func (*StorageGroup) GetValidationDataSize

func (s *StorageGroup) GetValidationDataSize() uint64

GetValidationDataSize of unified storage group structure.

func (*StorageGroup) GetValidationHash

func (s *StorageGroup) GetValidationHash() *refs.Checksum

GetValidationHash of unified storage group structure.

func (*StorageGroup) MarshalJSON

func (s *StorageGroup) MarshalJSON() ([]byte, error)

func (*StorageGroup) SetExpirationEpoch

func (s *StorageGroup) SetExpirationEpoch(v uint64)

SetExpirationEpoch into unified storage group structure.

func (*StorageGroup) SetMembers

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

SetMembers into unified storage group structure. Members are objects of storage group.

func (*StorageGroup) SetValidationDataSize

func (s *StorageGroup) SetValidationDataSize(v uint64)

SetValidationDataSize into unified storage group structure.

func (*StorageGroup) SetValidationHash

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

SetValidationHash into unified storage group structure.

func (*StorageGroup) StableMarshal

func (s *StorageGroup) StableMarshal(buf []byte) ([]byte, error)

StableMarshal marshals unified storage group structure in a protobuf compatible way without field order shuffle.

func (*StorageGroup) StableSize

func (s *StorageGroup) StableSize() (size int)

StableSize of storage group structure marshalled by StableMarshal function.

func (*StorageGroup) ToGRPCMessage

func (s *StorageGroup) ToGRPCMessage() neofsgrpc.Message

func (*StorageGroup) Unmarshal

func (s *StorageGroup) Unmarshal(data []byte) error

func (*StorageGroup) UnmarshalJSON

func (s *StorageGroup) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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