Documentation ¶
Index ¶
- Constants
- func NewSpaceCommand() *cobra.Command
- type ListSpaceRpc
- type SpaceCommand
- func (sCmd *SpaceCommand) AddFlags()
- func (sCmd *SpaceCommand) Init(cmd *cobra.Command, args []string) error
- func (sCmd *SpaceCommand) Print(cmd *cobra.Command, args []string) error
- func (sCmd *SpaceCommand) ResultPlainOutput() error
- func (sCmd *SpaceCommand) RunCommand(cmd *cobra.Command, args []string) error
Constants ¶
View Source
const ( KEY_USED = "used" KEY_INODE_NUM = "inode_num" MiB = 1048576 GiB = 1073741824 DefaultCapacity = "10PB" )
Variables ¶
This section is empty.
Functions ¶
func NewSpaceCommand ¶
Types ¶
type ListSpaceRpc ¶
type ListSpaceRpc struct { Info *basecmd.Rpc Request *mds.GetFsInfoRequest // contains filtered or unexported fields }
func (*ListSpaceRpc) NewRpcClient ¶
func (sRpc *ListSpaceRpc) NewRpcClient(cc grpc.ClientConnInterface)
type SpaceCommand ¶
type SpaceCommand struct { basecmd.FinalCurveCmd Rpc *ListSpaceRpc // contains filtered or unexported fields }
func NewListSpaceCommand ¶
func NewListSpaceCommand() *SpaceCommand
func (*SpaceCommand) AddFlags ¶
func (sCmd *SpaceCommand) AddFlags()
func (*SpaceCommand) Print ¶
func (sCmd *SpaceCommand) Print(cmd *cobra.Command, args []string) error
func (*SpaceCommand) ResultPlainOutput ¶
func (sCmd *SpaceCommand) ResultPlainOutput() error
func (*SpaceCommand) RunCommand ¶
func (sCmd *SpaceCommand) RunCommand(cmd *cobra.Command, args []string) error
Click to show internal directories.
Click to hide internal directories.