-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
27 lines (22 loc) · 1012 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
Package imageservice is the mistify guest image server. In order to remove
dependence on external sources, which may be unavailable or tampered with, a
mistify-agent hypervisor will instead fetch images from the
mistify-image-service. An operator will load images into mistify-image-service
creating by either direct upload or by having the service fetch an image from
an external source over http.
HTTP API Endpoints
/images
* GET - Retrieve a list of images, optionally filtered by type.
* POST - Fetch and store an image from an external http source
* PUT - Upload and store image
/images/{imageID}
* GET - Retrieves information for an image
* DELETE - Deletes an image
/images/{imageID}/download
* GET - Download an image
Image information uses the metadata.Image struct. When directly uploading an
image, the body should be the raw image data, with the image type and optional
comment provided via headers X-Image-Type and X-Image-Comment, respectively.
*/
package imageservice