本文整理匯總了Golang中github.com/concourse/atc/db/fakes.FakePipelineDB.GetDashboardReturns方法的典型用法代碼示例。如果您正苦於以下問題:Golang FakePipelineDB.GetDashboardReturns方法的具體用法?Golang FakePipelineDB.GetDashboardReturns怎麽用?Golang FakePipelineDB.GetDashboardReturns使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/concourse/atc/db/fakes.FakePipelineDB
的用法示例。
在下文中一共展示了FakePipelineDB.GetDashboardReturns方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1:
pipelineDB.GetDashboardReturns(db.Dashboard{
{
Job: job,
JobConfig: jobs[0],
NextBuild: &db.Build{
ID: 3,
Name: "2",
JobName: "job-1",
PipelineName: "another-pipeline",
Status: db.StatusStarted,
},
FinishedBuild: &db.Build{
ID: 1,
Name: "1",
JobName: "job-1",
PipelineName: "another-pipeline",
Status: db.StatusSucceeded,
StartTime: time.Unix(1, 0),
EndTime: time.Unix(100, 0),
},
},
{
Job: job,
JobConfig: jobs[1],
NextBuild: nil,
FinishedBuild: &db.Build{
ID: 4,
Name: "1",
JobName: "job-2",
PipelineName: "another-pipeline",
Status: db.StatusSucceeded,
StartTime: time.Unix(101, 0),
EndTime: time.Unix(200, 0),
},
},
{
Job: job,
JobConfig: jobs[2],
NextBuild: nil,
FinishedBuild: nil,
},
}, groups, nil)