Documentation ¶
Index ¶
- func NoCache(h http.HandlerFunc) http.HandlerFunc
- type FrontendTestRunListEntry
- type FrontendTestRunRoleCount
- type HttpServer
- func (srv *HttpServer) AuthorizeHandler(w http.ResponseWriter, req *http.Request)
- func (srv *HttpServer) AuthorizeScriptHandler(w http.ResponseWriter, req *http.Request)
- func (srv *HttpServer) GetConfigForClient(hi *tls.ClientHelloInfo) (*tls.Config, error)
- func (srv *HttpServer) GetHttpsEndpoint(protocol string, port int, req *http.Request) string
- func (srv *HttpServer) GetSystemStateEvent() coordinator.Event
- func (srv *HttpServer) HealthHandler(w http.ResponseWriter, req *http.Request)
- func (srv *HttpServer) HttpsRedirect(w http.ResponseWriter, req *http.Request)
- func (srv *HttpServer) ReloadCerts()
- func (srv *HttpServer) Run() error
- func (srv *HttpServer) UserFromCert(cert *x509.Certificate) *SystemUser
- func (srv *HttpServer) UserFromRequest(r *http.Request) (*SystemUser, error)
- func (srv *HttpServer) UserFromThumbprint(thumbprint string) *SystemUser
- type SweepData
- type SweepPlotAxis
- type SweepPlotConfig
- type SweepPlotField
- type SweepPlotType
- type SystemUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NoCache ¶
func NoCache(h http.HandlerFunc) http.HandlerFunc
Types ¶
type FrontendTestRunListEntry ¶
type FrontendTestRunListEntry struct { ID string `json:"id"` CreatedByThumbprint string `json:"createdByuserThumbprint"` Created time.Time `json:"created"` Started time.Time `json:"started"` Completed time.Time `json:"completed"` DontRunUntil time.Time `json:"notBefore"` Status common.TestRunStatus `json:"status"` Architecture string `json:"architectureID"` SweepID string `json:"sweepID"` SweepOneAtATime bool `json:"sweepOneAtATime"` RoleCounts []FrontendTestRunRoleCount `json:"roleCounts"` Details string `json:"details"` AvgThroughput float64 `json:"avgThroughput"` TailLatency float64 `json:"tailLatency"` PerformanceDataAvailable bool `json:"performanceDataAvailable"` InvalidTxRate float64 `json:"invalidTxRate"` FixedTxRate float64 `json:"fixedTxRate"` PreseedCount int64 `json:"preseedCount"` PreseedShards bool `json:"preseedShards"` ShardReplicationFactor int `json:"shardReplicationFactor"` LoadGenOutputCount int `json:"loadGenOutputCount"` LoadGenInputCount int `json:"loadGenInputCount"` }
Limited subset of test run properties used for rendering the list(s)
type FrontendTestRunRoleCount ¶
type FrontendTestRunRoleCount struct { RoleType common.SystemRole `json:"role"` Count int `json:"count"` }
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer( c *coordinator.Coordinator, s *sources.SourcesManager, a *agents.AgentsManager, t *testruns.TestRunManager, ev chan coordinator.Event, awsm *awsmgr.AwsManager, port int, version string, ) (*HttpServer, error)
func (*HttpServer) AuthorizeHandler ¶
func (srv *HttpServer) AuthorizeHandler( w http.ResponseWriter, req *http.Request, )
func (*HttpServer) AuthorizeScriptHandler ¶
func (srv *HttpServer) AuthorizeScriptHandler( w http.ResponseWriter, req *http.Request, )
func (*HttpServer) GetConfigForClient ¶
func (srv *HttpServer) GetConfigForClient( hi *tls.ClientHelloInfo, ) (*tls.Config, error)
func (*HttpServer) GetHttpsEndpoint ¶
func (*HttpServer) GetSystemStateEvent ¶
func (srv *HttpServer) GetSystemStateEvent() coordinator.Event
func (*HttpServer) HealthHandler ¶
func (srv *HttpServer) HealthHandler(w http.ResponseWriter, req *http.Request)
func (*HttpServer) HttpsRedirect ¶
func (srv *HttpServer) HttpsRedirect(w http.ResponseWriter, req *http.Request)
func (*HttpServer) ReloadCerts ¶
func (srv *HttpServer) ReloadCerts()
func (*HttpServer) Run ¶
func (srv *HttpServer) Run() error
func (*HttpServer) UserFromCert ¶
func (srv *HttpServer) UserFromCert(cert *x509.Certificate) *SystemUser
func (*HttpServer) UserFromRequest ¶
func (srv *HttpServer) UserFromRequest(r *http.Request) (*SystemUser, error)
func (*HttpServer) UserFromThumbprint ¶
func (srv *HttpServer) UserFromThumbprint(thumbprint string) *SystemUser
type SweepData ¶
type SweepData struct { ID string `json:"id"` ArchitectureID string `json:"architectureID"` RunCount int `json:"runCount"` SweepType string `json:"sweepType"` SweepParameter string `json:"sweepParameter"` FirstRun time.Time `json:"firstRun"` LastRun time.Time `json:"lastRun"` FirstRunData FrontendTestRunListEntry `json:"firstRunData"` FirstRunID string SweepRoleRuns int `json:"sweepRoleRuns"` SweepParameterStart float64 `json:"sweepParameterStart"` SweepParameterStop float64 `json:"sweepParameterStop"` SweepParameterIncrement float64 `json:"sweepParameterIncrement"` SweepRoles []*common.TestRunRole `json:"sweepRoles"` CommonParameters map[string]interface{} `json:"commonParameters"` }
type SweepPlotAxis ¶
type SweepPlotConfig ¶
type SweepPlotConfig struct { // The types of plots users can generate Types []SweepPlotType `json:"types"` Fields []SweepPlotField `json:"fields"` Axes []SweepPlotAxis `json:"axes"` }
type SweepPlotField ¶
type SweepPlotType ¶
Source Files ¶
- cert.go
- fields.go
- frontendtestrun.go
- handler_commands_output.go
- handler_reports_generate.go
- handler_sources_log.go
- handler_sources_update.go
- handler_sweepplots_deletesaved.go
- handler_sweepplots_get.go
- handler_sweepplots_listsaved.go
- handler_sweepplots_sweepplot.go
- handler_sweeps_cancelsweep.go
- handler_sweeps_continuesweep.go
- handler_sweeps_listsweeps.go
- handler_sweeps_schedulemissingsweepruns.go
- handler_sweeps_sweepmatrix.go
- handler_sweeps_sweepmatrixcsv.go
- handler_system_initialstate.go
- handler_system_maintenance.go
- handler_system_reconfiguremaxagents.go
- handler_system_version.go
- handler_testruns_bandwidth.go
- handler_testruns_details.go
- handler_testruns_estimate_charge.go
- handler_testruns_log.go
- handler_testruns_outputs.go
- handler_testruns_plot.go
- handler_testruns_prioritize.go
- handler_testruns_recalcresults.go
- handler_testruns_redownloadoutputs.go
- handler_testruns_results.go
- handler_testruns_retryspawn.go
- handler_testruns_schedule.go
- handler_testruns_terminate.go
- handler_testruns_testrunmatrix.go
- handler_testruns_testrunmatrixcsv.go
- handler_users_add.go
- handler_users_delete.go
- handler_users_firsttimeadd.go
- handler_users_list.go
- handler_websocket.go
- handler_websockets_wstoken.go
- http.go
- json.go
- matrix.go
- nocache.go
- performanceplots.go
- report.go
- spa.go
- sweepplots.go
- sweeps.go
- users.go
- websocket.go
Click to show internal directories.
Click to hide internal directories.