File: rpc.proto

package info (click to toggle)
gitlab-agent 16.1.3-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 6,324 kB
  • sloc: makefile: 175; sh: 52; ruby: 3
file content (31 lines) | stat: -rw-r--r-- 991 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
syntax = "proto3";

// If you make any changes make sure you run: make regenerate-proto

package gitlab.agent.agent_tracker.rpc;

option go_package = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/agent_tracker/rpc";

import "internal/module/agent_tracker/agent_tracker.proto";
//import "github.com/envoyproxy/protoc-gen-validate/blob/master/validate/validate.proto";
import "validate/validate.proto";

message GetConnectedAgentsRequest {
  oneof request {
    option (validate.required) = true;

    int64 project_id = 1;
    int64 agent_id = 2;
  }
}

message GetConnectedAgentsResponse {
  // There may 0 or more agents with the same id, depending on the number of running agentk Pods.
  repeated agent_tracker.ConnectedAgentInfo agents = 1 [json_name = "agents"];
}

service AgentTracker {
  // Get connected agents for a configuration project or an agent id.
  rpc GetConnectedAgents (GetConnectedAgentsRequest) returns (GetConnectedAgentsResponse) {
  }
}