ovanice

command module
v0.0.0-...-3d61650 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Ovanice

Ovanice is a small service that hosts your Open Virtual Appliance-files. Ovanice gives you the option to provide configuration options on request and will rewrite the .ova-file on the fly.

Download and usage

  • Grab the latest binary from the releases page and run it in a directory containing ova-files:
./ovanice
  • An inventory in JSON format is available at the /inventory-endpoint. Here piped to jq for clarity.
curl -s http://localhost:8080/inventory | jq
{
  "ova_files": [
    {
      "name": "minimal_test.ova",
      "virtual_hardware_items": [
        {
          "ElementName": "16 virtual CPU(s)",
          "Description": "Number of Virtual CPUs",
          "ResourceType": 3,
          "VirtualQuantity": 16,
          "param": "cores"
        },
        {
          "ElementName": "16384MB of memory",
          "Description": "Memory Size",
          "ResourceType": 4,
          "VirtualQuantity": 16,
          "param": "ram"
        }
      ],
      "example_request": "/ova_files/minimal_test.ova?cores=4&ram=2048"
    }
  ]
}
  • Each item in the inventory provides an example request. A GET request to http://localhost:8080/ova_files/minimal_test.ova?cores=4&ram=2048 will return the minimal_test.ova appliance but rewritten to instead have 4 cores and 2GB RAM.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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