Documentation ¶
Index ¶
- type StorageGroup
- func (s *StorageGroup) FromGRPCMessage(m neofsgrpc.Message) error
- func (s *StorageGroup) GetExpirationEpoch() uint64
- func (s *StorageGroup) GetMembers() []*refs.ObjectID
- func (s *StorageGroup) GetValidationDataSize() uint64
- func (s *StorageGroup) GetValidationHash() *refs.Checksum
- func (s *StorageGroup) MarshalJSON() ([]byte, error)
- func (s *StorageGroup) SetExpirationEpoch(v uint64)
- func (s *StorageGroup) SetMembers(v []*refs.ObjectID)
- func (s *StorageGroup) SetValidationDataSize(v uint64)
- func (s *StorageGroup) SetValidationHash(v *refs.Checksum)
- func (s *StorageGroup) StableMarshal(buf []byte) ([]byte, error)
- func (s *StorageGroup) StableSize() (size int)
- func (s *StorageGroup) ToGRPCMessage() neofsgrpc.Message
- func (s *StorageGroup) Unmarshal(data []byte) error
- func (s *StorageGroup) UnmarshalJSON(data []byte) error
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