_domain

package
v0.0.0-...-054b70b Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 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
	ComputerIp       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
	ComputerIp   string
	ComputerPort int
	DeviceIp     string

	BuildType   _const.BuildType
	BrowserType _const.BrowserType
	BrowserVer  string
	AppiumPort  int

	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 _const.BuildProgress
	Status   _const.BuildStatus
}

type Container

type Container struct {
	Id                int
	Name              string
	DiskSize          int
	MemorySize        int
	CdromSys          string
	CdromDriver       string
	DefPath           string
	ImagePath         string
	WorkDir           string
	PublicIp          string
	PublicPort        int
	MacAddress        string
	ResolutionHeight  int
	ResolutionWidth   int
	RpcPort           int
	SshPort           int
	VncPort           int
	DestroyAt         time.Time
	FirstDetectedTime time.Time
	HostId            int
	ImageId           int
	Status            _const.VmStatus
}

type DeviceInst

type DeviceInst struct {
	DeviceSpec

	ComputerIp       string               `json:"computerIp"`
	ComputerPort     int                  `json:"computerPort"`
	AppiumPort       int                  `json:"appiumPort"`
	DeviceStatus     _const.DeviceStatus  `json:"deviceStatus"`
	AppiumStatus     _const.ServiceStatus `json:"appiumStatus"`
	LastRegisterDate time.Time            `json:"lastRegisterDate"`
}

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 _const.OsPlatform
	OsType     _const.OsType
	OsLang     _const.SysLang

	OsVersion string
	OsBuild   string
	OsBits    string

	Ip      string
	Port    int
	WorkDir string

	SshPort int
	VncPort int
	Status  _const.HostStatus

	LastRegisterDate time.Time

	Vms []Vm
	// contains filtered or unexported fields
}

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"`
}

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"`
}

type MyBool

type MyBool bool

func (*MyBool) Scan

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

type PveReq

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

	ComputerIp   string `json:"-"`
	ComputerPort int    `json:"-"`

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

	VmMacAddress   string `json:"vmMacAddress"`
	VmTemplate     string `json:"vmTemplate"`
	VmUniqueName   string `json:"vmUniqueName"`
	VmMemorySize   int    `json:"vmMemorySize"`
	VmDiskSize     int    `json:"vmDiskSize"`
	VmCdromSys     string `json:"vmCdromSys"`
	VmCdromDriver  string `json:"vmCdromDriver"`
	VmBackingImage string `json:"vmBackingImage"`

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

type PveResp

type PveResp 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 Reply

type Reply struct {
	C int
}

type Row

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

type RpcReq

type RpcReq struct {
	ComputerIp   string
	ComputerPort int

	ApiPath   string
	ApiMethod string
	Data      interface{}
}

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 {
	Id                int
	VmId              string
	Name              string
	HostName          string
	DiskSize          int
	MemorySize        int
	CdromSys          string
	CdromDriver       string
	DefPath           string
	ImagePath         string
	BackingImagePath  string
	WorkDir           string
	PublicIp          string
	PublicPort        int
	MacAddress        string
	ResolutionHeight  int
	ResolutionWidth   int
	RpcPort           int
	SshPort           int
	VncPort           int
	DestroyAt         time.Time
	FirstDetectedTime time.Time
	HostId            int
	BackingImageId    int
	Status            _const.VmStatus
}

Jump to

Keyboard shortcuts

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