summaryrefslogtreecommitdiff
path: root/package.proto
blob: fdf81a3d6162ec2370c7cd63c5abb79e6be6c9df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
syntax = "proto3";

package gitpb;

// import "google/protobuf/duration.proto"; // Import the well-known type for Timestamp
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp

// global settings for autogenpb `autogenpb:mutex`

message Package {
        string                      name          = 1;  // `autogenpb:unique` `autogenpb:sort`
        string                      version       = 2;  // version: 0.0.3
        google.protobuf.Timestamp   laststamp     = 3;  // the last time this package was seen (used to timeout entries)
        string                      srcPath       = 4;  // path to the sources (go.wit.com/apps/zookeeper)
        bool                        installed     = 5;  // if installed on your machine, this should be set to true
        string                      pkgName       = 6;  // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
}

message Packages {                                      // `autogenpb:marshal`
        string                      uuid          = 1;  // `autogenpb:uuid:2f26cc03-ea30-4481-a333-ad0acc86e1d3`
        string                      version       = 2;  // `autogenpb:version:v0.0.1`
        repeated Package            packages      = 3;
}