github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/monitor/api/spec/protos/monitor.proto (about)

     1  syntax = "proto3";
     2  option go_package = ".;protos";
     3  package protos;
     4  
     5  import "google/protobuf/empty.proto";
     6  
     7  // RunCClient is the API between runc-proxy  and  enforcerd
     8  service RunC {
     9      // RuncProxyStarted is called by the PCC agent once the runc proxy has been started
    10      rpc RuncProxyStarted (google.protobuf.Empty) returns (google.protobuf.Empty) {}
    11  
    12   
    13      // ContainerEvent will be invoked by the runc proxy on the following events at this point:
    14      // - ‘runc start’
    15      // - 'runc delete'
    16      rpc RunCContainerEvent (RunCContainerEventRequest) returns (ContainerEventResponse) {} 
    17  }
    18  
    19  // CNIClient is the API between cni-plugin  and  enforcerd
    20  service CNI {
    21      // ContainerEvent will be invoked by the CNI plugin on the following events at this point:
    22      // - ‘cmdADD start’
    23      // - 'cmdDEL delete'
    24      rpc CNIContainerEvent (CNIContainerEventRequest) returns (ContainerEventResponse) {} 
    25  }
    26  
    27  message RunCContainerEventRequest {
    28      repeated string commandLine = 1; // the full commandline of the runc command incl. flags, etc. - this is expected to come from `os.Args`
    29  }
    30  
    31  message CNIContainerEventRequest {
    32      enum Type {
    33          ADD = 0;
    34          DELETE = 1;
    35      }
    36      Type type = 1;
    37      string containerID	= 2;
    38      string netnsPath = 3;
    39      string podName = 4;
    40      string podNamespace = 5;
    41  }
    42  
    43  message ContainerEventResponse {
    44      string errorMessage = 1; // errorMessage will be empty on success, and have an error message set only on an error
    45  }