powermanapi

command
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

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 

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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