Documentation ¶
Index ¶
- Constants
- Variables
- func NewAddCommand() *cobra.Command
- type AddCommand
- func (aCmd *AddCommand) AddFlags()
- func (aCmd *AddCommand) Init(cmd *cobra.Command, args []string) error
- func (aCmd *AddCommand) Print(cmd *cobra.Command, args []string) error
- func (aCmd *AddCommand) ResultPlainOutput() error
- func (aCmd *AddCommand) RunCommand(cmd *cobra.Command, args []string) error
Constants ¶
View Source
const ( CURVEFS_WARMUP_OP_XATTR = "curvefs.warmup.op" CURVEFS_WARMUP_OP_ADD_SINGLE = "add\nsingle\n%s\n%s\n%s\n%s" CURVEFS_WARMUP_OP_ADD_LIST = "add\nlist\n%s\n%s\n%s\n%s" )
Variables ¶
View Source
var STORAGE_TYPE = map[string]string{
"disk": "disk",
"mem": "kvclient",
}
Functions ¶
func NewAddCommand ¶
Types ¶
type AddCommand ¶
type AddCommand struct { basecmd.FinalCurveCmd Mountpoint *mountinfo.MountInfo Path string // path in user system CurvefsPath string // path in curvefs Single bool // warmup a single file or directory StorageType string // warmup storage type }
func NewAddWarmupCommand ¶
func NewAddWarmupCommand() *AddCommand
func (*AddCommand) AddFlags ¶
func (aCmd *AddCommand) AddFlags()
func (*AddCommand) ResultPlainOutput ¶
func (aCmd *AddCommand) ResultPlainOutput() error
func (*AddCommand) RunCommand ¶
func (aCmd *AddCommand) RunCommand(cmd *cobra.Command, args []string) error
Click to show internal directories.
Click to hide internal directories.