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 container's storage group objects not expired at the
// specified current epoch.
//
// Must return any error encountered which did not allow to form the list.
ListSG(context.Context, client.NodeInfo, cid.ID, uint64) ([]oid.ID, 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 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.