_domain

package
v0.0.0-...-c3723d7 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: GPL-3.0 Imports: 4 Imported by: 11

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    constant.BrowserType
	SeleniumDriverVersion 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 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            constant.VmStatus
}

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

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

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

	NodeIp   string `json:"-"`
	NodePort 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 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
	Name              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            constant.VmStatus
}

Jump to

Keyboard shortcuts

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