Documentation
¶
Index ¶
Constants ¶
View Source
const ( TransportTypeSATA = "sata" TransportTypeNVMe = "nvme" )
Variables ¶
This section is empty.
Functions ¶
func GenerateStoragePlan ¶
func GenerateStoragePlan(ctx context.Context, serverID string, commandExecutor commandexecutor.CommandExecutor, osSize, zfsPoolSize int, ) (*storageplan.StoragePlan, error)
Generates storage plan for the intended server.
Types ¶
type LSBLKOutput ¶
type LSBLKOutput struct {
BlockDevices []LSBLKOutputRow `json:"blockdevices"`
}
type LSBLKOutputRow ¶
type LSBLKOutputRow struct {
Name string `json:"name"`
WWN string `json:"wwn"`
Size int `json:"size"`
RotationalDevice bool `json:"rota"`
TransportType string `json:"tran"`
PartitionTableType string `json:"pttype"`
}
func (*LSBLKOutputRow) GetDiskType ¶
func (l *LSBLKOutputRow) GetDiskType() string
Click to show internal directories.
Click to hide internal directories.