Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions protect/control/v1/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ message WorkloadBlockDeviceSpec {
BlockDeviceMountOptions mount_options = 3;
}

message WorkloadPciDeviceSpec {
string location = 1;
}

message BlockDeviceMountOptions {
bool readonly = 1;
string permissions = 2;
Expand Down Expand Up @@ -324,6 +328,7 @@ message WorkloadSpec {
repeated CgroupLimit cgroup_limits = 9;
string hostname = 10;
repeated WorkloadBlockDeviceSpec block_devices = 11;
repeated WorkloadPciDeviceSpec pci_devices = 12;
}

message CgroupLimit {
Expand Down Expand Up @@ -366,6 +371,7 @@ message WorkloadStatus {
WorkloadBlockDeviceStatus block_device_status = 4;
WorkloadMountStatus mount_status = 5;
google.protobuf.Timestamp created_at = 6;
WorkloadPciDeviceStatus pci_device_status = 7;
}

message WorkloadBlockDeviceInfo {
Expand All @@ -376,10 +382,18 @@ message WorkloadBlockDeviceInfo {
bool loop_dev = 5;
}

message WorkloadPciDeviceInfo {
string location = 1;
}

message WorkloadBlockDeviceStatus {
repeated WorkloadBlockDeviceInfo devices = 1;
}

message WorkloadPciDeviceStatus {
repeated WorkloadPciDeviceInfo devices = 1;
}

message WorkloadMountInfo {
string tag = 2;
string host_path = 3;
Expand Down
Loading