frostfs-node/pkg/local_object_storage/shard/info.go
Evgenii Stratonikov ed50cf6207 [#1118] services/control: return error counter in ListShards
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-02-03 15:14:27 +03:00

36 lines
829 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"
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/writecache"
)
// Info groups the information about Shard.
type Info struct {
// Identifier of the shard.
ID *ID
// Shard mode.
Mode Mode
// Information about the metabase.
MetaBaseInfo meta.Info
// Information about the BLOB storage.
BlobStorInfo blobstor.Info
// Information about the Write Cache.
WriteCacheInfo writecache.Info
// Weight parameters of the shard.
WeightValues WeightValues
// ErrorCount contains amount of errors occurred in shard operations.
ErrorCount uint32
}
// DumpInfo returns information about the Shard.
func (s *Shard) DumpInfo() Info {
return s.info
}