Documentation ¶
Index ¶
- Constants
- type CodeCoverage
- func (svc *CodeCoverage) Cancel(req apistructs.CodeCoverageCancelRequest) error
- func (svc *CodeCoverage) End(req apistructs.CodeCoverageUpdateRequest) error
- func (svc *CodeCoverage) EndCallBack(req apistructs.CodeCoverageUpdateRequest) error
- func (svc *CodeCoverage) GetCodeCoverageRecord(id uint64) (*apistructs.CodeCoverageExecRecordDto, error)
- func (svc *CodeCoverage) GetCodeCoverageRecordStatus(projectID uint64, workspace string) (*apistructs.CodeCoverageExecRecordDetail, error)
- func (svc *CodeCoverage) GetCodeCoverageSetting(projectID uint64, workspace string) (*apistructs.CodeCoverageSetting, error)
- func (svc *CodeCoverage) JudgeCanEnd(projectID uint64, workspace string) (bool, error)
- func (svc *CodeCoverage) JudgeRunningRecordExist(projectID uint64, workspace string) error
- func (svc *CodeCoverage) JudgeSourcecovAddon(projectID uint64, orgID uint64, workspace string) (bool, error)
- func (svc *CodeCoverage) ListCodeCoverageRecord(req apistructs.CodeCoverageListRequest) (data apistructs.CodeCoverageExecRecordData, err error)
- func (svc *CodeCoverage) ReadyCallBack(req apistructs.CodeCoverageUpdateRequest) error
- func (svc *CodeCoverage) ReportCallBack(req apistructs.CodeCoverageUpdateRequest) error
- func (svc *CodeCoverage) SaveCodeCoverageSetting(saveSettingRequest apistructs.SaveCodeCoverageSettingRequest) (*apistructs.CodeCoverageSetting, error)
- func (svc *CodeCoverage) Start(req apistructs.CodeCoverageStartRequest) error
- type Option
Constants ¶
View Source
const SourcecovAddonName = "sourcecov"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeCoverage ¶
type CodeCoverage struct {
// contains filtered or unexported fields
}
func New ¶
func New(options ...Option) *CodeCoverage
func (*CodeCoverage) Cancel ¶
func (svc *CodeCoverage) Cancel(req apistructs.CodeCoverageCancelRequest) error
Cancel Cancel record
func (*CodeCoverage) End ¶
func (svc *CodeCoverage) End(req apistructs.CodeCoverageUpdateRequest) error
End End record
func (*CodeCoverage) EndCallBack ¶
func (svc *CodeCoverage) EndCallBack(req apistructs.CodeCoverageUpdateRequest) error
EndCallBack Record end callBack
func (*CodeCoverage) GetCodeCoverageRecord ¶
func (svc *CodeCoverage) GetCodeCoverageRecord(id uint64) (*apistructs.CodeCoverageExecRecordDto, error)
GetCodeCoverageRecord Get code coverage record
func (*CodeCoverage) GetCodeCoverageRecordStatus ¶
func (svc *CodeCoverage) GetCodeCoverageRecordStatus(projectID uint64, workspace string) (*apistructs.CodeCoverageExecRecordDetail, error)
func (*CodeCoverage) GetCodeCoverageSetting ¶
func (svc *CodeCoverage) GetCodeCoverageSetting(projectID uint64, workspace string) (*apistructs.CodeCoverageSetting, error)
func (*CodeCoverage) JudgeCanEnd ¶
func (svc *CodeCoverage) JudgeCanEnd(projectID uint64, workspace string) (bool, error)
func (*CodeCoverage) JudgeRunningRecordExist ¶
func (svc *CodeCoverage) JudgeRunningRecordExist(projectID uint64, workspace string) error
JudgeRunningRecordExist Judge running record exist
func (*CodeCoverage) JudgeSourcecovAddon ¶
func (*CodeCoverage) ListCodeCoverageRecord ¶
func (svc *CodeCoverage) ListCodeCoverageRecord(req apistructs.CodeCoverageListRequest) (data apistructs.CodeCoverageExecRecordData, err error)
ListCodeCoverageRecord list code coverage record
func (*CodeCoverage) ReadyCallBack ¶
func (svc *CodeCoverage) ReadyCallBack(req apistructs.CodeCoverageUpdateRequest) error
ReadyCallBack Record ready callBack
func (*CodeCoverage) ReportCallBack ¶
func (svc *CodeCoverage) ReportCallBack(req apistructs.CodeCoverageUpdateRequest) error
ReportCallBack Record report callBack
func (*CodeCoverage) SaveCodeCoverageSetting ¶
func (svc *CodeCoverage) SaveCodeCoverageSetting(saveSettingRequest apistructs.SaveCodeCoverageSettingRequest) (*apistructs.CodeCoverageSetting, error)
func (*CodeCoverage) Start ¶
func (svc *CodeCoverage) Start(req apistructs.CodeCoverageStartRequest) error
Start Start record
type Option ¶
type Option func(*CodeCoverage)
func WithBundle ¶
func WithDBClient ¶
func WithEnvConfig ¶
func WithEnvConfig(envConfig *environment.EnvConfig) Option
Click to show internal directories.
Click to hide internal directories.