cancel

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: 11 Imported by: 0

Documentation

Index

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

func NewCancelCommand() *cobra.Command

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

Jump to

Keyboard shortcuts

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