iso

package
v7.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 25 Imported by: 0

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.

Jump to

Keyboard shortcuts

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