32 lines
1.5 KiB
Protocol Buffer
32 lines
1.5 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package forgepb;
|
|
|
|
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
|
|
|
|
// define 3 branches. that is all that is supported
|
|
// the term 'master' is used in the code because 'main' is a reserved word in golang already
|
|
// allow 'read only' and 'private' flags
|
|
// package names sometimes must be different than the binary name
|
|
// for example 'zookeeper' is packaged as 'zookeeper-go'
|
|
// due to the prior apache foundation project. This happens and is ok!
|
|
message Repo {
|
|
string goPath = 1; // Examples: 'go.wit.com/apps/go-clone' or "~/mythings" or "/home/src/foo"
|
|
bool writable = 2; // if you have write access to the repo
|
|
bool readOnly = 3; // the opposite, but needed for now because I don't know what I'm doing
|
|
bool private = 4; // if the repo can be published
|
|
bool directory = 5; // everything in this directory should use these writable & private values
|
|
string masterBranch = 6; // git 'main' or 'master' branch name
|
|
string develBranch = 7; // whatever the git 'devel' branch name is
|
|
string userBranch = 8; // whatever your username branch is
|
|
string debname = 9; // this is the actual .deb name of the package
|
|
google.protobuf.Timestamp verstamp = 10; // the git commit timestamp of the version
|
|
}
|
|
|
|
// TODO: autogen 'Repos'
|
|
message Repos {
|
|
string uuid = 1; // could be useful for /usr/share/file/magic someday?
|
|
string version = 2; // could be used for protobuf schema change violations?
|
|
repeated Repo repos = 3;
|
|
}
|