...

Text file src/github.com/Microsoft/hcsshim/internal/shimdiag/shimdiag.proto

Documentation: github.com/Microsoft/hcsshim/internal/shimdiag

     1syntax = "proto3";
     2
     3package containerd.runhcs.v1.diag;
     4option go_package = "github.com/Microsoft/hcsshim/internal/shimdiag;shimdiag";
     5
     6service ShimDiag {
     7    rpc DiagExecInHost(ExecProcessRequest) returns (ExecProcessResponse);
     8    rpc DiagStacks(StacksRequest) returns (StacksResponse);
     9    rpc DiagTasks(TasksRequest) returns (TasksResponse);
    10    rpc DiagShare(ShareRequest) returns (ShareResponse);
    11    rpc DiagPid(PidRequest) returns (PidResponse);
    12}
    13
    14message ExecProcessRequest {
    15    repeated string args = 1;
    16    string workdir = 2;
    17    bool terminal = 3;
    18    string stdin = 4;
    19    string stdout = 5;
    20    string stderr = 6;
    21}
    22
    23message ExecProcessResponse {
    24    int32 exit_code = 1;
    25}
    26
    27message StacksRequest {
    28}
    29
    30message StacksResponse {
    31    string stacks = 1;
    32    string guest_stacks =2;
    33}
    34
    35message ShareRequest {
    36    string host_path = 1;
    37    string uvm_path = 2;
    38    bool read_only = 3;
    39}
    40
    41message ShareResponse {
    42}
    43
    44message PidRequest{
    45}
    46
    47message PidResponse{
    48    int32 pid = 1;
    49}
    50
    51message TasksRequest {
    52    bool execs = 1;
    53}
    54
    55message Task {
    56    string id = 1;
    57    repeated Exec execs = 2;
    58}
    59
    60message Exec {
    61    string id = 1;
    62    string state = 2;
    63}
    64
    65message TasksResponse {
    66    repeated Task tasks = 1;
    67}
    68

View as plain text