job

package
v0.0.0-...-e6d3209 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobService

type JobService struct {
	JobParam *models.Job

	TaskStatusFilter string
	// contains filtered or unexported fields
}

func (*JobService) ActiveJob

func (this *JobService) ActiveJob() models.Result

func (*JobService) BuildCheckList

func (this *JobService) BuildCheckList(job *models.Job) []*models.SecurityCheck

func (*JobService) ChangeStatus

func (this *JobService) ChangeStatus() models.Result

func (*JobService) CheckRuningTask

func (this *JobService) CheckRuningTask() models.Result

判断通过此job生成的task中是否有运行的

func (*JobService) DeactiveTasks

func (this *JobService) DeactiveTasks() models.Result

func (*JobService) GetTasksOfJobByStatus

func (this *JobService) GetTasksOfJobByStatus() []*models.Task

func (*JobService) InitsecurityCheckService

func (this *JobService) InitsecurityCheckService() securitycheck.SecurityCheckService

func (*JobService) RemoveAssocTasks

func (this *JobService) RemoveAssocTasks() models.Result

func (*JobService) SetTPLType

func (this *JobService) SetTPLType(targetType, resType string) (seccheck *models.SecurityCheck)

Jump to

Keyboard shortcuts

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