rados_object_export

package
v0.0.0-...-db53517 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecConfig

type ExecConfig struct {
	FilePath   string `json:"filePath"`
	ExportPath string `json:"exportPath"`
	ThreadNum  string `json:"threadNum"`
	PoolName   string `json:"poolName"`
}

func NewExecConfig

func NewExecConfig(configPath string) (*ExecConfig, error)

func (*ExecConfig) ExportRadosObject

func (execConfig *ExecConfig) ExportRadosObject(objectID string) (float64, error)

func (*ExecConfig) GetFileSliceNum

func (execConfig *ExecConfig) GetFileSliceNum() (int64, error)

func (*ExecConfig) GetInode

func (execConfig *ExecConfig) GetInode() (string, error)

GetInode 获取文件inode号(16进制的)

func (*ExecConfig) ReadConfig

func (execConfig *ExecConfig) ReadConfig(configFilePath string) error

func (*ExecConfig) Run

func (execConfig *ExecConfig) Run() (*[]ExecConfigResult, error)

type ExecConfigResult

type ExecConfigResult struct {
	ObjectID string  `json:"objectID"`
	Cost     float64 `json:"cost"`
}

Jump to

Keyboard shortcuts

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