storagegroup

package
v2.0.0-...-15632a0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

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 grpc.Message) error

func (*StorageGroup) GetExpirationEpoch deprecated

func (s *StorageGroup) GetExpirationEpoch() uint64

GetExpirationEpoch of unified storage group structure.

Deprecated: Do not use.

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 deprecated

func (s *StorageGroup) SetExpirationEpoch(v uint64)

SetExpirationEpoch into unified storage group structure.

Deprecated: Do not use.

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

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() grpc.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