Documentation ¶
Index ¶
- type BaseCtrl
- func (c *BaseCtrl) BizErrResp(err *domain.BizError, msg string) (ret domain.Response)
- func (c *BaseCtrl) ErrMsg(err commConsts.ResponseCode, msg string) (ret string)
- func (c *BaseCtrl) ErrResp(respCode commConsts.ResponseCode, msg string) (ret domain.Response)
- func (c *BaseCtrl) SuccessResp(data interface{}) (ret domain.Response)
- type ConfigCtrl
- type FileCtrl
- type InterpreterCtrl
- func (c *InterpreterCtrl) Create(ctx iris.Context)
- func (c *InterpreterCtrl) Delete(ctx iris.Context)
- func (c *InterpreterCtrl) Get(ctx iris.Context)
- func (c *InterpreterCtrl) GetLangInterpreter(ctx iris.Context)
- func (c *InterpreterCtrl) GetLangSettings(ctx iris.Context)
- func (c *InterpreterCtrl) List(ctx iris.Context)
- func (c *InterpreterCtrl) Update(ctx iris.Context)
- type JobCtrl
- type PluginCtrl
- type ProxyCtrl
- type ServerCtrl
- type SettingsCtrl
- type SiteCtrl
- type TestBugCtrl
- type TestFilterCtrl
- type TestResultCtrl
- func (c *TestResultCtrl) Delete(ctx iris.Context)
- func (c *TestResultCtrl) DownloadLog(ctx iris.Context)
- func (c *TestResultCtrl) Get(ctx iris.Context)
- func (c *TestResultCtrl) GetFailure(ctx iris.Context)
- func (c *TestResultCtrl) GetLatest(ctx iris.Context)
- func (c *TestResultCtrl) GetStatistic(ctx iris.Context)
- func (c *TestResultCtrl) List(ctx iris.Context)
- func (c *TestResultCtrl) MvLog(ctx iris.Context)
- func (c *TestResultCtrl) Submit(ctx iris.Context)
- func (c *TestResultCtrl) UpdateStatistic(ctx iris.Context)
- type TestScriptCtrl
- func (c *TestScriptCtrl) Create(ctx iris.Context)
- func (c *TestScriptCtrl) Delete(ctx iris.Context)
- func (c *TestScriptCtrl) Extract(ctx iris.Context)
- func (c *TestScriptCtrl) Get(ctx iris.Context)
- func (c *TestScriptCtrl) GetCaseIdsFromReport(ctx iris.Context)
- func (c *TestScriptCtrl) List(ctx iris.Context)
- func (c *TestScriptCtrl) LoadCodeChildren(ctx iris.Context)
- func (c *TestScriptCtrl) Move(ctx iris.Context)
- func (c *TestScriptCtrl) Paste(ctx iris.Context)
- func (c *TestScriptCtrl) Rename(ctx iris.Context)
- func (c *TestScriptCtrl) SyncDirToZentao(ctx iris.Context)
- func (c *TestScriptCtrl) SyncFromZentao(ctx iris.Context)
- func (c *TestScriptCtrl) SyncToZentao(ctx iris.Context)
- func (c *TestScriptCtrl) UpdateCode(ctx iris.Context)
- func (c *TestScriptCtrl) UpdateName(ctx iris.Context)
- type WebSocketCtrl
- type WorkspaceCtrl
- func (c *WorkspaceCtrl) Create(ctx iris.Context)
- func (c *WorkspaceCtrl) Delete(ctx iris.Context)
- func (c *WorkspaceCtrl) DeleteByPath(ctx iris.Context)
- func (c *WorkspaceCtrl) Get(ctx iris.Context)
- func (c *WorkspaceCtrl) List(ctx iris.Context)
- func (c *WorkspaceCtrl) ListByProduct(ctx iris.Context)
- func (c *WorkspaceCtrl) Update(ctx iris.Context)
- func (c *WorkspaceCtrl) UploadScripts(ctx iris.Context)
- func (c *WorkspaceCtrl) UploadScriptsToProxy(ctx iris.Context)
- type ZentaoCtrl
- func (c *ZentaoCtrl) GetProfile(ctx iris.Context)
- func (c *ZentaoCtrl) ListBugFields(ctx iris.Context)
- func (c *ZentaoCtrl) ListCase(ctx iris.Context)
- func (c *ZentaoCtrl) ListLang(ctx iris.Context)
- func (c *ZentaoCtrl) ListModule(ctx iris.Context)
- func (c *ZentaoCtrl) ListProduct(ctx iris.Context)
- func (c *ZentaoCtrl) ListSiteAndProduct(ctx iris.Context)
- func (c *ZentaoCtrl) ListSuite(ctx iris.Context)
- func (c *ZentaoCtrl) ListTask(ctx iris.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseCtrl ¶
type BaseCtrl struct { }
func NewBaseCtrl ¶
func NewBaseCtrl() *BaseCtrl
func (*BaseCtrl) BizErrResp ¶
func (*BaseCtrl) ErrMsg ¶
func (c *BaseCtrl) ErrMsg(err commConsts.ResponseCode, msg string) (ret string)
func (*BaseCtrl) ErrResp ¶
func (c *BaseCtrl) ErrResp(respCode commConsts.ResponseCode, msg string) (ret domain.Response)
func (*BaseCtrl) SuccessResp ¶
type ConfigCtrl ¶
type ConfigCtrl struct {
BaseCtrl
}
func NewConfigCtrl ¶
func NewConfigCtrl() *ConfigCtrl
func (*ConfigCtrl) SetVerbose ¶
func (c *ConfigCtrl) SetVerbose(ctx iris.Context)
type FileCtrl ¶
type FileCtrl struct { FileService *service.FileService `inject:""` BaseCtrl }
func NewFileCtrl ¶
func NewFileCtrl() *FileCtrl
type InterpreterCtrl ¶
type InterpreterCtrl struct { InterpreterService *service.InterpreterService `inject:""` WorkspaceService *service.WorkspaceService `inject:""` BaseCtrl }
func NewInterpreterCtrl ¶
func NewInterpreterCtrl() *InterpreterCtrl
func (*InterpreterCtrl) Create ¶
func (c *InterpreterCtrl) Create(ctx iris.Context)
func (*InterpreterCtrl) Delete ¶
func (c *InterpreterCtrl) Delete(ctx iris.Context)
func (*InterpreterCtrl) Get ¶
func (c *InterpreterCtrl) Get(ctx iris.Context)
func (*InterpreterCtrl) GetLangInterpreter ¶
func (c *InterpreterCtrl) GetLangInterpreter(ctx iris.Context)
func (*InterpreterCtrl) GetLangSettings ¶
func (c *InterpreterCtrl) GetLangSettings(ctx iris.Context)
func (*InterpreterCtrl) List ¶
func (c *InterpreterCtrl) List(ctx iris.Context)
func (*InterpreterCtrl) Update ¶
func (c *InterpreterCtrl) Update(ctx iris.Context)
type JobCtrl ¶
type JobCtrl struct { JobService *service.JobService `inject:""` BaseCtrl }
func NewJobCtrl ¶
func NewJobCtrl() *JobCtrl
func (*JobCtrl) Add ¶
func (c *JobCtrl) Add(ctx iris.Context)
@summary 添加脚本执行任务 @Accept json @Produce json @Param ZentaoExecReq body serverDomain.ZentaoExecReq true "Zentao Job Add Request Object" @Success 200 {object} domain.Response "code = success | fail" @Router /api/v1/jobs/add [post]
func (*JobCtrl) Cancel ¶
func (c *JobCtrl) Cancel(ctx iris.Context)
@summary 取消脚本执行任务 @Accept json @Produce json @Param ZentaoExecReq body serverDomain.ZentaoCancelReq true "Zentao Job Cancel Request Object" @Success 200 {object} domain.Response "code = success | fail" @Router /api/v1/jobs/cancel [post]
type PluginCtrl ¶
type PluginCtrl struct { PluginService *service.PluginService `inject:""` BaseCtrl }
func NewPluginCtrl ¶
func NewPluginCtrl() *PluginCtrl
func (*PluginCtrl) Cancel ¶
func (c *PluginCtrl) Cancel(ctx iris.Context)
func (*PluginCtrl) Exec ¶
func (c *PluginCtrl) Exec(ctx iris.Context)
func (*PluginCtrl) Install ¶
func (c *PluginCtrl) Install(ctx iris.Context)
func (*PluginCtrl) Start ¶
func (c *PluginCtrl) Start(ctx iris.Context)
func (*PluginCtrl) Stop ¶
func (c *PluginCtrl) Stop(ctx iris.Context)
func (*PluginCtrl) Uninstall ¶
func (c *PluginCtrl) Uninstall(ctx iris.Context)
type ProxyCtrl ¶
type ProxyCtrl struct { ProxyService *service.ProxyService `inject:""` WorkspaceService *service.WorkspaceService `inject:""` BaseCtrl }
func NewProxyCtrl ¶
func NewProxyCtrl() *ProxyCtrl
type ServerCtrl ¶
type ServerCtrl struct { ServerService *service.ServerService `inject:""` WorkspaceService *service.WorkspaceService `inject:""` BaseCtrl }
func NewServerCtrl ¶
func NewServerCtrl() *ServerCtrl
func (*ServerCtrl) Create ¶
func (c *ServerCtrl) Create(ctx iris.Context)
func (*ServerCtrl) Delete ¶
func (c *ServerCtrl) Delete(ctx iris.Context)
func (*ServerCtrl) Get ¶
func (c *ServerCtrl) Get(ctx iris.Context)
func (*ServerCtrl) List ¶
func (c *ServerCtrl) List(ctx iris.Context)
func (*ServerCtrl) Update ¶
func (c *ServerCtrl) Update(ctx iris.Context)
type SettingsCtrl ¶
type SettingsCtrl struct {
BaseCtrl
}
func NewSettingsCtrl ¶
func NewSettingsCtrl() *SettingsCtrl
func (*SettingsCtrl) SetLang ¶
func (c *SettingsCtrl) SetLang(ctx iris.Context)
type SiteCtrl ¶
type SiteCtrl struct { SiteService *service.SiteService `inject:""` BaseCtrl }
func NewSiteCtrl ¶
func NewSiteCtrl() *SiteCtrl
type TestBugCtrl ¶
type TestBugCtrl struct { TestBugService *service.TestBugService `inject:""` WorkspaceService *service.WorkspaceService `inject:""` SiteService *service.SiteService `inject:""` BaseCtrl }
func NewTestBugCtrl ¶
func NewTestBugCtrl() *TestBugCtrl
func (*TestBugCtrl) PrepareBugData ¶
func (c *TestBugCtrl) PrepareBugData(ctx iris.Context)
type TestFilterCtrl ¶
type TestFilterCtrl struct { TestFilterService *service.TestFilterService `inject:""` BaseCtrl }
func NewTestFilterCtrl ¶
func NewTestFilterCtrl() *TestFilterCtrl
func (*TestFilterCtrl) ListItems ¶
func (c *TestFilterCtrl) ListItems(ctx iris.Context)
ListItems 获取脚本过滤器的内容列表
type TestResultCtrl ¶
type TestResultCtrl struct { TestResultService *service.TestResultService `inject:""` StatisticService *service.StatisticService `inject:""` BaseCtrl }
func NewTestResultCtrl ¶
func NewTestResultCtrl() *TestResultCtrl
func (*TestResultCtrl) DownloadLog ¶
func (c *TestResultCtrl) DownloadLog(ctx iris.Context)
func (*TestResultCtrl) GetFailure ¶
func (c *TestResultCtrl) GetFailure(ctx iris.Context)
Get 失败用例信息
func (*TestResultCtrl) GetLatest ¶
func (c *TestResultCtrl) GetLatest(ctx iris.Context)
func (*TestResultCtrl) GetStatistic ¶
func (c *TestResultCtrl) GetStatistic(ctx iris.Context)
Get 统计信息
func (*TestResultCtrl) MvLog ¶
func (c *TestResultCtrl) MvLog(ctx iris.Context)
func (*TestResultCtrl) UpdateStatistic ¶
func (c *TestResultCtrl) UpdateStatistic(ctx iris.Context)
Put 统计信息
type TestScriptCtrl ¶
type TestScriptCtrl struct { TestScriptService *service.TestScriptService `inject:""` SyncService *service.SyncService `inject:""` WorkspaceService *service.WorkspaceService `inject:""` SiteService *service.SiteService `inject:""` BaseCtrl }
func NewTestScriptCtrl ¶
func NewTestScriptCtrl() *TestScriptCtrl
func (*TestScriptCtrl) Create ¶
func (c *TestScriptCtrl) Create(ctx iris.Context)
func (*TestScriptCtrl) Delete ¶
func (c *TestScriptCtrl) Delete(ctx iris.Context)
func (*TestScriptCtrl) GetCaseIdsFromReport ¶
func (c *TestScriptCtrl) GetCaseIdsFromReport(ctx iris.Context)
Get 根据报告获取用例编号的列表
func (*TestScriptCtrl) LoadCodeChildren ¶
func (c *TestScriptCtrl) LoadCodeChildren(ctx iris.Context)
LoadCodeChildren 子节点
func (*TestScriptCtrl) Move ¶
func (c *TestScriptCtrl) Move(ctx iris.Context)
func (*TestScriptCtrl) Paste ¶
func (c *TestScriptCtrl) Paste(ctx iris.Context)
func (*TestScriptCtrl) Rename ¶
func (c *TestScriptCtrl) Rename(ctx iris.Context)
func (*TestScriptCtrl) SyncDirToZentao ¶
func (c *TestScriptCtrl) SyncDirToZentao(ctx iris.Context)
func (*TestScriptCtrl) SyncFromZentao ¶
func (c *TestScriptCtrl) SyncFromZentao(ctx iris.Context)
func (*TestScriptCtrl) SyncToZentao ¶
func (c *TestScriptCtrl) SyncToZentao(ctx iris.Context)
func (*TestScriptCtrl) UpdateCode ¶
func (c *TestScriptCtrl) UpdateCode(ctx iris.Context)
func (*TestScriptCtrl) UpdateName ¶
func (c *TestScriptCtrl) UpdateName(ctx iris.Context)
type WebSocketCtrl ¶
type WebSocketCtrl struct { Namespace string *websocket.NSConn `stateless:"true"` WorkspaceService *service.WorkspaceService `inject:""` TestExecService *service.TestExecService `inject:""` }
func NewWebSocketCtrl ¶
func NewWebSocketCtrl() *WebSocketCtrl
func (*WebSocketCtrl) OnChat ¶
func (c *WebSocketCtrl) OnChat(wsMsg websocket.Message) (err error)
OnChat This will call the "OnVisit" event on all clients, including the current one, with the 'newCount' variable.
func (*WebSocketCtrl) OnNamespaceConnected ¶
func (c *WebSocketCtrl) OnNamespaceConnected(wsMsg websocket.Message) error
func (*WebSocketCtrl) OnNamespaceDisconnect ¶
func (c *WebSocketCtrl) OnNamespaceDisconnect(wsMsg websocket.Message) error
OnNamespaceDisconnect This will call the "OnVisit" event on all clients, except the current one, it can't because it's left but for any case use this type of design.
type WorkspaceCtrl ¶
type WorkspaceCtrl struct { WorkspaceService *service.WorkspaceService `inject:""` ProxyService *service.ProxyService `inject:""` BaseCtrl }
func NewWorkspaceCtrl ¶
func NewWorkspaceCtrl() *WorkspaceCtrl
func (*WorkspaceCtrl) Create ¶
func (c *WorkspaceCtrl) Create(ctx iris.Context)
func (*WorkspaceCtrl) DeleteByPath ¶
func (c *WorkspaceCtrl) DeleteByPath(ctx iris.Context)
delete by path
func (*WorkspaceCtrl) Get ¶
func (c *WorkspaceCtrl) Get(ctx iris.Context)
func (*WorkspaceCtrl) List ¶
func (c *WorkspaceCtrl) List(ctx iris.Context)
func (*WorkspaceCtrl) ListByProduct ¶
func (c *WorkspaceCtrl) ListByProduct(ctx iris.Context)
func (*WorkspaceCtrl) Update ¶
func (c *WorkspaceCtrl) Update(ctx iris.Context)
func (*WorkspaceCtrl) UploadScripts ¶
func (c *WorkspaceCtrl) UploadScripts(ctx iris.Context)
UploadFile 上传文件
func (*WorkspaceCtrl) UploadScriptsToProxy ¶
func (c *WorkspaceCtrl) UploadScriptsToProxy(ctx iris.Context)
type ZentaoCtrl ¶
type ZentaoCtrl struct { SiteService *service.SiteService `inject:""` TestBugService *service.TestBugService `inject:""` BaseCtrl }
func NewZentaoCtrl ¶
func NewZentaoCtrl() *ZentaoCtrl
func (*ZentaoCtrl) GetProfile ¶
func (c *ZentaoCtrl) GetProfile(ctx iris.Context)
func (*ZentaoCtrl) ListBugFields ¶
func (c *ZentaoCtrl) ListBugFields(ctx iris.Context)
func (*ZentaoCtrl) ListCase ¶
func (c *ZentaoCtrl) ListCase(ctx iris.Context)
func (*ZentaoCtrl) ListLang ¶
func (c *ZentaoCtrl) ListLang(ctx iris.Context)
func (*ZentaoCtrl) ListModule ¶
func (c *ZentaoCtrl) ListModule(ctx iris.Context)
func (*ZentaoCtrl) ListProduct ¶
func (c *ZentaoCtrl) ListProduct(ctx iris.Context)
func (*ZentaoCtrl) ListSiteAndProduct ¶
func (c *ZentaoCtrl) ListSiteAndProduct(ctx iris.Context)
func (*ZentaoCtrl) ListSuite ¶
func (c *ZentaoCtrl) ListSuite(ctx iris.Context)
func (*ZentaoCtrl) ListTask ¶
func (c *ZentaoCtrl) ListTask(ctx iris.Context)