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-- 836 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.notifications.rpc;

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

import "validate/validate.proto";

message GitPushEventRequest {
  Project project = 1 [(validate.rules).message.required = true];
}

message Project {
  // The numeric GitLab project id
  int64 id = 1 [(validate.rules).int64.gt = 0];
  // The full path to the GitLab project
  string full_path = 2 [(validate.rules).string.min_bytes = 1];
}

message GitPushEventResponse {
}

// Service to send notifications to KAS
service Notifications {
  // Emit a git push event
  // This may be a tag, branch or commit
  rpc GitPushEvent (GitPushEventRequest) returns (GitPushEventResponse) {
  }
}