pkg

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

Documentation

Index

Constants

View Source
const (
	OSWindows         = "windows"
	MaxWaitSecs       = 10800
	TickSecs          = 30
	DefaultJobs       = 240 // ok for most machines
	ActionDescMaxSize = 50

	DevOPSProcessTreeKillKey = "DEVOPS_DONT_KILL_PROCESS_TREE"
)

Variables

View Source
var (
	ErrorNoActionsToRun           = fmt.Errorf("not found any action to execute")
	ErrorOverMaxTime              = fmt.Errorf("execute over max wait seconds")
	ErrorInvalidWorkID            = fmt.Errorf("not found valid work id")
	ErrorProjectSettingNotExisted = fmt.Errorf("not found project setting file")
	ErrorUnknown                  = fmt.Errorf("unknown error")
)

Functions

func GetErrorCode

func GetErrorCode(err error) int

GetErrorCode return error code by error

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor define dist executor

func NewExecutor

func NewExecutor() *Executor

NewExecutor return new Executor

func (*Executor) Run

func (d *Executor) Run(fullargs []string, workdir string) (int, string, error)

Run main function entry

func (*Executor) Update

func (d *Executor) Update()

Update update with env

func (*Executor) Valid

func (d *Executor) Valid() bool

Valid

type UBTTool

type UBTTool struct {
	// contains filtered or unexported fields
}

UBTTool describe the ubt tool handler

func NewUBTTool

func NewUBTTool(flagsparam *common.Flags) *UBTTool

NewUBTTool get a new UBTTool func NewUBTTool(flagsparam *common.Flags, config dcSDK.ControllerConfig) *UBTTool {

func (*UBTTool) Run

func (h *UBTTool) Run(ctx context.Context) (int, error)

Run run the tool

Jump to

Keyboard shortcuts

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