2020-11-19 13:53:45 +00:00
|
|
|
package shard
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobstor"
|
|
|
|
meta "github.com/nspcc-dev/neofs-node/pkg/local_object_storage/metabase"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Info groups the information about Shard.
|
|
|
|
type Info struct {
|
|
|
|
// Identifier of the shard.
|
|
|
|
ID *ID
|
|
|
|
|
|
|
|
// Information about the metabase.
|
|
|
|
MetaBaseInfo meta.Info
|
|
|
|
|
|
|
|
// Information about the BLOB storage.
|
|
|
|
BlobStorInfo blobstor.Info
|
2020-11-19 15:04:09 +00:00
|
|
|
|
2020-12-01 09:26:19 +00:00
|
|
|
// Information about the Write Cache.
|
|
|
|
WriteCacheInfo blobstor.Info
|
|
|
|
|
2020-11-19 15:04:09 +00:00
|
|
|
// Weight parameters of the shard.
|
|
|
|
WeightValues WeightValues
|
2020-11-19 13:53:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// DumpInfo returns information about the Shard.
|
|
|
|
func (s *Shard) DumpInfo() Info {
|
|
|
|
return s.info
|
|
|
|
}
|