Documentation
¶
Index ¶
- type Service
- func (s *Service) AccessAuthHub(c context.Context, username string) (accessHub bool, err error)
- func (s *Service) AccessPullProjects(c context.Context, username string) (projectsName []string, err error)
- func (s *Service) AddImage(image *model.Image) error
- func (s *Service) AddMachineLog(username string, machineID int64, operateType string, operateResult string) (err error)
- func (s *Service) AddRepositoryTag(c context.Context, username, repoName, tagName, newRepoName, newTagName string) (status int, err error)
- func (s *Service) AddTagToMachine(c context.Context, username, imageSrcName string, machineIDs []int64) (machineImageMap map[int64]string, err error)
- func (s *Service) ApplyDelayMachineEndTime(c context.Context, username string, applyEndTime *model.ApplyEndTimeRequest) (status int, err error)
- func (s *Service) AuditMachineEndTime(c context.Context, auditID int64, username string, auditResult bool, ...) (status int, err error)
- func (s *Service) AuthHub(c context.Context, sessionID string) (err error)
- func (s *Service) BindMobileDevice(c context.Context, deviceID int64, username string) (status int, err error)
- func (s *Service) CallBackMobileDeviceError(c context.Context, serialName, errMsg string, errCode int) (err error)
- func (s *Service) CallBackSnapShot(c context.Context, machineName, imageName, msg string, resultStatus bool) (err error)
- func (s *Service) CancelMachineEndTime(c context.Context, auditID int64, username string) (status int, err error)
- func (s *Service) Close()
- func (s *Service) ConfVersion(c context.Context) string
- func (s *Service) CreateSnapShot(c context.Context, username string, machineID int64) (status int, err error)
- func (s *Service) DelMachine(c context.Context, id int64, username string, ...) (instance *model.ReleaseInstance, err error)
- func (s *Service) DelMachineWhenCanBeDel(c context.Context, id int64, username string) (instance *model.ReleaseInstance, err error)
- func (s *Service) DelayMachineEndTime(c context.Context, machineID int64, username string) (status int, err error)
- func (s *Service) DeleteImage(iID int64) error
- func (s *Service) DeleteRepository(c context.Context, username, repoName string) (status int, err error)
- func (s *Service) DeleteRepositoryTag(c context.Context, username, repoName, tagName string) (status int, err error)
- func (s *Service) DeviceFarmSuperUser() (responseMap map[string]interface{})
- func (s *Service) GenMachines(c context.Context, gmr *model.GenMachinesRequest, u string) (err error)
- func (s *Service) GenMachinesV2(c context.Context, gmr *model.GenMachinesRequest, u string) (err error)
- func (s *Service) GetAllImagesInDocker() (imageNames []string, err error)
- func (s *Service) GetApplicationRecordsByApplicant(c context.Context, username string, pn, ps int) (p *model.PaginateApplicationRecord, err error)
- func (s *Service) GetApplicationRecordsByAuditor(c context.Context, username string, pn, ps int) (p *model.PaginateApplicationRecord, err error)
- func (s *Service) GetApplicationRecordsByMachineID(c context.Context, machineID int64, pn, ps int) (p *model.PaginateApplicationRecord, err error)
- func (s *Service) IsBindMobileDeviceByTheUser(c context.Context, deviceID int64, username string) (isBind bool, err error)
- func (s *Service) LendOutMobileDevice(c context.Context, deviceID int64, username string) (status int, err error)
- func (s *Service) Machine2Image(c context.Context, username, imageName, newImageName string, machineID int64) (err error)
- func (s *Service) Machine2ImageForceFailed(c context.Context, machineID int64) (status int, err error)
- func (s *Service) MobileMachineCategory(c context.Context, isShowOffline bool) (categoryList []*model.MobileDeviceCategoryResponse, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) ProjectID(c context.Context, projectName string) (projectID int, err error)
- func (s *Service) ProjectRepositories(c context.Context, projectID, pn, ps int, keyWord string) (p *model.PaginateProjectRepoRecord, err error)
- func (s *Service) Projects(c context.Context, username string) (projects map[string]int, err error)
- func (s *Service) Pull(c context.Context, username, repoName, tagName string, machineID int64) (status int, err error)
- func (s *Service) PullAndPush(username, imageSrcName, imageTagName string, machineID int64) (status int, err error)
- func (s *Service) PullAndPushWithMachine2Image(username, imageSrcName, imageTagName string, machineID, hubImageLogID int64) (status int, err error)
- func (s *Service) Push(c context.Context, username, repoName, tagName string, machineID int64) (status int, err error)
- func (s *Service) QueryCluster(c context.Context) (clusters []*model.Cluster, err error)
- func (s *Service) QueryImage() ([]*model.Image, error)
- func (s *Service) QueryImageConf(c context.Context, imageName string) (ic *model.ImageConfiguration, err error)
- func (s *Service) QueryMachine2ImageLog(c context.Context, queryRequest *model.QueryMachine2ImageLogRequest) (p *model.PaginateHubImageLog, err error)
- func (s *Service) QueryMachineCount(c context.Context) (machineResponse *model.MachineCountGroupResponse, err error)
- func (s *Service) QueryMachineCreatedAndEndTime(c context.Context) (machineResponse map[string]interface{}, err error)
- func (s *Service) QueryMachineDetail(c context.Context, mID int64) (detail model.MachineDetail, err error)
- func (s *Service) QueryMachineLifeCycle(c context.Context) (machineResponse map[string]interface{}, err error)
- func (s *Service) QueryMachineLogs(c context.Context, queryRequest *model.QueryMachineLogRequest) (p *model.PaginateMachineLog, err error)
- func (s *Service) QueryMachineNodes(mID int64) ([]*model.MachineNode, error)
- func (s *Service) QueryMachinePackages(c context.Context) (mp []*model.MachinePackage, err error)
- func (s *Service) QueryMachineStatus(c context.Context, machineID int64) (msr *model.MachineStatusResponse, err error)
- func (s *Service) QueryMachineUsage(c context.Context) (machineResponse map[string]interface{}, err error)
- func (s *Service) QueryMachines(c context.Context, session string, qmr *model.QueryMachineRequest) (p *model.PaginateMachine, err error)
- func (s *Service) QueryMobileDeviceList(c context.Context, queryRequest *model.QueryMobileDeviceRequest) (p *model.PaginateMobileMachines, err error)
- func (s *Service) QueryMobileMachineErrorLogs(c context.Context, queryRequest *model.QueryMobileMachineErrorLogRequest) (p *model.PaginateMobileMachineErrorLog, err error)
- func (s *Service) QueryMobileMachineLendOutLogs(c context.Context, username string, ...) (p *model.PaginateMobileMachineLendOutLog, err error)
- func (s *Service) QueryMobileMachineLogs(c context.Context, queryRequest *model.QueryMobileMachineLogRequest) (p *model.PaginateMobileMachineLog, err error)
- func (s *Service) QueryMobileMachineModeCount(c context.Context) (res map[string]interface{}, err error)
- func (s *Service) QueryMobileMachineUsageCount(c context.Context) (res map[string]interface{}, err error)
- func (s *Service) QueryMobileMachineUsageTime(c context.Context) (ret []*model.MobileMachineUsageTimeResponse, err error)
- func (s *Service) QuerySnapShot(c context.Context, machineID int64) (snapshotRecord *model.SnapshotRecord, err error)
- func (s *Service) QueryTreeInstanceForMerlin(c context.Context, sessionID string, tn *model.TreeNode) (res map[string]*model.TreeInstance, err error)
- func (s *Service) QueryUserInfo(c context.Context, username string) (userInfo *model.User, err error)
- func (s *Service) ReTag(c context.Context, username, repoName, tagName, newRepoName, newTagName string, ...) (status int, err error)
- func (s *Service) RefreshMobileDeviceDetail(c context.Context, deviceID int64) (mobileMachineResponse *model.MobileMachineResponse, err error)
- func (s *Service) ReleaseMobileDevice(c context.Context, deviceID int64, username string) (status int, err error)
- func (s *Service) ReportMobileDeviceError(c context.Context, serialName, errMsg string, errCode int) (err error)
- func (s *Service) RepositoryTags(c context.Context, repoName string) (repoTags []*model.RepositoryTag, err error)
- func (s *Service) ReturnMobileDevice(c context.Context, deviceID int64, username string) (status int, err error)
- func (s *Service) SendMail(mailType int, machine *model.Machine) (err error)
- func (s *Service) SendMailApplyDelayMachineEndTime(ctx context.Context, auditor, applicant string, machineID int64, ...) (err error)
- func (s *Service) SendMailAuditResult(ctx context.Context, auditor, applicant string, machineID int64, ...) (err error)
- func (s *Service) SendMailDeleteMachine(username string, machine *model.Machine) (err error)
- func (s *Service) SendMailForMultiUsers(ctx context.Context, receivers []string, mailSendHead string) (err error)
- func (s *Service) ShutdownMobileDevice(c context.Context, deviceID int64, username string) (status int, err error)
- func (s *Service) StartMobileDevice(c context.Context, deviceID int64, username string) (deviceBootData *model.DeviceBootData, err error)
- func (s *Service) SyncMobileDeviceList(c context.Context) (uid string, err error)
- func (s *Service) SyncMobileDeviceListInChan(uuid string) (totalCnt, addCnt, updateCnt, delCnt int, err error)
- func (s *Service) TransferMachine(c context.Context, machineID int64, username, receiver string) (status int, err error)
- func (s *Service) TreeMachineIsExist(c context.Context, podName string, tn *model.TreeNode) (b bool, err error)
- func (s *Service) TreeMachinesIsExist(c context.Context, pathAndMachinesMap map[string][]string) (machinesIsExist map[string]bool, err error)
- func (s *Service) TreeRoleAsAuditor(c context.Context, sessionID, firstNode string) (auditors []string, err error)
- func (s *Service) UpdateImage(image *model.Image) error
- func (s *Service) UpdateImageConf(c context.Context, username string, ic *model.ImageConfiguration) (status int, err error)
- func (s *Service) UpdateMachineNode(c context.Context, umnr *model.UpdateMachineNodeRequest) (err error)
- func (s *Service) UserTreeAsOption(c context.Context, sessionID string) (firstRetMap []map[string]interface{}, err error)
- func (s *Service) VerifyTreeContainerNode(c context.Context, sessionID string, tnr *model.TreeNode) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct
func (*Service) AccessAuthHub ¶
AccessAuthHub Access Auth Hub.
func (*Service) AccessPullProjects ¶
func (s *Service) AccessPullProjects(c context.Context, username string) (projectsName []string, err error)
AccessPullProjects Access Pull Projects.
func (*Service) AddMachineLog ¶
func (s *Service) AddMachineLog(username string, machineID int64, operateType string, operateResult string) (err error)
AddMachineLog add machine log.
func (*Service) AddRepositoryTag ¶
func (s *Service) AddRepositoryTag(c context.Context, username, repoName, tagName, newRepoName, newTagName string) (status int, err error)
AddRepositoryTag Add Repository Tag.
func (*Service) AddTagToMachine ¶
func (s *Service) AddTagToMachine(c context.Context, username, imageSrcName string, machineIDs []int64) (machineImageMap map[int64]string, err error)
AddTagToMachine Add Tag To Machine.
func (*Service) ApplyDelayMachineEndTime ¶
func (s *Service) ApplyDelayMachineEndTime(c context.Context, username string, applyEndTime *model.ApplyEndTimeRequest) (status int, err error)
ApplyDelayMachineEndTime Apply Delay Machine End Time.
func (*Service) AuditMachineEndTime ¶
func (s *Service) AuditMachineEndTime(c context.Context, auditID int64, username string, auditResult bool, comment string) (status int, err error)
AuditMachineEndTime Audit Machine End Time.
func (*Service) BindMobileDevice ¶
func (s *Service) BindMobileDevice(c context.Context, deviceID int64, username string) (status int, err error)
BindMobileDevice Bind Mobile Device.
func (*Service) CallBackMobileDeviceError ¶
func (s *Service) CallBackMobileDeviceError(c context.Context, serialName, errMsg string, errCode int) (err error)
CallBackMobileDeviceError Call Back Mobile Device Error.
func (*Service) CallBackSnapShot ¶
func (s *Service) CallBackSnapShot(c context.Context, machineName, imageName, msg string, resultStatus bool) (err error)
CallBackSnapShot Call Back SnapShot.
func (*Service) CancelMachineEndTime ¶
func (s *Service) CancelMachineEndTime(c context.Context, auditID int64, username string) (status int, err error)
CancelMachineEndTime Cancel Machine End Time.
func (*Service) ConfVersion ¶
ConfVersion Conf Version.
func (*Service) CreateSnapShot ¶
func (s *Service) CreateSnapShot(c context.Context, username string, machineID int64) (status int, err error)
CreateSnapShot CreateSnapShot.
func (*Service) DelMachine ¶
func (s *Service) DelMachine(c context.Context, id int64, username string, beforeDelMachineFuncs ...model.BeforeDelMachineFunc) (instance *model.ReleaseInstance, err error)
DelMachine delete machine by giving id.
func (*Service) DelMachineWhenCanBeDel ¶
func (s *Service) DelMachineWhenCanBeDel(c context.Context, id int64, username string) (instance *model.ReleaseInstance, err error)
DelMachineWhenCanBeDel Del Machine When Can Be Del.
func (*Service) DelayMachineEndTime ¶
func (s *Service) DelayMachineEndTime(c context.Context, machineID int64, username string) (status int, err error)
DelayMachineEndTime Delay Machine End Time.
func (*Service) DeleteImage ¶
DeleteImage delete image.
func (*Service) DeleteRepository ¶
func (s *Service) DeleteRepository(c context.Context, username, repoName string) (status int, err error)
DeleteRepository Delete Repository.
func (*Service) DeleteRepositoryTag ¶
func (s *Service) DeleteRepositoryTag(c context.Context, username, repoName, tagName string) (status int, err error)
DeleteRepositoryTag Delete Repository Tag.
func (*Service) DeviceFarmSuperUser ¶
DeviceFarmSuperUser Device Farm Super User.
func (*Service) GenMachines ¶
func (s *Service) GenMachines(c context.Context, gmr *model.GenMachinesRequest, u string) (err error)
GenMachines create multiple machines.
func (*Service) GenMachinesV2 ¶
func (s *Service) GenMachinesV2(c context.Context, gmr *model.GenMachinesRequest, u string) (err error)
GenMachinesV2 create multiple machines for v2.
func (*Service) GetAllImagesInDocker ¶
GetAllImagesInDocker Get All Images In Docker.
func (*Service) GetApplicationRecordsByApplicant ¶
func (s *Service) GetApplicationRecordsByApplicant(c context.Context, username string, pn, ps int) (p *model.PaginateApplicationRecord, err error)
GetApplicationRecordsByApplicant Get Application Records By Applicant.
func (*Service) GetApplicationRecordsByAuditor ¶
func (s *Service) GetApplicationRecordsByAuditor(c context.Context, username string, pn, ps int) (p *model.PaginateApplicationRecord, err error)
GetApplicationRecordsByAuditor Get Application Records By Auditor.
func (*Service) GetApplicationRecordsByMachineID ¶
func (s *Service) GetApplicationRecordsByMachineID(c context.Context, machineID int64, pn, ps int) (p *model.PaginateApplicationRecord, err error)
GetApplicationRecordsByMachineID Get Application Records By MachineID.
func (*Service) IsBindMobileDeviceByTheUser ¶
func (s *Service) IsBindMobileDeviceByTheUser(c context.Context, deviceID int64, username string) (isBind bool, err error)
IsBindMobileDeviceByTheUser Is Bind Mobile Device By The User.
func (*Service) LendOutMobileDevice ¶
func (s *Service) LendOutMobileDevice(c context.Context, deviceID int64, username string) (status int, err error)
LendOutMobileDevice Pull Out Mobile Device.
func (*Service) Machine2Image ¶
func (s *Service) Machine2Image(c context.Context, username, imageName, newImageName string, machineID int64) (err error)
Machine2Image Machine to Image.
func (*Service) Machine2ImageForceFailed ¶
func (s *Service) Machine2ImageForceFailed(c context.Context, machineID int64) (status int, err error)
Machine2ImageForceFailed Machine to Image Force Failed.
func (*Service) MobileMachineCategory ¶
func (s *Service) MobileMachineCategory(c context.Context, isShowOffline bool) (categoryList []*model.MobileDeviceCategoryResponse, err error)
MobileMachineCategory Mobile Machine Category.
func (*Service) ProjectRepositories ¶
func (s *Service) ProjectRepositories(c context.Context, projectID, pn, ps int, keyWord string) (p *model.PaginateProjectRepoRecord, err error)
ProjectRepositories Get Project Repositories.
func (*Service) Pull ¶
func (s *Service) Pull(c context.Context, username, repoName, tagName string, machineID int64) (status int, err error)
Pull Pull.
func (*Service) PullAndPush ¶
func (s *Service) PullAndPush(username, imageSrcName, imageTagName string, machineID int64) (status int, err error)
PullAndPush pull And Push.
func (*Service) PullAndPushWithMachine2Image ¶
func (s *Service) PullAndPushWithMachine2Image(username, imageSrcName, imageTagName string, machineID, hubImageLogID int64) (status int, err error)
PullAndPushWithMachine2Image Pull And Push With Machine to Image.
func (*Service) Push ¶
func (s *Service) Push(c context.Context, username, repoName, tagName string, machineID int64) (status int, err error)
Push Push.
func (*Service) QueryCluster ¶
QueryCluster query cluster.
func (*Service) QueryImage ¶
QueryImage query image.
func (*Service) QueryImageConf ¶
func (s *Service) QueryImageConf(c context.Context, imageName string) (ic *model.ImageConfiguration, err error)
QueryImageConf Query Image Conf.
func (*Service) QueryMachine2ImageLog ¶
func (s *Service) QueryMachine2ImageLog(c context.Context, queryRequest *model.QueryMachine2ImageLogRequest) (p *model.PaginateHubImageLog, err error)
QueryMachine2ImageLog Query Machine to ImageLog.
func (*Service) QueryMachineCount ¶
func (s *Service) QueryMachineCount(c context.Context) (machineResponse *model.MachineCountGroupResponse, err error)
QueryMachineCount Query Machine Count.
func (*Service) QueryMachineCreatedAndEndTime ¶
func (s *Service) QueryMachineCreatedAndEndTime(c context.Context) (machineResponse map[string]interface{}, err error)
QueryMachineCreatedAndEndTime Query Machine Created And End Time.
func (*Service) QueryMachineDetail ¶
func (s *Service) QueryMachineDetail(c context.Context, mID int64) (detail model.MachineDetail, err error)
QueryMachineDetail query detail information of machine.
func (*Service) QueryMachineLifeCycle ¶
func (s *Service) QueryMachineLifeCycle(c context.Context) (machineResponse map[string]interface{}, err error)
QueryMachineLifeCycle Query Machine Life Cycle.
func (*Service) QueryMachineLogs ¶
func (s *Service) QueryMachineLogs(c context.Context, queryRequest *model.QueryMachineLogRequest) (p *model.PaginateMachineLog, err error)
QueryMachineLogs query machine logs.
func (*Service) QueryMachineNodes ¶
func (s *Service) QueryMachineNodes(mID int64) ([]*model.MachineNode, error)
QueryMachineNodes query nodes by mID
func (*Service) QueryMachinePackages ¶
QueryMachinePackages query packages of machine.
func (*Service) QueryMachineStatus ¶
func (s *Service) QueryMachineStatus(c context.Context, machineID int64) (msr *model.MachineStatusResponse, err error)
QueryMachineStatus query the status of machine.
func (*Service) QueryMachineUsage ¶
func (s *Service) QueryMachineUsage(c context.Context) (machineResponse map[string]interface{}, err error)
QueryMachineUsage Query Machine Usage.
func (*Service) QueryMachines ¶
func (s *Service) QueryMachines(c context.Context, session string, qmr *model.QueryMachineRequest) (p *model.PaginateMachine, err error)
QueryMachines query multiple machines and update machine status
func (*Service) QueryMobileDeviceList ¶
func (s *Service) QueryMobileDeviceList(c context.Context, queryRequest *model.QueryMobileDeviceRequest) (p *model.PaginateMobileMachines, err error)
QueryMobileDeviceList Query Mobile Device List.
func (*Service) QueryMobileMachineErrorLogs ¶
func (s *Service) QueryMobileMachineErrorLogs(c context.Context, queryRequest *model.QueryMobileMachineErrorLogRequest) (p *model.PaginateMobileMachineErrorLog, err error)
QueryMobileMachineErrorLogs Query Mobile Machine Error Logs.
func (*Service) QueryMobileMachineLendOutLogs ¶
func (s *Service) QueryMobileMachineLendOutLogs(c context.Context, username string, queryRequest *model.QueryMobileMachineLogRequest) (p *model.PaginateMobileMachineLendOutLog, err error)
QueryMobileMachineLendOutLogs Query Mobile Machine Lend Out Logs.
func (*Service) QueryMobileMachineLogs ¶
func (s *Service) QueryMobileMachineLogs(c context.Context, queryRequest *model.QueryMobileMachineLogRequest) (p *model.PaginateMobileMachineLog, err error)
QueryMobileMachineLogs Query Mobile Machine Logs.
func (*Service) QueryMobileMachineModeCount ¶
func (s *Service) QueryMobileMachineModeCount(c context.Context) (res map[string]interface{}, err error)
QueryMobileMachineModeCount Query Mobile Machine Mode Count.
func (*Service) QueryMobileMachineUsageCount ¶
func (s *Service) QueryMobileMachineUsageCount(c context.Context) (res map[string]interface{}, err error)
QueryMobileMachineUsageCount Query Mobile Machines Count.
func (*Service) QueryMobileMachineUsageTime ¶
func (s *Service) QueryMobileMachineUsageTime(c context.Context) (ret []*model.MobileMachineUsageTimeResponse, err error)
QueryMobileMachineUsageTime Query Mobile Machine Usage Time.
func (*Service) QuerySnapShot ¶
func (s *Service) QuerySnapShot(c context.Context, machineID int64) (snapshotRecord *model.SnapshotRecord, err error)
QuerySnapShot Query SnapShot.
func (*Service) QueryTreeInstanceForMerlin ¶
func (s *Service) QueryTreeInstanceForMerlin(c context.Context, sessionID string, tn *model.TreeNode) (res map[string]*model.TreeInstance, err error)
QueryTreeInstanceForMerlin query TreeInstance for merlin.
func (*Service) QueryUserInfo ¶
func (s *Service) QueryUserInfo(c context.Context, username string) (userInfo *model.User, err error)
QueryUserInfo query user info.
func (*Service) ReTag ¶
func (s *Service) ReTag(c context.Context, username, repoName, tagName, newRepoName, newTagName string, machineID int64) (status int, err error)
ReTag ReTag.
func (*Service) RefreshMobileDeviceDetail ¶
func (s *Service) RefreshMobileDeviceDetail(c context.Context, deviceID int64) (mobileMachineResponse *model.MobileMachineResponse, err error)
RefreshMobileDeviceDetail Refresh Mobile Device Detail.
func (*Service) ReleaseMobileDevice ¶
func (s *Service) ReleaseMobileDevice(c context.Context, deviceID int64, username string) (status int, err error)
ReleaseMobileDevice Release Mobile Device.
func (*Service) ReportMobileDeviceError ¶
func (s *Service) ReportMobileDeviceError(c context.Context, serialName, errMsg string, errCode int) (err error)
ReportMobileDeviceError Report Mobile Device Error.
func (*Service) RepositoryTags ¶
func (s *Service) RepositoryTags(c context.Context, repoName string) (repoTags []*model.RepositoryTag, err error)
RepositoryTags Get Repository Tags.
func (*Service) ReturnMobileDevice ¶
func (s *Service) ReturnMobileDevice(c context.Context, deviceID int64, username string) (status int, err error)
ReturnMobileDevice Return Mobile Device.
func (*Service) SendMailApplyDelayMachineEndTime ¶
func (s *Service) SendMailApplyDelayMachineEndTime(ctx context.Context, auditor, applicant string, machineID int64, currentEndTime, applyEndTime time.Time) (err error)
SendMailApplyDelayMachineEndTime send mail apply delay machine end time.
func (*Service) SendMailAuditResult ¶
func (s *Service) SendMailAuditResult(ctx context.Context, auditor, applicant string, machineID int64, auditResult bool) (err error)
SendMailAuditResult send mail audit result.
func (*Service) SendMailDeleteMachine ¶
SendMailDeleteMachine Send Mail Delete Machine.
func (*Service) SendMailForMultiUsers ¶
func (s *Service) SendMailForMultiUsers(ctx context.Context, receivers []string, mailSendHead string) (err error)
SendMailForMultiUsers Send Mail For Multi Users.
func (*Service) ShutdownMobileDevice ¶
func (s *Service) ShutdownMobileDevice(c context.Context, deviceID int64, username string) (status int, err error)
ShutdownMobileDevice Shutdown Mobile Device.
func (*Service) StartMobileDevice ¶
func (s *Service) StartMobileDevice(c context.Context, deviceID int64, username string) (deviceBootData *model.DeviceBootData, err error)
StartMobileDevice Start Mobile Device.
func (*Service) SyncMobileDeviceList ¶
SyncMobileDeviceList Sync Device Farm List .
func (*Service) SyncMobileDeviceListInChan ¶
func (s *Service) SyncMobileDeviceListInChan(uuid string) (totalCnt, addCnt, updateCnt, delCnt int, err error)
SyncMobileDeviceListInChan Sync Mobile Device List In Chan.
func (*Service) TransferMachine ¶
func (s *Service) TransferMachine(c context.Context, machineID int64, username, receiver string) (status int, err error)
TransferMachine Transfer Machine.
func (*Service) TreeMachineIsExist ¶
func (s *Service) TreeMachineIsExist(c context.Context, podName string, tn *model.TreeNode) (b bool, err error)
TreeMachineIsExist tree machine is exist.
func (*Service) TreeMachinesIsExist ¶
func (s *Service) TreeMachinesIsExist(c context.Context, pathAndMachinesMap map[string][]string) (machinesIsExist map[string]bool, err error)
TreeMachinesIsExist tree machines is exist.
func (*Service) TreeRoleAsAuditor ¶
func (s *Service) TreeRoleAsAuditor(c context.Context, sessionID, firstNode string) (auditors []string, err error)
TreeRoleAsAuditor tree role as auditor.
func (*Service) UpdateImage ¶
UpdateImage update image.
func (*Service) UpdateImageConf ¶
func (s *Service) UpdateImageConf(c context.Context, username string, ic *model.ImageConfiguration) (status int, err error)
UpdateImageConf Update Image Conf.
func (*Service) UpdateMachineNode ¶
func (s *Service) UpdateMachineNode(c context.Context, umnr *model.UpdateMachineNodeRequest) (err error)
UpdateMachineNode update the node of machine