gitee.com/leisunstar/runtime@v0.0.0-20200521203717-5cef3e7b53f9/protocols/cache/cache.proto (about)

     1  //
     2  // Copyright 2019 HyperHQ Inc.
     3  //
     4  // SPDX-License-Identifier: Apache-2.0
     5  //
     6  
     7  syntax = "proto3";
     8  
     9  package cache;
    10  
    11  import "google/protobuf/empty.proto";
    12  
    13  service CacheService {
    14      rpc Config(google.protobuf.Empty) returns (GrpcVMConfig);
    15      rpc GetBaseVM(google.protobuf.Empty) returns (GrpcVM);
    16      rpc Status(google.protobuf.Empty) returns (GrpcStatus);
    17      rpc Quit(google.protobuf.Empty) returns (google.protobuf.Empty);
    18  }
    19  
    20  message GrpcVMConfig {
    21      bytes Data = 1;
    22      bytes AgentConfig = 2;
    23  }
    24  
    25  message GrpcVM {
    26      string id = 1;
    27  
    28      bytes hypervisor = 2;
    29  
    30      int64 proxyPid = 3;
    31      string proxyURL = 4;
    32  
    33      uint32 cpu = 5;
    34      uint32 memory = 6;
    35  
    36      uint32 cpuDelta = 7;
    37  }
    38  
    39  message GrpcStatus {
    40      int64 pid = 1;
    41  
    42      repeated GrpcVMStatus vmstatus = 2;
    43  }
    44  
    45  message GrpcVMStatus {
    46      int64 pid = 1;
    47  
    48      uint32 cpu = 2;
    49      uint32 memory = 3;
    50  }