Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteJob(planID uint64)
- func DeleteService(svcName string)
- func Exists(path string) bool
- func GenPlanDumpExecDir(planID uint64) string
- func GenProjectClassDir() string
- func GenSvcClassDir(svcName string) string
- func GenSvcDumpExecDir(planID uint64, svcName string) string
- func GenSvcJarDir(svcName string) string
- func GenSvcJarImageTempDir(svcName string) (string, error)
- func SetJob(planID uint64, job *DetectionJob)
- func SetService(svcName string, svc *Service)
- func WatchJacocoPod(ctx context.Context)
- func WatchJob(ctx context.Context)
- type CallbackEndRequest
- type CodeCoverageExecRecordDetail
- type CodeCoverageExecRecordDetailResp
- type CodeCoverageExecStatus
- type DetectionJob
- type ErrorResponse
- type File
- type FileUploadResponse
- type Header
- type Pod
- type Service
Constants ¶
View Source
const Error = "error"
View Source
const Fail = "fail"
View Source
const Ready = "ready"
View Source
const Running = "running"
View Source
const Success = "success"
Variables ¶
View Source
var RunJobs = sync.Map{}
View Source
var Services = sync.Map{}
View Source
var WhenStartLoadAllDeploymentLock sync.Mutex
Functions ¶
func DeleteService ¶
func DeleteService(svcName string)
func GenPlanDumpExecDir ¶
func GenProjectClassDir ¶
func GenProjectClassDir() string
func GenSvcClassDir ¶
func GenSvcDumpExecDir ¶
func GenSvcJarDir ¶
func GenSvcJarImageTempDir ¶
func SetJob ¶
func SetJob(planID uint64, job *DetectionJob)
func SetService ¶
func WatchJacocoPod ¶
Types ¶
type CallbackEndRequest ¶
type CodeCoverageExecRecordDetailResp ¶
type CodeCoverageExecRecordDetailResp struct { Header Data *CodeCoverageExecRecordDetail `json:"data"` }
type CodeCoverageExecStatus ¶
type CodeCoverageExecStatus string
const ( RunningStatus CodeCoverageExecStatus = "running" ReadyStatus CodeCoverageExecStatus = "ready" EndingStatus CodeCoverageExecStatus = "ending" CancelStatus CodeCoverageExecStatus = "cancel" SuccessStatus CodeCoverageExecStatus = "success" FailStatus CodeCoverageExecStatus = "fail" )
type DetectionJob ¶
type DetectionJob struct { PlanID uint64 Status CodeCoverageExecStatus JobStatus string MavenSettings string Includes string Excludes string ErrorMsg string DumpLock sync.Mutex // contains filtered or unexported fields }
func GetJob ¶
func GetJob(planID uint64) (*DetectionJob, bool)
type ErrorResponse ¶
type File ¶
type File struct { ID uint64 `json:"id"` UUID string `json:"uuid"` DisplayName string `json:"name"` ByteSize int64 `json:"size"` DownloadURL string `json:"url"` Type string `json:"type"` From string `json:"from"` Creator string `json:"creator"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` ExpiredAt *time.Time `json:"expiredAt,omitempty"` }
type FileUploadResponse ¶
FileUploadResponse 文件上传响应
type Header ¶
type Header struct { Success bool `json:"success" ` Error ErrorResponse `json:"err"` }
Click to show internal directories.
Click to hide internal directories.