Documentation ¶
Index ¶
Constants ¶
const (
// BuildJobListPageName is the name that identifies the BuildJobList page.
BuildJobListPageName = "buildJoblist"
)
const (
// JobLogPageName is the name that identifies the JobLogPage page.
JobLogPageName = "joblog"
)
const (
// ProjectBuildListPageName is the name that identifies thi ProjectBuildList page.
ProjectBuildListPageName = "projectbuildlist"
)
const (
// ProjectListPageName is the name that identifies thi projectList page.
ProjectListPageName = "projectlist"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildJobList ¶
type BuildJobList struct {
// contains filtered or unexported fields
}
BuildJobList is the page where a build job list will be available.
func NewBuildJobList ¶
func NewBuildJobList(controller controller.Controller, router *Router) *BuildJobList
NewBuildJobList returns a new BuildJobList.
func (*BuildJobList) BeforeLoad ¶
func (b *BuildJobList) BeforeLoad()
BeforeLoad satisfies Page interface.
func (*BuildJobList) Refresh ¶
func (b *BuildJobList) Refresh(projectID, buildID string)
Refresh will refresh all the page data.
func (*BuildJobList) Register ¶
func (b *BuildJobList) Register(pages *tview.Pages)
Register satisfies Page interface.
type JobLog ¶
type JobLog struct {
// contains filtered or unexported fields
}
JobLog is the page where a build job log will be available.
func NewJobLog ¶
func NewJobLog(controller controller.Controller, router *Router) *JobLog
NewJobLog returns a new JobLog.
type Page ¶
type Page interface { // Register will register as a page. Register(pages *tview.Pages) // BeforeLoad will be called when loading the page from one of the other pages. BeforeLoad() }
Page is the way we will render the different pages of the ui
type ProjectBuildList ¶
type ProjectBuildList struct {
// contains filtered or unexported fields
}
ProjectBuildList is the page where a projects build list will be available.
func NewProjectBuildList ¶
func NewProjectBuildList(controller controller.Controller, router *Router) *ProjectBuildList
NewProjectBuildList returns a new ProjectBuildList.
func (*ProjectBuildList) BeforeLoad ¶
func (p *ProjectBuildList) BeforeLoad()
BeforeLoad satisfies Page interface.
func (*ProjectBuildList) Refresh ¶
func (p *ProjectBuildList) Refresh(projectID string)
Refresh will refresh all the page data.
func (*ProjectBuildList) Register ¶
func (p *ProjectBuildList) Register(pages *tview.Pages)
Register satisfies Page interface.
type ProjectList ¶
type ProjectList struct {
// contains filtered or unexported fields
}
ProjectList is the main page where the project list will be available.
func NewProjectList ¶
func NewProjectList(controller controller.Controller, router *Router) *ProjectList
NewProjectList returns a new project list.
func (*ProjectList) BeforeLoad ¶
func (p *ProjectList) BeforeLoad()
BeforeLoad satisfies Page interface.
func (*ProjectList) Refresh ¶
func (p *ProjectList) Refresh()
Refresh will refresh all the page data.
func (*ProjectList) Register ¶
func (p *ProjectList) Register(pages *tview.Pages)
Register satisfies Page interface.
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router knows how to route the ui from one page to another.
func NewRouter ¶
func NewRouter(controller controller.Controller, pages *tview.Pages) *Router
NewRouter returns a new router.
func (*Router) LoadBuildJobList ¶
LoadBuildJobList will set the ui on the build job list.
func (*Router) LoadJobLog ¶
LoadJobLog will set the ui on the build job log.
func (*Router) LoadProjectBuildList ¶
LoadProjectBuildList will set the ui on the project build list.
func (*Router) LoadProjectList ¶
func (r *Router) LoadProjectList()
LoadProjectList will set the ui on the project list.