| OLD | NEW | 
|---|
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 | 
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 package resp | 5 package resp | 
| 6 | 6 | 
|  | 7 import "github.com/luci/luci-go/milo/appengine/common/model" | 
|  | 8 | 
| 7 // This file contains the structures for defining a Console view. | 9 // This file contains the structures for defining a Console view. | 
| 8 // Console: The main entry point and the overall struct for a console page. | 10 // Console: The main entry point and the overall struct for a console page. | 
| 9 // BuilderRef: Used both as an input to request a builder and headers for the co
    nsole. | 11 // BuilderRef: Used both as an input to request a builder and headers for the co
    nsole. | 
| 10 // CommitBuild: A row in the console.  References a commit with a list of build 
    summaries. | 12 // CommitBuild: A row in the console.  References a commit with a list of build 
    summaries. | 
| 11 // ConsoleBuild: A cell in the console. Contains all information required to ren
    der the cell. | 13 // ConsoleBuild: A cell in the console. Contains all information required to ren
    der the cell. | 
| 12 | 14 | 
| 13 // Console represents a console view.  Commit contains the full matrix of | 15 // Console represents a console view.  Commit contains the full matrix of | 
| 14 // Commits x Builder, and BuilderRef contains information on how to render | 16 // Commits x Builder, and BuilderRef contains information on how to render | 
| 15 // the header.  The two structs are expected to be consistent.  IE len(Console.[
    ]BuilderRef) | 17 // the header.  The two structs are expected to be consistent.  IE len(Console.[
    ]BuilderRef) | 
| 16 // Should equal len(commit.Build) for all commit in Console.Commit. | 18 // Should equal len(commit.Build) for all commit in Console.Commit. | 
| (...skipping 26 matching lines...) Expand all  Loading... | 
| 43         Commit | 45         Commit | 
| 44         Build []*ConsoleBuild | 46         Build []*ConsoleBuild | 
| 45 } | 47 } | 
| 46 | 48 | 
| 47 // ConsoleBuild is a cell in the console. Contains all information required to r
    ender the cell. | 49 // ConsoleBuild is a cell in the console. Contains all information required to r
    ender the cell. | 
| 48 type ConsoleBuild struct { | 50 type ConsoleBuild struct { | 
| 49         // Link to the build.  Alt-text goes on the Label of the link | 51         // Link to the build.  Alt-text goes on the Label of the link | 
| 50         Link *Link | 52         Link *Link | 
| 51 | 53 | 
| 52         // Status of the build. | 54         // Status of the build. | 
| 53 »       Status Status | 55 »       Status model.Status | 
| 54 } | 56 } | 
| OLD | NEW | 
|---|