forked from TrueCloudLab/frostfs-node
[#1714] lens: Add meta
subcommand
Includes: 1. `inspect` 2. `list-garbage` 3. `list-graveyard` Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
adff08ad02
commit
2132b78aba
5 changed files with 209 additions and 0 deletions
30
cmd/neofs-lens/internal/meta/root.go
Normal file
30
cmd/neofs-lens/internal/meta/root.go
Normal file
|
@ -0,0 +1,30 @@
|
|||
package meta
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var (
|
||||
vAddress string
|
||||
vPath string
|
||||
)
|
||||
|
||||
type epochState struct{}
|
||||
|
||||
func (s epochState) CurrentEpoch() uint64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
// Root contains `meta` command definition.
|
||||
var Root = &cobra.Command{
|
||||
Use: "meta",
|
||||
Short: "Operations with a metabase",
|
||||
}
|
||||
|
||||
func init() {
|
||||
Root.AddCommand(
|
||||
inspectCMD,
|
||||
listGraveyardCMD,
|
||||
listGarbageCMD,
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue