space

package
v0.0.0-...-46d4b59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func NewSpaceCommand() *cobra.Command

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)

func (*ListSpaceRpc) Stub_Func

func (sRpc *ListSpaceRpc) Stub_Func(ctx context.Context) (interface{}, error)

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) Init

func (sCmd *SpaceCommand) Init(cmd *cobra.Command, args []string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL