Documentation ¶
Overview ¶
Package iso provides support for generating ISO images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOSVersions ¶
func GetOSVersions(w http.ResponseWriter, r *http.Request)
GetOSVersions returns a map of available Operating System (OS) versions for ISO generation, as well as the name of the directory where the "kickstarter" files are found.
The returned data comes from a configuration file. There's a default location of the config file which can be overridden via a Parameter database entry.
Note: The api.CRUDer interface could not be used for this endpoint because the original Perl endpoint returned a single JSON object, whereas the CRUDer interface returns an array of JSON objects per the Read method.
func ISOs ¶
func ISOs(w http.ResponseWriter, req *http.Request)
ISOs handler is responsible for generating and returning an ISO image, as a streaming download.
Response types:
Error:
HTTP 400 { "alerts": [ {"level":"error","text":"hostName is required"}, {"level":"error","text":"disk is required"}, ..., ] }
Success:
HTTP 200 Content-Disposition: attachment; filename="db.infra.ciab.test-centos72.iso" Content-Type: application/download
Types ¶
This section is empty.