lib

package
v0.0.0-...-6ac6f58 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 19 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) 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) (int, error)

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

func (l *TaskLib) OnRemoteFail(command []string) (*dcSDK.BKDistCommand, error)

OnRemoteFail give chance to try other way if failed to remote execute

func (*TaskLib) PostExecute

func (l *TaskLib) PostExecute(r *dcSDK.BKDistResult) error

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, error)

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