hook

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

Documentation

Index

Constants

View Source
const (
	EnvKeyLDPreload  = "LD_PRELOAD"
	EnvKeyHookConfig = "BK_HOOK_CONFIG_PATH"
	EnvKeyDistccHost = "DISTCC_HOSTS"
)

define env keys for hook

View Source
const (
	BazelCmdKey         = "bazel "
	BazelBuildKey       = " build "
	BazelBuildSuffixKey = " build"
	BazelActionEnvKey   = "--action_env"
)

define keys for bazel

Variables

This section is empty.

Functions

func RunBazelProcess

func RunBazelProcess(
	ldPreloadLibPath string, hookConfigPath string, envs map[string]string, cmd string, jobs string) (int, error)

RunBazelProcess to hook and start bazel build process

func RunProcess

func RunProcess(ldPreloadLibPath string, hookConfigPath string, envs map[string]string, cmd string) (int, error)

RunProcess to hook and start process

Types

type ErrorCode

type ErrorCode int

ErrorCode define hook error code

const (
	ErrorOk ErrorCode = iota
	ErrorFileNotExist
	ErrorFailedSetEnv
	ErrorInvalidBazelCmd
	ErrorNewBazelCmd
)

define error codes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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