summaryrefslogtreecommitdiff
path: root/package.proto
blob: 80a9cc7d4adc9b78a5a419cf46962392fd077302 (plain)
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
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)
        google.protobuf.Timestamp   ctime            = 4;  // the last time this package was seen (used to timeout entries)
        string                      srcPath          = 5;  // path to the sources (go.wit.com/apps/zookeeper)
        bool                        installed        = 6;  // if installed on your machine, this should be set to true
        string                      pkgName          = 7;  // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
        string                      Architecture     = 8;  // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
        string                      Source           = 9;  // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
        string                      Package          = 10; // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
        string                      Size             = 11; // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
        string                      Depends          = 12; // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
        string                      Maintainer       = 13; // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
        string                      Filename         = 14; // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
        string                      Description      = 15; // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
        string                      SHA1             = 16; // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
        string                      MD5SUM           = 17; // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
        string                      SHA256           = 18; // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
        string                      SHA512           = 19; // the apt filename pool/main/f/foo/foo_2.2.2_riscv64.deb
}

message Packages {                                         // `autogenpb:marshal` `autogenpb:gui` `autogenpb:http`
        string                      uuid             = 1;  // `autogenpb:uuid:2f26cc03-ea30-4481-a333-ad0acc86e1d3`
        string                      version          = 2;  // `autogenpb:version:v0.0.1`
        repeated Package            packages         = 3;
        string                      filename         = 4;  // `autogenpb:save` -- this enables autogenerated pb.Load() and pb.Save()
}