api

package
v0.0.0-...-1b0f67f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2025 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

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 Create

func Create(ctx *domain.Context) *Api

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

func (a *Api) GetVMManager() *vm.VMManager

GetVMManager returns the VM manager instance

func (*Api) RefreshUPS

func (a *Api) RefreshUPS()

RefreshUPS recreates the UPS instance based on current detection status

func (*Api) Run

func (a *Api) Run() error

func (*Api) Stop

func (a *Api) Stop() error

Stop gracefully stops all API servers

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

func (*HTTPServer) Stop

func (h *HTTPServer) Stop() error

Stop gracefully stops the HTTP server

Directories

Path Synopsis
types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL