storagegroup

package
v2.0.0-...-d29d931 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StorageGroupToGRPCMessage

func StorageGroupToGRPCMessage(s *StorageGroup) *sg.StorageGroup

StorageGroupToGRPCMessage converts unified proto structure into grpc structure.

Types

type StorageGroup

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

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

func StorageGroupFromGRPCMessage

func StorageGroupFromGRPCMessage(m *sg.StorageGroup) *StorageGroup

StorageGroupFromGRPCMessage converts grpc structure into unified proto structure.

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) 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