Documentation ¶
Index ¶
- Constants
- Variables
- func NewCancelCommand() *cobra.Command
- type CancelCommand
- func (cCmd *CancelCommand) AddFlags()
- func (cCmd *CancelCommand) Init(cmd *cobra.Command, args []string) error
- func (cCmd *CancelCommand) Print(cmd *cobra.Command, args []string) error
- func (cCmd *CancelCommand) ResultPlainOutput() error
- func (cCmd *CancelCommand) RunCommand(cmd *cobra.Command, args []string) error
Constants ¶
View Source
const ( CURVEFS_WARMUP_OP_XATTR = "curvefs.warmup.op" CURVEFS_WARMUP_OP_CANCEL_SINGLE = "cancel\nsingle" CURVEFS_WARMUP_OP_CANCEL_LIST = "cancel\nlist" )
Variables ¶
View Source
var STORAGE_TYPE = map[string]string{
"disk": "disk",
"mem": "kvclient",
}
Functions ¶
func NewCancelCommand ¶
Types ¶
type CancelCommand ¶
type CancelCommand struct { basecmd.FinalCurveCmd Path string // path in user system Single bool // cancel the warmup of a single file or directory }
func NewCancelWarmupCommand ¶
func NewCancelWarmupCommand() *CancelCommand
func (*CancelCommand) AddFlags ¶
func (cCmd *CancelCommand) AddFlags()
func (*CancelCommand) Init ¶
func (cCmd *CancelCommand) Init(cmd *cobra.Command, args []string) error
func (*CancelCommand) Print ¶
func (cCmd *CancelCommand) Print(cmd *cobra.Command, args []string) error
func (*CancelCommand) ResultPlainOutput ¶
func (cCmd *CancelCommand) ResultPlainOutput() error
func (*CancelCommand) RunCommand ¶
func (cCmd *CancelCommand) RunCommand(cmd *cobra.Command, args []string) error
Click to show internal directories.
Click to hide internal directories.