github.com/billybanfield/evergreen@v0.0.0-20170525200750-eeee692790f7/model/manifest/manifest.go (about)

     1  package manifest
     2  
     3  const Collection = "manifest"
     4  
     5  // Manifest is a representation of the modules associated with the a version.
     6  // Id is the version id,
     7  // Revision is the revision of the version on the project
     8  // ProjectName is the Project Identifier,
     9  // Branch is the branch of the repository. Modules is a map of the GitHub repository name to the
    10  // Module's information associated with the specific version.
    11  type Manifest struct {
    12  	Id          string             `json:"id" bson:"_id"`
    13  	Revision    string             `json:"revision" bson:"revision"`
    14  	ProjectName string             `json:"project" bson:"project"`
    15  	Branch      string             `json:"branch" bson:"branch"`
    16  	Modules     map[string]*Module `json:"modules" bson:"modules"`
    17  }
    18  
    19  // A Module is a snapshot of the module associated with a version.
    20  // Branch is the branch of the repository,
    21  // Repo is the name of the repository,
    22  // Revision is the revision of the head of the branch,
    23  // Owner is the owner of the repository,
    24  // URL is the url to the GitHub API call to that specific commit.
    25  type Module struct {
    26  	Branch   string `json:"branch" bson:"branch"`
    27  	Repo     string `json:"repo" bson:"repo"`
    28  	Revision string `json:"revision" bson:"revision"`
    29  	Owner    string `json:"owner" bson:"owner"`
    30  	URL      string `json:"url" bson:"url"`
    31  }