github.com/microsoft/moc@v0.17.1/rpc/nodeagent/node/host/moc_nodeagent_host.proto (about)

     1  // Copyright (c) Microsoft Corporation.
     2  // Licensed under the Apache v2.0 license.
     3  
     4  syntax = "proto3";
     5  option go_package = "github.com/microsoft/moc/rpc/nodeagent/node";
     6  package moc.nodeagent.host;
     7  
     8  import "google/protobuf/wrappers.proto";
     9  import "moc_common_common.proto";
    10  
    11  message HostRequest {
    12  	Host Host = 1;
    13  	Operation OperationType = 2;
    14  }
    15  
    16  message HostResponse {
    17  	Host Host = 1;
    18  	string RootCACertificate = 2 [(sensitive) = true];
    19  	string IntermediateCACertificate = 3 [(sensitive) = true];
    20  	google.protobuf.BoolValue Result = 4;
    21  	string Error = 5;
    22  }
    23  
    24  enum HostState {
    25  	Unknown = 0;
    26  	Active = 1;
    27  	Inactive = 2;
    28  	Poweroff = 3;
    29  }
    30  
    31  message Host {
    32  	string name = 1;
    33  	string id = 2;
    34  	Status status = 3;
    35  	string certificate = 4 [(sensitive) = true];
    36  	int32 port = 5;
    37  	int32 authorizerPort = 6;
    38  	HostState runningState = 7;
    39  	Tags tags = 8;
    40  }
    41  
    42  service MocHostAgent {
    43  	rpc Invoke(HostRequest) returns (HostResponse) {}
    44  }