forked from plamenmpetrov/firecracker-containerd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
firecracker.proto
106 lines (84 loc) · 2.86 KB
/
firecracker.proto
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
syntax = "proto3";
import "types.proto";
option go_package = "proto";
// CreateVMRequest specifies creation parameters for a new FC instance
message CreateVMRequest {
// VM identifier to assign
string VMID = 1;
// Specifies the machine configuration for the VM
FirecrackerMachineConfiguration MachineCfg = 2;
// Specifies the file path where the kernel image is located
string KernelImagePath = 3;
// Specifies the commandline arguments that should be passed to the kernel
string KernelArgs = 4;
// Specifies drive containing the rootfs of the VM
FirecrackerRootDrive RootDrive = 5;
// Specifies additional drives whose contents will be mounted inside the VM on boot.
repeated FirecrackerDriveMount DriveMounts = 6;
// Specifies the networking configuration for a VM
repeated FirecrackerNetworkInterface NetworkInterfaces = 7;
// The number of dummy drives to reserve in advance before running FC instance.
int32 ContainerCount = 8;
// Whether the VM should exit after all tasks running in it have been deleted.
bool ExitAfterAllTasksDeleted = 9;
JailerConfig JailerConfig = 10;
}
message CreateVMResponse {
string VMID = 1;
string SocketPath = 2;
string LogFifoPath = 3;
string MetricsFifoPath = 4;
string CgroupPath = 5;
}
message StopVMRequest {
string VMID = 1;
uint32 TimeoutSeconds = 2;
}
message GetVMInfoRequest {
string VMID = 1;
}
message GetVMInfoResponse {
string VMID = 1;
string SocketPath = 2;
string LogFifoPath = 3;
string MetricsFifoPath = 4;
string CgroupPath = 5;
}
message SetVMMetadataRequest {
string VMID = 1;
string Metadata = 2;
}
message UpdateVMMetadataRequest {
string VMID = 1;
string Metadata = 2;
}
message GetVMMetadataRequest {
string VMID = 1;
}
message GetVMMetadataResponse {
string Metadata = 1;
}
message JailerConfig {
string NetNS = 1;
// List of the physical numbers of the CPUs on which processes in that
// cpuset are allowed to execute. See List Format below for a description
// of the format of cpus.
//
// The CPUs allowed to a cpuset may be changed by writing a new list to its
// cpus file.
// Taken from http://man7.org/linux/man-pages/man7/cpuset.7.html
//
// This is formatted as specified in the cpuset man page under "List Format"
// http://man7.org/linux/man-pages/man7/cpuset.7.html
string CPUs = 2;
// List of memory nodes on which processes in this cpuset are allowed to
// allocate memory. See List Format below for a description of the format
// of mems.
// Taken from http://man7.org/linux/man-pages/man7/cpuset.7.html
//
// This is formatted as specified in the cpuset man page under "List Format"
// http://man7.org/linux/man-pages/man7/cpuset.7.html
string Mems = 3;
uint32 UID = 4;
uint32 GID = 5;
}