Documentation
¶
Index ¶
- type Api
- func (a *Api) GetConfigManager() interface{}
- func (a *Api) GetDockerManager() *docker.DockerManager
- func (a *Api) GetStorageMonitor() *storage.StorageMonitor
- func (a *Api) GetSystemMonitor() *system.SystemMonitor
- func (a *Api) GetUPSDetector() *upsDetector.Detector
- func (a *Api) GetVMManager() *vm.VMManager
- func (a *Api) RefreshUPS()
- func (a *Api) Run() error
- func (a *Api) Stop() error
- type HTTPServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) GetConfigManager ¶
func (a *Api) GetConfigManager() interface{}
GetConfigManager returns the configuration manager instance
func (*Api) GetDockerManager ¶
func (a *Api) GetDockerManager() *docker.DockerManager
GetDockerManager returns the Docker manager instance
func (*Api) GetStorageMonitor ¶
func (a *Api) GetStorageMonitor() *storage.StorageMonitor
GetStorageMonitor returns the storage monitor instance
func (*Api) GetSystemMonitor ¶
func (a *Api) GetSystemMonitor() *system.SystemMonitor
GetSystemMonitor returns the system monitor instance
func (*Api) GetUPSDetector ¶
func (a *Api) GetUPSDetector() *upsDetector.Detector
GetUPSDetector returns the UPS detector instance
func (*Api) GetVMManager ¶
GetVMManager returns the VM manager instance
func (*Api) RefreshUPS ¶
func (a *Api) RefreshUPS()
RefreshUPS recreates the UPS instance based on current detection status
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer handles REST API requests
func NewHTTPServer ¶
func NewHTTPServer(api *Api, port int) *HTTPServer
NewHTTPServer creates a new HTTP server instance - UMA v2 only
func (*HTTPServer) Start ¶
func (h *HTTPServer) Start() error
Start starts the HTTP server - UMA v2 only
Click to show internal directories.
Click to hide internal directories.