Skip to content

Commit

Permalink
add task api endpoint in oci proto
Browse files Browse the repository at this point in the history
Signed-off-by: Abel Feng <fshb1988@gmail.com>
  • Loading branch information
abel-von committed Mar 27, 2024
1 parent 4e9c11b commit 5b07004
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
21 changes: 21 additions & 0 deletions core/runtime/v2/runc/options/next.pb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,27 @@ file {
type: TYPE_STRING
json_name: "criuWorkPath"
}
field {
name: "task_api_address"
number: 13
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "taskApiAddress"
}
field {
name: "task_api_protocol"
number: 14
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "taskApiProtocol"
}
field {
name: "task_api_version"
number: 15
label: LABEL_OPTIONAL
type: TYPE_UINT32
json_name: "taskApiVersion"
}
reserved_range {
start: 8
end: 9
Expand Down
39 changes: 37 additions & 2 deletions core/runtime/v2/runc/options/oci.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions core/runtime/v2/runc/options/oci.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ message Options {
string criu_image_path = 10;
// criu work path
string criu_work_path = 11;
// task api address, can be a unix domain socket, or vsock address.
string task_api_address = 13;
// protocol for task api connection, currently ttrpc and grpc supported
string task_api_protocol = 14;
// task api version, currently supported value is 2 and 3.
uint32 task_api_version = 15;
}

message CheckpointOptions {
Expand Down

0 comments on commit 5b07004

Please sign in to comment.