github.com/golang/dep@v0.5.4/gps/internal/pb/source_cache.proto (about)

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  syntax = "proto3";
     6  package pb;
     7  
     8  // Constraint is a serializable representation of a gps.Constraint or gps.UnpairedVersion.
     9  message Constraint {
    10  	enum Type {
    11  		Revision = 0;
    12  		Branch = 1;
    13  		DefaultBranch = 2;
    14  		Version = 3;
    15  		Semver = 4;
    16  	}
    17  	Type type = 1;
    18  	string value = 2;
    19  	//TODO strongly typed Semver field
    20  }
    21  
    22  // ProjectProperties is a serializable representation of gps.ProjectRoot and gps.ProjectProperties.
    23  message ProjectProperties {
    24  	string root = 1;
    25  	string source = 2;
    26  	Constraint constraint = 3;
    27  }
    28  
    29  // LockedProject is a serializable representation of gps.LockedProject.
    30  message LockedProject {
    31  	string root = 1;
    32  	string source = 2;
    33  	Constraint unpairedVersion = 3;
    34  	string revision = 4;
    35  	repeated string packages = 5;
    36  }