Files
archie/proto/daemon/v1/daemon.proto
T

30 lines
811 B
Protocol Buffer

syntax = "proto3";
package daemon.v1;
// DaemonService exposes checks that must use the daemon's actual credentials.
service DaemonService {
// CheckRepository checks a saved binding for an execution identity. It does
// not create a branch, commit or pull request.
rpc CheckRepository(CheckRepositoryRequest) returns (CheckRepositoryResponse);
}
message CheckRepositoryRequest {
string owner = 1;
string repository = 2;
string identity_id = 3;
}
message CheckRepositoryResponse {
bool verified = 1;
string connection = 2;
string operation = 3;
string account = 4;
string base_branch = 5;
string code = 6;
string message = 7;
// Operations the identity can perform: clone was read, push and pr are
// permitted and the credential can write.
repeated string operations = 8;
}