frostfs-node/pkg/local_object_storage/shard/info.go
Leonard Lyubich 4e8cc51e7b [#189] shard: Extend Info with WeightValues
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-12-11 17:19:37 +03:00

26 lines
567 B
Go

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
// Weight parameters of the shard.
WeightValues WeightValues
}
// DumpInfo returns information about the Shard.
func (s *Shard) DumpInfo() Info {
return s.info
}