host_client

package
v0.0.0-...-3b55481 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MulanPSL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupCephLog

type BackupCephLog struct {
	FileName string
	LogData  *[]byte
}

type HostClient

type HostClient struct {
	IpAddr   string
	Port     string
	User     string
	Password string
	// contains filtered or unexported fields
}

func NewHostClient

func NewHostClient(IpAddr string) (*HostClient, error)

func NewHostClientWithPassword

func NewHostClientWithPassword(ipAddr, port, user, password string) (*HostClient, error)

func (*HostClient) BackupAndClearCephLog

func (client *HostClient) BackupAndClearCephLog() error

func (*HostClient) ClearCephLog

func (client *HostClient) ClearCephLog() error

func (*HostClient) ClearOsdLog

func (client *HostClient) ClearOsdLog(osdNums []int64) error

func (*HostClient) Close

func (client *HostClient) Close() error

func (*HostClient) CollectCephLog

func (client *HostClient) CollectCephLog(dstDir string) error

func (*HostClient) CollectOsdLog

func (client *HostClient) CollectOsdLog(dstDir string, osdNums []int64) error

func (*HostClient) Download

func (client *HostClient) Download(dstPath string, srcPath string) error

func (*HostClient) ExecCephCmd

func (client *HostClient) ExecCephCmd(cmd string) ([]byte, error)

func (*HostClient) ExecCmd

func (client *HostClient) ExecCmd(cmd string) ([]byte, error)

func (*HostClient) OSDPerf

func (client *HostClient) OSDPerf(osd string) (*OSDPerf, error)

func (*HostClient) OsdBackupLogFiles

func (client *HostClient) OsdBackupLogFiles() ([]string, error)

func (*HostClient) OsdLogFiles

func (client *HostClient) OsdLogFiles() ([]string, error)

func (*HostClient) ReadBackupCephLog

func (client *HostClient) ReadBackupCephLog() ([]BackupCephLog, error)

func (*HostClient) ReadCephConf

func (client *HostClient) ReadCephConf() error

func (*HostClient) Upload

func (client *HostClient) Upload(dstPath string, srcPath string) error

type OSDPerf

type OSDPerf struct {
	OSD struct {
		Numpg         int64 `json:"numpg"`
		NumpgPrimary  int64 `json:"numpg_primary"`
		NumpgReplica  int64 `json:"numpg_replica"`
		NumpgStray    int64 `json:"numpg_stray"`
		NumpgRemoving int64 `json:"numpg_removing"`
	}
}

Jump to

Keyboard shortcuts

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