domain

package
v0.0.0-...-66d4e42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Debug     bool     `json:"debug,omitempty"`
	ProductId string   `json:"productId,omitempty"`
	SuiteId   string   `json:"suiteId,omitempty"`
	TaskId    string   `json:"taskId,omitempty"`
	Files     []string `json:"files,omitempty"`

	UnitTestType string `json:"unitTestType,omitempty"`
	UnitTestTool string `json:"unitTestTool,omitempty"`
	UnitTestCmd  string `json:"unitTestCmd,omitempty"`

	WorkDir    string `json:"workDir",omitempty`
	ProjectDir string `json:"projectDir,omitempty"`
	AppPath    string `json:"appPath,omitempty"`

	ID           uint   `json:"id,omitempty"`
	QueueId      uint   `json:"queueId,omitempty"`
	Priority     int    `json:"priority,omitempty"`
	NodeIp       string `json:"priority,omitempty"`
	NodePort     int    `json:"nodePort,omitempty"`
	DeviceSerial string `json:"deviceSerial,omitempty"`
	DeviceIp     string `json:"deviceIp,omitempty"`

	BuildType             serverConst.BuildType   `json:"buildType,omitempty"`
	AppiumPort            int                     `json:"appiumPort,omitempty"`
	SeleniumDriverType    serverConst.BrowserType `json:"seleniumDriverType,omitempty"`
	SeleniumDriverVersion string                  `json:"seleniumDriverVersion,omitempty"`
	SeleniumDriverPath    string                  `json:"seleniumDriverPath,omitempty"`

	ScriptUrl   string `json:"scriptUrl,omitempty"`
	ScmAddress  string `json:"scmAddress,omitempty"`
	ScmAccount  string `json:"scmAccount,omitempty"`
	ScmPassword string `json:"scmPassword,omitempty"`

	AppUrl          string `json:"appUrl,omitempty"`
	BuildCommands   string `json:"buildCommands,omitempty"`
	ResultFiles     string `json:"resultFiles,omitempty"`
	KeepResultFiles MyBool `json:"keepResultFiles,omitempty"`
	ResultPath      string `json:"resultPath,omitempty"`
	ResultMsg       string `json:"resultMsg,omitempty"`

	StartTime time.Time `json:"startTime,omitempty"`
	EndTime   time.Time `json:"endTime,omitempty"`

	Progress serverConst.BuildProgress `json:"progress,omitempty"`
	Status   serverConst.BuildStatus   `json:"status,omitempty"`
}

type MyBool

type MyBool bool

func (*MyBool) Scan

func (b *MyBool) Scan(src interface{}) error

type OptResult

type OptResult struct {
	Code    int         `json:"code,omitempty"`
	Msg     string      `json:"msg,omitempty"`
	Payload interface{} `json:"payload,omitempty"`
}

func (*OptResult) Fail

func (result *OptResult) Fail(msg string)

func (*OptResult) IsSuccess

func (result *OptResult) IsSuccess() bool

func (*OptResult) Success

func (result *OptResult) Success(msg string)

type ReqData

type ReqData struct {
	Action string      `json:"action,omitempty"`
	Id     int         `json:"id,omitempty"`
	Mode   string      `json:"mode,omitempty"`
	Data   interface{} `json:"data,omitempty"`
}

type RespData

type RespData struct {
	Code int         `json:"code,omitempty"`
	Msg  string      `json:"msg,omitempty"`
	Data interface{} `json:"data,omitempty"`

	WorkDir string `json:"workDir,omitempty"`
}

type SysInfo

type SysInfo struct {
	AgentDir string `json:"agentDir,omitempty"`

	SysArch  string `json:"sysArch,omitempty"`
	SysCores int    `json:"sysCores,omitempty"`

	OsType    string `json:"osType,omitempty"`
	OsName    string `json:"osName,omitempty"`
	OsVersion string `json:"osVersion,omitempty"`

	Local string `json:"local,omitempty"`
	Lang  string `json:"lang,omitempty"`

	IP  string `json:"ip,omitempty"`
	MAC string `json:"mac,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL