github.com/lalkh/containerd@v1.4.3/api/events/task.proto (about)

     1  syntax = "proto3";
     2  
     3  package containerd.events;
     4  
     5  import weak "gogoproto/gogo.proto";
     6  import "google/protobuf/timestamp.proto";
     7  import "github.com/containerd/containerd/api/types/mount.proto";
     8  import weak "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto";
     9  
    10  option go_package = "github.com/containerd/containerd/api/events;events";
    11  option (containerd.plugin.fieldpath_all) = true;
    12  
    13  message TaskCreate {
    14  	string container_id = 1;
    15  	string bundle = 2;
    16  	repeated containerd.types.Mount rootfs = 3;
    17  	TaskIO io = 4 [(gogoproto.customname) = "IO"];
    18  	string checkpoint = 5;
    19  	uint32 pid = 6;
    20  }
    21  
    22  message TaskStart {
    23  	string container_id = 1;
    24  	uint32 pid = 2;
    25  }
    26  
    27  message TaskDelete {
    28  	string container_id = 1;
    29  	uint32 pid = 2;
    30  	uint32 exit_status = 3;
    31  	google.protobuf.Timestamp exited_at = 4 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
    32  	// id is the specific exec. By default if omitted will be `""` thus matches
    33  	// the init exec of the task matching `container_id`.
    34  	string id = 5;
    35  }
    36  
    37  message TaskIO {
    38  	string stdin = 1;
    39  	string stdout = 2;
    40  	string stderr = 3;
    41  	bool terminal = 4;
    42  }
    43  
    44  message TaskExit {
    45  	string container_id = 1;
    46  	string id = 2;
    47  	uint32 pid = 3;
    48  	uint32 exit_status = 4;
    49  	google.protobuf.Timestamp exited_at = 5 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
    50  }
    51  
    52  message TaskOOM {
    53  	string container_id = 1;
    54  }
    55  
    56  message TaskExecAdded {
    57  	string container_id = 1;
    58  	string exec_id = 2;
    59  }
    60  
    61  message TaskExecStarted {
    62  	string container_id = 1;
    63  	string exec_id = 2;
    64  	uint32 pid = 3;
    65  }
    66  
    67  message TaskPaused {
    68  	string container_id = 1;
    69  }
    70  
    71  message TaskResumed {
    72  	string container_id = 1;
    73  }
    74  
    75  message TaskCheckpointed {
    76  	string container_id = 1;
    77  	string checkpoint = 2;
    78  }