File: task.proto

package info (click to toggle)
containerd 1.4.5~ds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,640 kB
  • sloc: sh: 463; makefile: 264; ansic: 179; asm: 7
file content (41 lines) | stat: -rw-r--r-- 1,168 bytes parent folder | download | duplicates (6)
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
syntax = "proto3";

package containerd.v1.types;

import weak "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/any.proto";

enum Status {
	option (gogoproto.goproto_enum_prefix) = false;
	option (gogoproto.enum_customname) = "Status";

	UNKNOWN = 0 [(gogoproto.enumvalue_customname) = "StatusUnknown"];
	CREATED = 1 [(gogoproto.enumvalue_customname) = "StatusCreated"];
	RUNNING = 2 [(gogoproto.enumvalue_customname) = "StatusRunning"];
	STOPPED = 3 [(gogoproto.enumvalue_customname) = "StatusStopped"];
	PAUSED = 4 [(gogoproto.enumvalue_customname) = "StatusPaused"];
	PAUSING = 5 [(gogoproto.enumvalue_customname) = "StatusPausing"];
}

message Process {
	string container_id = 1;
	string id = 2;
	uint32 pid = 3;
	Status status = 4;
	string stdin = 5;
	string stdout = 6;
	string stderr = 7;
	bool terminal = 8;
	uint32 exit_status = 9;
	google.protobuf.Timestamp exited_at = 10 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
}

message ProcessInfo {
	// PID is the process ID.
	uint32 pid = 1;
	// Info contains additional process information.
	//
	// Info varies by platform.
	google.protobuf.Any info = 2;
}