package
0.1.2
Repository: https://github.com/kraken-hpc/powerapi.git
Documentation: pkg.go.dev

# README

Powermanapi: A Powerman/PowerAPI gateway server

This service provides the ability to control Powerman via the PowerAPI REST-ful API. This allows for REST-ful control for power states of the many different platforms supported by Powerman. The API uses direct Go bindings for libpowerman that can be found at pkg/powerman in this repository.

Server SDK generated generated by Openapi Generator https://github.com/openapitools/openapi-generator .

Overview

The server SDK was generated by the [openapi-generator] (https://openapi-generator.tech) project. By using the OpenAPI-Spec from a remote server, you can easily generate a server stub.

  • API version: 1.0
  • Build date: 2021-02-03T21:35:49.284Z[GMT]

Running the server

To build the server, follow these simple steps:

cd cmd/powermanapi
go build .

To run the server:

./powermanapi

To see runtime options and usage:

./powermanapi -h

To run the server in a docker container

docker build --network=host -t api .

Once image is built use

docker run --rm -it api 

# Packages

No description provided by the author