exec_config

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: 12 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 {
	*ceph_cluster.CephCluster
	*ceph.CephConf

	ceph_recovery.RecoveryPool
	OsdNum                 []int64   `json:"osdNum"`
	RecoverySleep          []float64 `json:"recoverySleep"`
	RecoveryMaxActive      []int64   `json:"recoveryMaxActive"`
	RecoveryMaxSingleStart []int64   `json:"recoveryMaxSingleStart"`

	IpAddr    string `json:"ipAddr"`
	Runtime   int64  `json:"runtime"`
	ResultDir string `json:"resultDir"`
}

func NewExecConfig

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

func (*ExecConfig) ReadConfig

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

func (*ExecConfig) Run

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

func (*ExecConfig) RunOneJob

func (execConfig *ExecConfig) RunOneJob(jobConfig JobConfig) (*ExecResult, error)

func (*ExecConfig) WaitOsdClean

func (execConfig *ExecConfig) WaitOsdClean() error

type JobConfig

type JobConfig struct {
	ceph_recovery.RecoveryConfig
}

func (JobConfig) FileName

func (jobConfig JobConfig) FileName() string

Jump to

Keyboard shortcuts

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