types

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoosterConfig

type BoosterConfig struct {
	// Task type decide what kind of this task is going to be launched.
	// It matters the type of executor's handler.
	Type BoosterType

	// ProjectID define the project which influences the remote workers settings.
	ProjectID string

	// BuildID provides a custom key to be associated with the task.
	BuildID string

	// Use BatchMode for multi boosters use the same workID.
	BatchMode bool

	// Args describe the actual args to be executed after initialization.
	Args string

	Cmd string

	Works BoosterWorks

	Transport BoosterTransport

	Controller sdk.ControllerConfig
}

BoosterConfig describe the whole data that distribute workers booster should hold.

type BoosterTransport

type BoosterTransport struct {
	ServerDomain           string
	ServerHost             string
	Timeout                time.Duration
	HeartBeatTick          time.Duration
	InspectTaskTick        time.Duration
	TaskPreparingTimeout   time.Duration
	PrintTaskInfoEveryTime int
	CommitSuicideCheckTick time.Duration
}

BoosterTransport describe the transport data to controller

type BoosterType

type BoosterType string

BoosterType string

var (
	BoosterCC      BoosterType = "cc"
	BoosterFind    BoosterType = "find"
	BoosterTC      BoosterType = "tc"
	BoosterCL      BoosterType = "cl"
	BoosterShader  BoosterType = "shader"
	BoosterUE4     BoosterType = "ue4"
	BoosterClangCl BoosterType = "clang-cl"
	BoosterEcho    BoosterType = "echo"
	BoosterCustom  BoosterType = "custom"
	BoosterUnknown BoosterType = "unknown"
)

define task types

func GetBoosterType

func GetBoosterType(key string) BoosterType

GetBoosterType get task type by string

func (BoosterType) String

func (t BoosterType) String() string

String return the string of BoosterType

type BoosterWorks

type BoosterWorks struct {
	Degraded bool

	Stdout io.Writer
	Stderr io.Writer

	// RunDir describe the current command running dir.
	RunDir string

	// User describe the current user.
	User string

	CommandPath       string
	LimitPerWorker    int
	Jobs              int
	MaxJobs           int
	Presetjobs        int
	MaxDegradedJobs   int
	MaxLocalTotalJobs int
	MaxLocalPreJobs   int
	MaxLocalExeJobs   int
	MaxLocalPostJobs  int
	SupportDirectives bool
	GlobalSlots       bool

	ExecutorLogLevel string

	Environments map[string]string

	HookPreloadLibPath string
	HookConfigPath     string
	HookMode           bool
	NoLocal            bool
	Local              bool
	WorkerSideCache    bool
	LocalRecord        bool

	Bazel           bool
	BazelPlus       bool
	Bazel4Plus      bool
	Launcher        bool
	BazelNoLauncher bool

	Preload           sdk.PreloadConfig
	PreloadContent    string
	PreloadContentRaw string

	AdditionFiles []string

	WorkerList []string
	CheckMd5   bool

	OutputEnvJSONFile   []string
	OutputEnvSourceFile []string
	CommitSuicide       bool
	ToolChainJSONFile   string

	IOTimeoutSecs int

	Pump                 bool
	PumpDisableMacro     bool
	PumpIncludeSysHeader bool
	PumpCheck            bool
	PumpCache            bool
	PumpCacheDir         string
	PumpCacheSizeMaxMB   int32
	PumpCacheRemoveAll   bool
	PumpBlackList        []string
	PumpMinActionNum     int32
	PumpDisableStatCache bool
	PumpSearchLink       bool
	PumpSearchLinkFile   string
	PumpSearchLinkDir    []string
	PumpLstatByDir       bool

	ForceLocalList []string

	NoWork bool

	WriteMemroy bool

	IdleKeepSecs int

	CleanTmpFilesDayAgo int

	EnableLink bool
	EnableLib  bool
}

BoosterWorks describe the works data

Jump to

Keyboard shortcuts

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