-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
60 lines (46 loc) · 1.09 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
Package imagestore is a mistify subagent that manages guest disks and zfs pools,
exposed via JSON-RPC over HTTP.
HTTP API Endpoints
/_mistify_RPC_
* GET - Run a specified method
/snapshots/download
* GET - Streaming download a zfs snapshot. Query with SnapshotRequest.
Request Structure
{
"method": "RPC_METHOD",
"params": [
DATA_STRUCT
],
"id": 0
}
Where RPC_METHOD is the desired method and DATA_STRUCTURE is one of the request
structs defined in http://godoc.org/github.com/mistifyio/mistify-agent/rpc .
Response Structure
{
"result": {
KEY: RESPONSE_STRUCT
},
"error": null,
"id": 0
}
Where KEY is a string (e.g. "snapshot") and DATA is one of the response structs
defined in http://godoc.org/github.com/mistifyio/mistify-agent/rpc .
RPC Methods
ListImages
GetImage
RequestImage
DeleteImage
CloneImage
ListSnapshot
GetSnapshot
CreateSnapshot
DeleteSnapshot
RollbackSnapshot
VerifyDisks
CreateGuestDisks
DeleteGuestDisks
See the godocs and function signatures for each method's purpose and expected
request/response structs.
*/
package imagestore