-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathversion.proto
More file actions
49 lines (42 loc) · 1.74 KB
/
version.proto
File metadata and controls
49 lines (42 loc) · 1.74 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright (C) 2023 Braiins Systems s.r.o.
//
// This file is part of Braiins Open-Source Initiative (BOSI).
//
// BOSI is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//
// Please, keep in mind that we may also license BOSI or any part thereof
// under a proprietary license. For more information on the terms and conditions
// of such proprietary license or if you have any other questions, please
// contact us at opensource@braiins.com.
syntax = "proto3";
package braiins.bos;
option go_package = "github.com/braiins/bos-plus-api/braiins/bos;bos_proto";
// Value of LATEST_API_VERSION constant in comment below
// is parsed in grpc server (from protoc FileDescriptorSet)
// and used as response for ApiVersionService.GetApiVersion().
// This is a workaround because grpc generator does not support
// proto3 extensions and proto3 does not allow specifying custom
// default values. Value follows semver format.
// LATEST_API_VERSION=1.9.0
message ApiVersion {
uint64 major = 1;
uint64 minor = 2;
uint64 patch = 3;
string pre = 4;
string build = 5;
}
message ApiVersionRequest {}
service ApiVersionService {
rpc GetApiVersion(ApiVersionRequest) returns (ApiVersion);
}