Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SupportedActions should list all actions supported by Tester. SupportedActions = []string{ string(TestPowerStatus), string(TestPowerOn), string(TestPowerOff), string(TestPowerCycle), string(TestPxeBoot), string(TestCreateUser), string(TestUpdateUser), string(TestDeleteUser), string(TestScreenshot), } )
Functions ¶
Types ¶
type Config ¶
type Config struct { Tests []string `json:"tests"` Servers []struct { Name string `json:"name"` Vendor string `json:"vendor"` Model string `json:"model"` BmcHost string `json:"bmcHost" yaml:"bmcHost"` // yaml struct tags defined because the library requires it BmcUser string `json:"bmcUser" yaml:"bmcUser"` BmcPass string `json:"bmcPass" yaml:"bmcPass"` IpmiPort string `json:"ipmiPort" yaml:"IpmiPort"` } `json:"servers"` }
type DeviceResult ¶
DeviceResult holds the test results for a given device
type ResultStore ¶
type ResultStore struct {
// contains filtered or unexported fields
}
ResultStore stores test results
func NewTestResultStore ¶
func NewTestResultStore() *ResultStore
func (*ResultStore) Read ¶
func (r *ResultStore) Read() []DeviceResult
func (*ResultStore) Save ¶
func (r *ResultStore) Save(result DeviceResult)
type TestName ¶
type TestName string
TestName identifies a test
const ( // power status tests TestPowerStatus TestName = "power-status" TestPowerOn TestName = "power-on" TestPowerOff TestName = "power-off" TestPowerCycle TestName = "power-cycle" TestPxeBoot TestName = "pxeBoot" // user account tests TestCreateUser TestName = "create-user" TestUpdateUser TestName = "update-user" TestDeleteUser TestName = "delete-user" TestScreenshot TestName = "screenshot" )
Click to show internal directories.
Click to hide internal directories.