This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gps: source cache: move protobufs to internal package
- Loading branch information
Showing
13 changed files
with
304 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Package pb provides generated Protocol Buffers for cache serialization. | ||
|
||
//go:generate protoc --go_out=. source_cache.proto | ||
package pb |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
syntax = "proto3"; | ||
package pb; | ||
|
||
// Constraint is a serializable representation of a gps.Constraint or gps.UnpairedVersion. | ||
message Constraint { | ||
enum Type { | ||
Revision = 0; | ||
Branch = 1; | ||
DefaultBranch = 2; | ||
Version = 3; | ||
Semver = 4; | ||
} | ||
Type type = 1; | ||
string value = 2; | ||
//TODO strongly typed Semver field | ||
} | ||
|
||
// ProjectProperties is a serializable representation of gps.ProjectRoot and gps.ProjectProperties. | ||
message ProjectProperties { | ||
string root = 1; | ||
string source = 2; | ||
Constraint constraint = 3; | ||
} | ||
|
||
// LockedProject is a serializable representation of gps.LockedProject. | ||
message LockedProject { | ||
string root = 1; | ||
string source = 2; | ||
Constraint unpairedVersion = 3; | ||
string revision = 4; | ||
repeated string packages = 5; | ||
} |
Oops, something went wrong.