Anton Nikiforov
d2c27341a9
Some checks failed
DCO action / DCO (pull_request) Failing after 3m5s
Tests and linters / Run gofumpt (pull_request) Successful in 3m3s
Tests and linters / Tests (1.23) (pull_request) Successful in 4m45s
Tests and linters / Tests (1.22) (pull_request) Successful in 4m47s
Tests and linters / Lint (pull_request) Successful in 5m3s
Pre-commit hooks / Pre-commit (pull_request) Successful in 5m12s
Vulncheck / Vulncheck (pull_request) Successful in 4m57s
Tests and linters / Staticcheck (pull_request) Successful in 5m39s
Tests and linters / Tests with -race (pull_request) Successful in 6m47s
Build / Build Components (1.23) (pull_request) Successful in 6m58s
Build / Build Components (1.22) (pull_request) Successful in 8m34s
Tests and linters / gopls check (pull_request) Successful in 8m50s
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
41 lines
1.1 KiB
Go
41 lines
1.1 KiB
Go
package shard
|
|
|
|
import (
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/blobstor"
|
|
meta "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/metabase"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/pilorama"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/shard/mode"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-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.Mode
|
|
|
|
// True when evacuation is in progress.
|
|
EvacInProgress bool
|
|
|
|
// Information about the metabase.
|
|
MetaBaseInfo meta.Info
|
|
|
|
// Information about the BLOB storage.
|
|
BlobStorInfo blobstor.Info
|
|
|
|
// Information about the Write Cache.
|
|
WriteCacheInfo writecache.Info
|
|
|
|
// ErrorCount contains amount of errors occurred in shard operations.
|
|
ErrorCount uint32
|
|
|
|
// PiloramaInfo contains information about trees stored on this shard.
|
|
PiloramaInfo pilorama.Info
|
|
}
|
|
|
|
// DumpInfo returns information about the Shard.
|
|
func (s *Shard) DumpInfo() Info {
|
|
return s.info
|
|
}
|