stor

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Print the number of controllers connected in JSON format.
	STOR_SHOW_CTRL_COUNT = "show ctrlcount j"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandStatus

type CommandStatus struct {
	CLIVersion      string `json:"CLI Version"`
	OperatingSystem string `json:"Operating system"`
	Controller      int    `json:"Controller"`
	Status          string `json:"Status"`
	Description     string `json:"Description"`
}

type ControllerCount

type ControllerCount struct {
	CommandStatus CommandStatus     `json:"Command Status"`
	ResponseData  CountResponseData `json:"Response Data"`
}

type ControllerCounts

type ControllerCounts struct {
	Controllers []ControllerCount `json:"Controllers"`
}

type Controllers

type Controllers struct {
	CommandStatus CommandStatus `json:"Command Status"`
}

type CountResponseData

type CountResponseData struct {
	ControllerCount int `json:"Controller Count"`
}

type OperateResult

type OperateResult struct {
	Controllers []Controllers `json:"Controllers"`
}

type Stor

type Stor struct {
	Path string `json:"Path"`
}

Stor implements the raid.Manager interface.

func NewStor

func NewStor() *Stor

NewStor returns a Stor instance with default values.

func (*Stor) GetControllerCount

func (s *Stor) GetControllerCount() (int, error)

GetControllerCount implements the raid.Manager interface.

Jump to

Keyboard shortcuts

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