Documentation
¶
Index ¶
- Variables
- type ClientsPage
- type ClientsPageClient
- type ErrorPageData
- type FrontendHandler
- func (fh *FrontendHandler) BuildPageHeader() (string, error)
- func (fh *FrontendHandler) Clients(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) HandleNotFound(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) HandlePageError(w http.ResponseWriter, r *http.Request, pageError error)
- func (fh *FrontendHandler) Index(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) IndexData(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) LogsData(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) Registry(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) RegistryData(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) TestPage(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) TestPageData(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) TestRun(w http.ResponseWriter, r *http.Request)
- func (fh *FrontendHandler) TestRunData(w http.ResponseWriter, r *http.Request)
- type IndexPage
- type IndexPageArgs
- type Logs
- type LogsEntry
- type Meta
- type PageData
- type RegistryPage
- type RegistryPageArgs
- type SidebarData
- type SidebarTest
- type TestPage
- type TestPageArgs
- type TestRegistryData
- type TestRunData
- type TestRunPage
- type TestRunTask
- type TestRunTaskLog
- type TestRunTaskResult
Constants ¶
This section is empty.
Variables ¶
View Source
var LayoutTemplateFiles = []string{
"_layout/layout.html",
"_layout/header.html",
"_layout/footer.html",
}
Functions ¶
This section is empty.
Types ¶
type ClientsPage ¶
type ClientsPage struct {
Clients []*ClientsPageClient `json:"clients"`
ClientCount uint64 `json:"client_count"`
}
type ClientsPageClient ¶
type ClientsPageClient struct {
Index int `json:"index"`
Name string `json:"name"`
CLVersion string `json:"cl_version"`
CLType int64 `json:"cl_type"`
CLHeadSlot uint64 `json:"cl_head_slot"`
CLHeadRoot []byte `json:"cl_head_root"`
CLStatus string `json:"cl_status"`
CLLastRefresh time.Time `json:"cl_refresh"`
CLLastError string `json:"cl_error"`
CLIsReady bool `json:"cl_ready"`
ELVersion string `json:"el_version"`
ELType int64 `json:"el_type"`
ELHeadNumber uint64 `json:"el_head_number"`
ELHeadHash []byte `json:"el_head_hash"`
ELStatus string `json:"el_status"`
ELLastRefresh time.Time `json:"el_refresh"`
ELLastError string `json:"el_error"`
ELIsReady bool `json:"el_ready"`
}
type ErrorPageData ¶ added in v0.0.10
type FrontendHandler ¶
type FrontendHandler struct {
// contains filtered or unexported fields
}
func NewFrontendHandler ¶
func NewFrontendHandler(coordinator types.Coordinator, logger logrus.FieldLogger, siteName string, minifyHTML, debugMode, securityTrimmed, apiEnabled bool) *FrontendHandler
func (*FrontendHandler) BuildPageHeader ¶ added in v0.0.10
func (fh *FrontendHandler) BuildPageHeader() (string, error)
func (*FrontendHandler) Clients ¶
func (fh *FrontendHandler) Clients(w http.ResponseWriter, r *http.Request)
Clients will return the "clients" page using a go template
func (*FrontendHandler) HandleNotFound ¶ added in v0.0.10
func (fh *FrontendHandler) HandleNotFound(w http.ResponseWriter, r *http.Request)
func (*FrontendHandler) HandlePageError ¶ added in v0.0.10
func (fh *FrontendHandler) HandlePageError(w http.ResponseWriter, r *http.Request, pageError error)
func (*FrontendHandler) Index ¶
func (fh *FrontendHandler) Index(w http.ResponseWriter, r *http.Request)
Index will return the "index" page using a go template
func (*FrontendHandler) IndexData ¶
func (fh *FrontendHandler) IndexData(w http.ResponseWriter, r *http.Request)
func (*FrontendHandler) LogsData ¶
func (fh *FrontendHandler) LogsData(w http.ResponseWriter, r *http.Request)
func (*FrontendHandler) Registry ¶ added in v0.0.12
func (fh *FrontendHandler) Registry(w http.ResponseWriter, r *http.Request)
Registry will return the "registry" page using a go template
func (*FrontendHandler) RegistryData ¶ added in v0.0.12
func (fh *FrontendHandler) RegistryData(w http.ResponseWriter, r *http.Request)
func (*FrontendHandler) ServeHTTP ¶ added in v0.0.10
func (fh *FrontendHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*FrontendHandler) TestPage ¶ added in v0.0.4
func (fh *FrontendHandler) TestPage(w http.ResponseWriter, r *http.Request)
Index will return the "index" page using a go template
func (*FrontendHandler) TestPageData ¶ added in v0.0.4
func (fh *FrontendHandler) TestPageData(w http.ResponseWriter, r *http.Request)
func (*FrontendHandler) TestRun ¶ added in v0.0.4
func (fh *FrontendHandler) TestRun(w http.ResponseWriter, r *http.Request)
Test will return the "test" page using a go template
func (*FrontendHandler) TestRunData ¶ added in v0.0.4
func (fh *FrontendHandler) TestRunData(w http.ResponseWriter, r *http.Request)
type IndexPage ¶
type IndexPage struct {
CanCancel bool `json:"can_cancel"`
Tests []*TestRunData `json:"tests"`
TotalTests uint64 `json:"total_tests"`
FirstTestIndex uint64 `json:"first_test_index"`
LastTestIndex uint64 `json:"last_test_index"`
TotalPages uint64 `json:"total_pages"`
PageSize uint64 `json:"page_size"`
CurrentPageIndex uint64 `json:"current_page_index"`
PrevPageIndex uint64 `json:"prev_page_index"`
NextPageIndex uint64 `json:"next_page_index"`
LastPageIndex uint64 `json:"last_page_index"`
}
type IndexPageArgs ¶ added in v0.0.12
type RegistryPage ¶ added in v0.0.12
type RegistryPage struct {
CanRegister bool `json:"can_register"`
CanStart bool `json:"can_start"`
CanDelete bool `json:"can_delete"`
Tests []*TestRegistryData `json:"tests"`
TotalTests uint64 `json:"total_tests"`
FirstTestIndex uint64 `json:"first_test_index"`
LastTestIndex uint64 `json:"last_test_index"`
TotalPages uint64 `json:"total_pages"`
PageSize uint64 `json:"page_size"`
CurrentPageIndex uint64 `json:"current_page_index"`
PrevPageIndex uint64 `json:"prev_page_index"`
NextPageIndex uint64 `json:"next_page_index"`
LastPageRegistry uint64 `json:"last_page_index"`
}
type RegistryPageArgs ¶ added in v0.0.12
type SidebarData ¶ added in v0.0.4
type SidebarData struct {
ClientCount uint64 `json:"client_count"`
CLReadyCount uint64 `json:"cl_ready_count"`
CLHeadSlot uint64 `json:"cl_head_slot"`
CLHeadRoot []byte `json:"cl_head_root"`
ELReadyCount uint64 `json:"el_ready_count"`
ELHeadNumber uint64 `json:"el_head_number"`
ELHeadHash []byte `json:"el_head_hash"`
TestDescriptors []*SidebarTest `json:"tests"`
AllTestsActive bool `json:"all_tests_active"`
RegistryActive bool `json:"registry_active"`
CanRegisterTests bool `json:"can_register_tests"`
Version string `json:"version"`
}
type SidebarTest ¶ added in v0.0.4
type TestPage ¶
type TestPage struct {
ID string `json:"id"`
Name string `json:"name"`
Source string `json:"source"`
Config string `json:"config"`
CanStart bool `json:"can_start"`
CanCancel bool `json:"can_cancel"`
Tests []*TestRunData `json:"tests"`
TotalTests uint64 `json:"total_tests"`
FirstTestIndex uint64 `json:"first_test_index"`
LastTestIndex uint64 `json:"last_test_index"`
TotalPages uint64 `json:"total_pages"`
PageSize uint64 `json:"page_size"`
CurrentPageIndex uint64 `json:"current_page_index"`
PrevPageIndex uint64 `json:"prev_page_index"`
NextPageIndex uint64 `json:"next_page_index"`
}
type TestPageArgs ¶ added in v0.0.12
type TestRegistryData ¶ added in v0.0.12
type TestRunData ¶ added in v0.0.4
type TestRunData struct {
RunID uint64 `json:"run_id"`
TestID string `json:"test_id"`
Index uint64 `json:"index"`
Name string `json:"name"`
IsStarted bool `json:"started"`
IsCompleted bool `json:"completed"`
StartTime time.Time `json:"start_time"`
StopTime time.Time `json:"stop_time"`
Timeout time.Duration `json:"timeout"`
HasTimeout bool `json:"has_timeout"`
RunTime time.Duration `json:"runtime"`
HasRunTime bool `json:"has_runtime"`
Status string `json:"status"`
TaskCount uint64 `json:"task_count"`
}
type TestRunPage ¶ added in v0.0.4
type TestRunPage struct {
RunID uint64 `json:"runId"`
TestID string `json:"testId"`
Name string `json:"name"`
IsStarted bool `json:"started"`
IsCompleted bool `json:"completed"`
StartTime int64 `json:"start_time"`
StopTime int64 `json:"stop_time"`
Timeout int64 `json:"timeout"` // milliseconds
Status string `json:"status"`
IsSecTrimmed bool `json:"is_sec_trimmed"`
Tasks []*TestRunTask `json:"tasks"`
}
type TestRunTask ¶ added in v0.0.4
type TestRunTask struct {
Index uint64 `json:"index"`
ParentIndex uint64 `json:"parent_index"`
Name string `json:"name"`
Title string `json:"title"`
IsStarted bool `json:"started"`
IsCompleted bool `json:"completed"`
StartTime int64 `json:"start_time"`
StopTime int64 `json:"stop_time"`
Timeout int64 `json:"timeout"` // milliseconds
RunTime int64 `json:"runtime"` // milliseconds
Status string `json:"status"`
Result string `json:"result"`
ResultError string `json:"result_error"`
ResultFiles []*TestRunTaskResult `json:"result_files"`
}
type TestRunTaskLog ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.