Documentation ¶
Index ¶
- Variables
- type TaskLib
- func (l *TaskLib) CanExecuteWithLocalIdleResource(command []string) bool
- func (l *TaskLib) FinalExecute([]string)
- func (l *TaskLib) GetFilterRules() ([]dcSDK.FilterRuleItem, error)
- func (l *TaskLib) GetPreloadConfig(config dcType.BoosterConfig) (*dcSDK.PreloadConfig, error)
- func (l *TaskLib) InitExtra(extra []byte)
- func (l *TaskLib) InitSandbox(sandbox *dcSyscall.Sandbox)
- func (l *TaskLib) LocalExecute(command []string) dcType.BKDistCommonError
- func (l *TaskLib) LocalExecuteNeed(command []string) bool
- func (l *TaskLib) LocalLockWeight(command []string) int32
- func (l *TaskLib) NeedRemoteResource(command []string) bool
- func (l *TaskLib) NeedRetryOnRemoteFail(command []string) bool
- func (l *TaskLib) OnRemoteFail(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)
- func (l *TaskLib) PostExecute(r *dcSDK.BKDistResult) dcType.BKDistCommonError
- func (l *TaskLib) PostExecuteNeedLock(result *dcSDK.BKDistResult) bool
- func (l *TaskLib) PostLockWeight(result *dcSDK.BKDistResult) int32
- func (l *TaskLib) PostWork(config *dcType.BoosterConfig) error
- func (l *TaskLib) PreExecute(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)
- func (l *TaskLib) PreExecuteNeedLock(command []string) bool
- func (l *TaskLib) PreLockWeight(command []string) int32
- func (l *TaskLib) PreWork(config *dcType.BoosterConfig) error
- func (l *TaskLib) RemoteRetryTimes() int
- func (l *TaskLib) RenderArgs(config dcType.BoosterConfig, originArgs string) string
- func (l *TaskLib) ResultExtra() []byte
Constants ¶
This section is empty.
Variables ¶
var ( ErrorMissingOption = fmt.Errorf("missing option/operand") ErrorInvalidOption = fmt.Errorf("invalid option/operand") ErrorUnrecognizedOption = fmt.Errorf("unrecognized option") ErrorNoAvailable4Remote = fmt.Errorf("no available for remote") ErrorFileNotExist = fmt.Errorf("file/path not exist") ErrorFileInvalid = fmt.Errorf("file/path invalid") ErrorInvalidParam = fmt.Errorf("param is invalid") )
errors for lib.exe
Functions ¶
This section is empty.
Types ¶
type TaskLib ¶
type TaskLib struct {
// contains filtered or unexported fields
}
TaskLib 定义了lib.exe链接的描述处理对象, 一般用来处理ue4-win下的lib链接
func (*TaskLib) CanExecuteWithLocalIdleResource ¶
func (*TaskLib) GetFilterRules ¶
func (l *TaskLib) GetFilterRules() ([]dcSDK.FilterRuleItem, error)
GetFilterRules add file send filter
func (*TaskLib) GetPreloadConfig ¶
func (l *TaskLib) GetPreloadConfig(config dcType.BoosterConfig) (*dcSDK.PreloadConfig, error)
GetPreloadConfig no preload config need
func (*TaskLib) InitSandbox ¶
InitSandbox set sandbox to task-lib
func (*TaskLib) LocalExecute ¶
func (l *TaskLib) LocalExecute(command []string) dcType.BKDistCommonError
LocalExecute no need
func (*TaskLib) LocalExecuteNeed ¶
LocalExecuteNeed no need
func (*TaskLib) LocalLockWeight ¶
LocalLockWeight decide local-execute lock weight, default 1
func (*TaskLib) NeedRemoteResource ¶
NeedRemoteResource check whether this command need remote resource
func (*TaskLib) NeedRetryOnRemoteFail ¶
NeedRetryOnRemoteFail check whether need retry on remote fail
func (*TaskLib) OnRemoteFail ¶
func (l *TaskLib) OnRemoteFail(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)
OnRemoteFail give chance to try other way if failed to remote execute
func (*TaskLib) PostExecute ¶
func (l *TaskLib) PostExecute(r *dcSDK.BKDistResult) dcType.BKDistCommonError
PostExecute 后置处理
func (*TaskLib) PostExecuteNeedLock ¶
func (l *TaskLib) PostExecuteNeedLock(result *dcSDK.BKDistResult) bool
PostExecuteNeedLock 防止回传的文件读写跑满本机磁盘
func (*TaskLib) PostLockWeight ¶
func (l *TaskLib) PostLockWeight(result *dcSDK.BKDistResult) int32
PostLockWeight decide post-execute lock weight, default 1
func (*TaskLib) PostWork ¶
func (l *TaskLib) PostWork(config *dcType.BoosterConfig) error
PostWork no need
func (*TaskLib) PreExecute ¶
func (l *TaskLib) PreExecute(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)
PreExecute 预处理
func (*TaskLib) PreExecuteNeedLock ¶
PreExecuteNeedLock 没有在本地执行的预处理步骤, 无需pre-lock
func (*TaskLib) PreLockWeight ¶
PreLockWeight decide pre-execute lock weight, default 1
func (*TaskLib) PreWork ¶
func (l *TaskLib) PreWork(config *dcType.BoosterConfig) error
PreWork no need
func (*TaskLib) RemoteRetryTimes ¶
RemoteRetryTimes will return the remote retry times
func (*TaskLib) RenderArgs ¶
func (l *TaskLib) RenderArgs(config dcType.BoosterConfig, originArgs string) string
RenderArgs no need change