device_info

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceInfo

type DeviceInfo struct {
	HostInfo
	DiskInfo
}

type DiskInfo

type DiskInfo struct {
	Error           string
	Path            string
	DeviceModel     string
	SerialNumber    string
	LUWWNDeviceId   string
	AddProductId    string
	FirmwareVersion string
	UserCapacity    string
	SectorSizes     string
	RotationRate    string
	FormFactor      string
	Deviceis        string
	ATAVersionis    string
	SATAVersionis   string
	LocalTimeis     string
	SMARTsupportis  string
}

type ExecConfig

type ExecConfig struct {
	Hosts     []HostInfo `json:"hosts"`
	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() ([]DeviceInfo, error)

func (*ExecConfig) RunOneJob

func (execConfig *ExecConfig) RunOneJob(h HostInfo) ([]DeviceInfo, error)

type HostInfo

type HostInfo struct {
	IPAddress string `json:"ipAddress,omitempty"`
	UserName  string `json:"userName"`
	Password  string `json:"password"`
}

Jump to

Keyboard shortcuts

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