domain

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Appium

type Appium struct {
	Name             string
	Version          string
	DeviceSerial     string
	NodeIp           string
	AppiumPort       int
	LastRegisterDate time.Time
}

type Args

type Args struct {
	A int
	B int
}

type BuildTo

type BuildTo struct {
	WorkDir    string
	ProjectDir string
	AppPath    string

	ID       uint
	Serial   string
	Priority int
	NodeIp   string
	NodePort int
	DeviceIp string

	BuildType          constant.BuildType
	AppiumPort         int
	SeleniumDriverType string
	SeleniumDriverPath string

	QueueId uint

	ScriptUrl   string
	ScmAddress  string
	ScmAccount  string
	ScmPassword string

	AppUrl          string
	BuildCommands   string
	ResultFiles     string
	KeepResultFiles MyBool
	ResultPath      string
	ResultMsg       string

	StartTime    time.Time
	CompleteTime time.Time

	Progress constant.BuildProgress
	Status   constant.BuildStatus
}

type DeviceInst

type DeviceInst struct {
	DeviceSpec

	NodeIp           string                 `json:"nodeIp"`
	NodePort         int                    `json:"rpcPort"`
	AppiumPort       int                    `json:"appiumPort"`
	DeviceStatus     constant.DeviceStatus  `json:"deviceStatus"`
	AppiumStatus     constant.ServiceStatus `json:"appiumStatus"`
	LastRegisterDate time.Time              `json:"lastRegisterDate"`
}

func (DeviceInst) TableName

func (DeviceInst) TableName() string

type DeviceSpec

type DeviceSpec struct {
	Serial           string `json:"serial"`
	Model            string `json:"model"`
	ApiLevel         int    `json:"apiLevel"`
	Version          string `json:"version"`
	Code             string `json:"code"`
	Os               string `json:"os"`
	Kernel           string `json:"kernel"`
	Ram              int    `json:"ram"`
	Rom              int    `json:"rom"`
	Cpu              string `json:"cpu"`
	Battery          int    `json:"battery"`
	Density          int    `json:"density"`
	DeviceIp         string `json:"deviceIp"`
	ResolutionHeight int    `json:"resolutionHeight"`
	ResolutionWidth  int    `json:"resolutionWidth"`
}

type Host

type Host struct {
	Name string

	OsPlatform constant.OsPlatform
	OsType     constant.OsType
	OsLang     constant.OsLang

	OsVersion string
	OsBuild   string
	OsBits    string

	Ip      string
	Port    int
	WorkDir string

	SshPort int
	VncPort int
	Status  constant.HostStatus

	LastRegisterDate time.Time
	// contains filtered or unexported fields
}

func (Host) TableName

func (Host) TableName() string

type Image

type Image struct {
	Name             string    `json:"name"`
	Path             string    `json:"path"`
	Size             int       `json:"size"`
	OsPlatform       string    `json:"osPlatform"`
	OsType           string    `json:"osType"`
	OsVersion        string    `json:"osVersion"`
	OsBuild          string    `json:"osBuild"`
	OsBits           string    `json:"osBits"`
	OsLanguage       string    `json:"naosLanguageme"`
	ResolutionHeight int       `json:"resolutionHeight"`
	ResolutionWidth  int       `json:"resolutionWidth"`
	Status           string    `json:"status"`
	DestroyAt        time.Time `json:"distroyAt"`

	IsoId int `json:"isoId"`
}

func (Image) TableName

func (Image) TableName() string

type Iso

type Iso struct {
	Name       string `json:"name"`
	Path       string `json:"path"`
	Size       int    `json:"size"`
	OsPlatform string `json:"osPlatform"`
	OsType     string `json:"osType"`
	OsVersion  string `json:"osVersion"`
	OsBuild    string `json:"osBuild"`
	OsBits     string `json:"osBits"`
	OsLanguage string `json:"naosLanguageme"`
	Status     string `json:"status"`
}

func (Iso) TableName

func (Iso) TableName() string

type KvmRequest

type KvmRequest struct {
	StartAfterCreated bool `json:"startAfterCreated"`

	NodeIp   string `json:"-"`
	NodePort int    `json:"-"`

	VmPublicIp   string `json:"vmPublicIp"`
	VmPrivateIp  string `json:"vmPrivateIp"`
	VmPublicPort int    `json:"vmPublicPort"`

	VmTemplate     string `json:"vmTemplate"`
	VmUniqueName   string `json:"vmUniqueName"`
	VmMemorySize   int    `json:"vmMemorySize"`
	VmDiskSize     int    `json:"vmDiskSize"`
	VmCdromSys     string `json:"vmCdrom"`
	VmCdromDriver  string `json:"vmCdrom2"`
	VmBackingImage string `json:"-"`

	HostId           int `json:"hostId"`
	VmBackingImageId int `json:"vmBackingImageId"`
	VmCdromSysId     int `json:"vmCdromSysId"`
	VmCdromDriverId  int `json:"vmCdromDriverId"`
}

type KvmResponse

type KvmResponse struct {
	Code    int    `json:"code"`
	Msg     int    `json:"msg"`
	Name    string `json:"name"`
	VncPort int    `json:"vncPort"`
	Path    string `json:"path"`
	Mac     string `json:"mac"`
}

type MyBool

type MyBool bool

func (*MyBool) Scan

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

type Reply

type Reply struct {
	C int
}

type Row

type Row struct {
	Cols []string `json:"col" xml:"col"`
}

type RpcResult

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

func (*RpcResult) Fail

func (result *RpcResult) Fail(msg string)

func (*RpcResult) IsSuccess

func (result *RpcResult) IsSuccess() bool

func (*RpcResult) Success

func (result *RpcResult) Success(msg string)

type Table

type Table struct {
	Rows []Row `json:"row" xml:"row"`
}

type TestData

type TestData struct {
	XMLName xml.Name `xml:"testdata"`
	Title   string   `json:"title" xml:"title"`
	Table   Table    `json:"table" xml:"table"`
}

type Vm

type Vm struct {
	Name string

	Cdrom            string
	Template         string
	Status           constant.VmStatus
	ResolutionHeight int
	ResolutionWidth  int

	PrivateIp string
	PublicIp  string
	RpcPort   int
	SshPort   int
	VncPort   int
	Mac       string
	ImagePath string

	HostId         int
	BackingImageId int
}

func (Vm) TableName

func (Vm) TableName() string

Jump to

Keyboard shortcuts

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