Documentation ¶
Index ¶
- Constants
- Variables
- func HasError(rs []Response) bool
- func KeyAuth(keyFile string) ssh.AuthMethod
- func NewClient(e endpoint) *smashClient
- func NewEndpoint(s string) *endpoint
- func NewSimulator(e endpoint) *smashSimulator
- func PasswordAuth(pass string) ssh.AuthMethod
- func PrintResponse(rs []Response) string
- type BootOption
- type BootState
- type Client
- type Request
- type Response
Constants ¶
View Source
const ( NoBootState = "No_Boot" BootOnceState = "Once" BootAlwaysState = "Always" )
Variables ¶
View Source
var CdCdDr1 = Response{
Status: 0,
StatusTag: "COMMAND COMPLETED",
Details: `Tue Sep 17 22:27:10 2019
/map1/oemhp_vm1/cddr1
`,
}
View Source
var CdFloppyDr1 = Response{
Status: 0,
StatusTag: "COMMAND COMPLETED",
Details: `Tue Sep 17 22:24:44 2019
/map1/oemhp_vm1/floppydr1
`,
}
View Source
var CdSystem1 = Response{
Status: 0,
StatusTag: "COMMAND COMPLETED",
Details: `Tue Sep 17 19:29:23 2019
/system1
`,
}
View Source
var ResetWhenPowerOff = Response{
Status: 2,
StatusTag: "COMMAND PROCESSING FAILED",
ErrorTag: "COMMAND ERROR-UNSPECIFIED",
Details: `Tue Sep 17 20:58:33 2019
Server power off.
`,
}
View Source
var ResetWhenPowerOn = Response{
Status: 0,
StatusTag: "COMMAND COMPLETED",
Details: `Tue Sep 17 21:01:45 2019
Resetting server.
`,
}
View Source
var SetBootConnect = Response{
Status: 0,
StatusTag: "COMMAND COMPLETED",
Details: `Tue Sep 17 22:53:04 2019
`,
}
View Source
var SetBootConnectNoImage = Response{
Status: 2,
StatusTag: "COMMAND PROCESSING FAILED",
ErrorTag: "COMMAND ERROR-UNSPECIFIED",
Details: `Tue Sep 17 23:21:06 2019
No image present in the Virtual Media drive.
`,
}
View Source
var SetBootDisconnect = Response{
Status: 0,
StatusTag: "COMMAND COMPLETED",
Details: `Tue Sep 17 22:55:21 2019
`,
}
View Source
var SetBootDisconnectNoImage = Response{
Status: 2,
StatusTag: "COMMAND PROCESSING FAILED",
ErrorTag: "COMMAND ERROR-UNSPECIFIED",
Details: `Tue Sep 17 22:55:28 2019
No image present in the Virtual Media drive.
`,
}
View Source
var SetBootOnce = Response{
Status: 0,
StatusTag: "COMMAND COMPLETED",
Details: `Tue Sep 17 22:53:04 2019
`,
}
View Source
var SetImageURL = Response{
Status: 0,
StatusTag: "COMMAND COMPLETED",
Details: `Tue Sep 17 22:50:20 2019
`,
}
View Source
var StartWhenPowerOff = Response{
Status: 0,
StatusTag: "COMMAND COMPLETED",
Details: `Tue Sep 17 20:40:01 2019
Server powering on .......
`,
}
View Source
var StartWhenPowerOn = Response{
Status: 2,
StatusTag: "COMMAND PROCESSING FAILED",
ErrorTag: "COMMAND ERROR-UNSPECIFIED",
Details: `Tue Sep 17 20:41:10 2019
Server power already on.
`,
}
View Source
var StopWhenPowerOff = Response{
Status: 2,
StatusTag: "COMMAND PROCESSING FAILED",
ErrorTag: "COMMAND ERROR-UNSPECIFIED",
Details: `Tue Sep 17 19:44:46 2019
Server power already off.
`,
}
View Source
var StopWhenPowerOn = Response{
Status: 0,
StatusTag: "COMMAND COMPLETED",
Details: `Tue Sep 17 19:39:12 2019
Server powering off .......
`,
}
Functions ¶
func KeyAuth ¶
func KeyAuth(keyFile string) ssh.AuthMethod
func NewEndpoint ¶
func NewEndpoint(s string) *endpoint
func NewSimulator ¶
func NewSimulator(e endpoint) *smashSimulator
creates a new client to Smash simulator.
func PasswordAuth ¶
func PasswordAuth(pass string) ssh.AuthMethod
func PrintResponse ¶
Types ¶
type BootOption ¶
type BootOption string
const ( BootOnce BootOption = "once" BootAlways BootOption = "always" BootNever BootOption = "never" BootConnect BootOption = "connect" BootDisconnect BootOption = "disconnect" )
Click to show internal directories.
Click to hide internal directories.