Documentation ¶
Index ¶
- func NewWinClangCl() (handler.Handler, error)
- type WinClangCl
- func (cc *WinClangCl) CanExecuteWithLocalIdleResource(command []string) bool
- func (cc *WinClangCl) FinalExecute(args []string)
- func (cc *WinClangCl) GetFilterRules() ([]dcSDK.FilterRuleItem, error)
- func (cc *WinClangCl) GetPreloadConfig(config dcType.BoosterConfig) (*dcSDK.PreloadConfig, error)
- func (cc *WinClangCl) InitExtra(extra []byte)
- func (cc *WinClangCl) InitSandbox(sandbox *dcSyscall.Sandbox)
- func (cc *WinClangCl) LocalExecute(command []string) dcType.BKDistCommonError
- func (cc *WinClangCl) LocalExecuteNeed(command []string) bool
- func (cc *WinClangCl) LocalLockWeight(command []string) int32
- func (cc *WinClangCl) NeedRemoteResource(command []string) bool
- func (cc *WinClangCl) NeedRetryOnRemoteFail(command []string) bool
- func (cc *WinClangCl) OnRemoteFail(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)
- func (cc *WinClangCl) PostExecute(r *dcSDK.BKDistResult) dcType.BKDistCommonError
- func (cc *WinClangCl) PostExecuteNeedLock(result *dcSDK.BKDistResult) bool
- func (cc *WinClangCl) PostLockWeight(result *dcSDK.BKDistResult) int32
- func (cc *WinClangCl) PostWork(config *dcType.BoosterConfig) error
- func (cc *WinClangCl) PreExecute(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)
- func (cc *WinClangCl) PreExecuteNeedLock(command []string) bool
- func (cc *WinClangCl) PreLockWeight(command []string) int32
- func (cc *WinClangCl) PreWork(config *dcType.BoosterConfig) error
- func (cc *WinClangCl) RemoteRetryTimes() int
- func (cc *WinClangCl) RenderArgs(config dcType.BoosterConfig, originArgs string) string
- func (cc *WinClangCl) ResultExtra() (extra []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWinClangCl ¶
Types ¶
type WinClangCl ¶
type WinClangCl struct {
// contains filtered or unexported fields
}
WinClangCl 定义了windows clang-cl.exe编译
func (*WinClangCl) CanExecuteWithLocalIdleResource ¶
func (cc *WinClangCl) CanExecuteWithLocalIdleResource(command []string) bool
func (*WinClangCl) FinalExecute ¶
func (cc *WinClangCl) FinalExecute(args []string)
FinalExecute 清理临时文件
func (*WinClangCl) GetFilterRules ¶
func (cc *WinClangCl) GetFilterRules() ([]dcSDK.FilterRuleItem, error)
GetFilterRules add file send filter
func (*WinClangCl) GetPreloadConfig ¶
func (cc *WinClangCl) GetPreloadConfig(config dcType.BoosterConfig) (*dcSDK.PreloadConfig, error)
func (*WinClangCl) InitExtra ¶
func (cc *WinClangCl) InitExtra(extra []byte)
InitExtra receive the extra data from project settings and init the handle extra data
func (*WinClangCl) InitSandbox ¶
func (cc *WinClangCl) InitSandbox(sandbox *dcSyscall.Sandbox)
InitSandbox set sandbox to task-cc
func (*WinClangCl) LocalExecute ¶
func (cc *WinClangCl) LocalExecute(command []string) dcType.BKDistCommonError
LocalExecute 无需自定义本地处理
func (*WinClangCl) LocalExecuteNeed ¶
func (cc *WinClangCl) LocalExecuteNeed(command []string) bool
LocalExecuteNeed 无需自定义本地处理
func (*WinClangCl) LocalLockWeight ¶
func (cc *WinClangCl) LocalLockWeight(command []string) int32
LocalLockWeight decide local-execute lock weight, default 1
func (*WinClangCl) NeedRemoteResource ¶
func (cc *WinClangCl) NeedRemoteResource(command []string) bool
NeedRemoteResource check whether this command need remote resource
func (*WinClangCl) NeedRetryOnRemoteFail ¶
func (cc *WinClangCl) NeedRetryOnRemoteFail(command []string) bool
NeedRetryOnRemoteFail check whether need retry on remote fail
func (*WinClangCl) OnRemoteFail ¶
func (cc *WinClangCl) OnRemoteFail(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)
OnRemoteFail give chance to try other way if failed to remote execute
func (*WinClangCl) PostExecute ¶
func (cc *WinClangCl) PostExecute(r *dcSDK.BKDistResult) dcType.BKDistCommonError
PostExecute 后置处理, 判断远程执行的结果是否正确
func (*WinClangCl) PostExecuteNeedLock ¶
func (cc *WinClangCl) PostExecuteNeedLock(result *dcSDK.BKDistResult) bool
func (*WinClangCl) PostLockWeight ¶
func (cc *WinClangCl) PostLockWeight(result *dcSDK.BKDistResult) int32
PostLockWeight decide post-execute lock weight, default 1
func (*WinClangCl) PostWork ¶
func (cc *WinClangCl) PostWork(config *dcType.BoosterConfig) error
func (*WinClangCl) PreExecute ¶
func (cc *WinClangCl) PreExecute(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)
PreExecute 预处理
func (*WinClangCl) PreExecuteNeedLock ¶
func (cc *WinClangCl) PreExecuteNeedLock(command []string) bool
func (*WinClangCl) PreLockWeight ¶
func (cc *WinClangCl) PreLockWeight(command []string) int32
func (*WinClangCl) PreWork ¶
func (cc *WinClangCl) PreWork(config *dcType.BoosterConfig) error
func (*WinClangCl) RemoteRetryTimes ¶
func (cc *WinClangCl) RemoteRetryTimes() int
RemoteRetryTimes will return the remote retry times
func (*WinClangCl) RenderArgs ¶
func (cc *WinClangCl) RenderArgs(config dcType.BoosterConfig, originArgs string) string
RenderArgs return the actual executing args with the origin args and config
func (*WinClangCl) ResultExtra ¶
func (cc *WinClangCl) ResultExtra() (extra []byte)
ResultExtra return the extra message to record in project info