summaryrefslogtreecommitdiff
path: root/goDep.proto
blob: ee31d430f8630eede7bff1cef0774a6d2dc8a4b1 (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";

// store go dependancies

package gitpb;

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

// global settings for autogenpb `autogenpb:mutex`

message GoDep {                                         // `autogenpb:nomutex`
        string                      hash          = 1;  // `autogenpb:unique` `autogenpb:sort`	// md5sum/hash value from the go.sum file
        google.protobuf.Timestamp   ctime         = 2;  // get the go date from 'go list' ?
        string                      version       = 3;  // v1.2.2
        string                      goPath        = 4;  // `autogenpb:unique`  `autogenpb:sort` // "go.wit.com/lib/foo"
        string                      goVersion     = 5;  // version of golang the developer used to make this package version
}

message GoDeps {                                        // `autogenpb:nomutex`
        string                      uuid          = 1;  // `autogenpb:uuid:7de62c09-b335-4d80-902d-08552c501b7c`
        string                      version       = 2;  // `autogenpb:version:v0.0.51`
        repeated GoDep              goDeps        = 3;  // `autogenpb:unique`  `autogenpb:sort`
}