Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetSGPrm ¶
type GetSGPrm struct { Context context.Context OID oid.ID CID cid.ID NetMap netmap.NetMap Container [][]netmap.NodeInfo }
GetSGPrm groups parameter of GetSG operation.
type SGSource ¶
type SGSource interface { // ListSG must list storage group objects in the container. Formed list must be written to destination. // // Must return any error encountered which did not allow to form the list. ListSG(*SearchSGDst, SearchSGPrm) error // GetSG must return storage group object for the provided CID, OID, // container and netmap state. GetSG(GetSGPrm) (*storagegroup.StorageGroup, error) }
SGSource is a storage group information source interface.
type SearchSGDst ¶
SearchSGDst groups the target values which Processor expects from SG searching to process.
type SearchSGPrm ¶
SearchSGPrm groups the parameters which are formed by Processor to search the storage group objects.
type StorageGroup ¶
type StorageGroup struct {
// contains filtered or unexported fields
}
StorageGroup combines storage group object ID and its structure.
func (StorageGroup) ID ¶
func (s StorageGroup) ID() oid.ID
ID returns object ID of the storage group.
func (*StorageGroup) SetID ¶
func (s *StorageGroup) SetID(id oid.ID)
SetID sets an object ID of the storage group.
func (*StorageGroup) SetStorageGroup ¶
func (s *StorageGroup) SetStorageGroup(sg storagegroup.StorageGroup)
SetStorageGroup sets a storage group descriptor.
func (StorageGroup) StorageGroup ¶
func (s StorageGroup) StorageGroup() storagegroup.StorageGroup
StorageGroup returns the storage group descriptor.
Click to show internal directories.
Click to hide internal directories.