Documentation
¶
Index ¶
- Variables
- func GetAllBMCs(writer http.ResponseWriter, request *http.Request)
- func GetBMC(writer http.ResponseWriter, request *http.Request)
- func NewRouter() *mux.Router
- func SetBootDevice(writer http.ResponseWriter, request *http.Request)
- func SetPowerStatus(writer http.ResponseWriter, request *http.Request)
- func WebAPIServiceRun()
- func WebLogger(handler http.HandlerFunc, name string) http.Handler
- type Route
- type WebReqBootDev
- type WebReqPowerOp
- type WebRespBMC
- type WebRespBMCList
- type WebRespBootDev
- type WebRespPowerOp
Constants ¶
This section is empty.
Variables ¶
View Source
var ListenPort int
Functions ¶
func GetAllBMCs ¶
func GetAllBMCs(writer http.ResponseWriter, request *http.Request)
func SetBootDevice ¶
func SetBootDevice(writer http.ResponseWriter, request *http.Request)
func SetPowerStatus ¶
func SetPowerStatus(writer http.ResponseWriter, request *http.Request)
func WebAPIServiceRun ¶
func WebAPIServiceRun()
Types ¶
type Route ¶
type Route struct { Name string Method string Pattern string HandlerFunc http.HandlerFunc }
type WebReqBootDev ¶
type WebReqBootDev struct {
Device string
}
type WebReqPowerOp ¶
type WebReqPowerOp struct {
Operation string
}
type WebRespBMC ¶
type WebRespBMCList ¶
type WebRespBMCList struct {
BMCs []WebRespBMC
}
type WebRespBootDev ¶
type WebRespPowerOp ¶
Click to show internal directories.
Click to hide internal directories.