forked from TrueCloudLab/frostfs-node
2132b78aba
Includes: 1. `inspect` 2. `list-garbage` 3. `list-graveyard` Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
30 lines
395 B
Go
30 lines
395 B
Go
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,
|
|
)
|
|
}
|