add

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

Documentation

Index

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

func NewAddCommand() *cobra.Command

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

func (aCmd *AddCommand) Init(cmd *cobra.Command, args []string) error

func (*AddCommand) Print

func (aCmd *AddCommand) Print(cmd *cobra.Command, args []string) error

func (*AddCommand) ResultPlainOutput

func (aCmd *AddCommand) ResultPlainOutput() error

func (*AddCommand) RunCommand

func (aCmd *AddCommand) 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