package
2.6.0+incompatible
Repository: https://github.com/cray-hpe/hms-power-control.git
Documentation: pkg.go.dev

# Functions

AbortTransitionID - abort transition by transitionID.
CreateRouterAndHandler - Create a singleton for setting up routing for the UnitTests.
CreateTransition - creates a transition and will trigger a 'transition' flow.
GetHealth - Returns various health information.
Returns the microservice liveness indicator.
GetPowerCap - Get PowerCap tasks array.
GetPowerCapQuery - Get PowerCap information by ID.
GetPowerStatus - Returns the power status of the hardware.
Readiness - Returns the microservice readiness indicator.
GetTransitions - returns all transitions.
GetUUIDFromVars - attempts to retrieve a UUID from an http.Request URL returns a passback.
No description provided by the author
Logger - used for logging what methods were invoked and how long they took to complete.
NewRouter - create a new mux Router; and initializes it with the routes.
PatchPowerCap - Patch power-cap values.
PostPowerStatus - Returns the power status of the hardware, but with the parameters being in the payload of the request.
SnapshotPowerCap - creates a power cap snapshot for an array of xnames.
WriteHeaders - writes JSON to the open http connection along with headers.
No description provided by the author
WriteJSON - writes JSON to the open http connection.

# Variables

IsHandled - setups protection for the mutex.

# Structs

Route - struct containing name,method, pattern and handlerFunction to invoke.

# Type aliases

Routes - a collection of Route.