Documentation ¶
Index ¶
Constants ¶
View Source
const ( // strings for setting visibility Public = "public" Private = "private" None = "none" )
View Source
const Collection = "artifact_files"
Variables ¶
View Source
var ( // BSON fields for artifact file structs TaskIdKey = bsonutil.MustHaveTag(Entry{}, "TaskId") TaskNameKey = bsonutil.MustHaveTag(Entry{}, "TaskDisplayName") BuildIdKey = bsonutil.MustHaveTag(Entry{}, "BuildId") FilesKey = bsonutil.MustHaveTag(Entry{}, "Files") NameKey = bsonutil.MustHaveTag(File{}, "Name") LinkKey = bsonutil.MustHaveTag(File{}, "Link") )
View Source
var ValidVisibilities = []string{Public, Private, None, ""}
Functions ¶
Types ¶
type Entry ¶
type Entry struct { TaskId string `json:"task" bson:"task"` TaskDisplayName string `json:"task_name" bson:"task_name"` BuildId string `json:"build" bson:"build"` Files []File `json:"files" bson:"files"` }
Entry stores groups of names and links (not content!) for files uploaded to the api server by a running agent. These links could be for build or task-relevant files (things like extra results, test coverage, etc.)
type File ¶
type File struct { // Name is a human-readable name for the file being linked, e.g. "Coverage Report" Name string `json:"name" bson:"name"` // Link is the link to the file, e.g. "http://fileserver/coverage.html" Link string `json:"link" bson:"link"` // Visibility determines who can see the file in the UI Visibility string `json:"visibility" bson:"visibility"` }
File is a pairing of name and link for easy storage/display
Click to show internal directories.
Click to hide internal directories.