lib

package
v0.0.0-...-32b710e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 NewTaskLib

func NewTaskLib() *TaskLib

NewTaskLib get a new lib handler

func (*TaskLib) CanExecuteWithLocalIdleResource

func (l *TaskLib) CanExecuteWithLocalIdleResource(command []string) bool

func (*TaskLib) FinalExecute

func (l *TaskLib) FinalExecute([]string)

FinalExecute no need

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) InitExtra

func (l *TaskLib) InitExtra(extra []byte)

InitExtra no need

func (*TaskLib) InitSandbox

func (l *TaskLib) InitSandbox(sandbox *dcSyscall.Sandbox)

InitSandbox set sandbox to task-lib

func (*TaskLib) LocalExecute

func (l *TaskLib) LocalExecute(command []string) dcType.BKDistCommonError

LocalExecute no need

func (*TaskLib) LocalExecuteNeed

func (l *TaskLib) LocalExecuteNeed(command []string) bool

LocalExecuteNeed no need

func (*TaskLib) LocalLockWeight

func (l *TaskLib) LocalLockWeight(command []string) int32

LocalLockWeight decide local-execute lock weight, default 1

func (*TaskLib) NeedRemoteResource

func (l *TaskLib) NeedRemoteResource(command []string) bool

NeedRemoteResource check whether this command need remote resource

func (*TaskLib) NeedRetryOnRemoteFail

func (l *TaskLib) NeedRetryOnRemoteFail(command []string) bool

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

func (l *TaskLib) PreExecuteNeedLock(command []string) bool

PreExecuteNeedLock 没有在本地执行的预处理步骤, 无需pre-lock

func (*TaskLib) PreLockWeight

func (l *TaskLib) PreLockWeight(command []string) int32

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

func (l *TaskLib) RemoteRetryTimes() int

RemoteRetryTimes will return the remote retry times

func (*TaskLib) RenderArgs

func (l *TaskLib) RenderArgs(config dcType.BoosterConfig, originArgs string) string

RenderArgs no need change

func (*TaskLib) ResultExtra

func (l *TaskLib) ResultExtra() []byte

ResultExtra no need

Jump to

Keyboard shortcuts

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