hook

package
v1.5.19 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: 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

Jump to

Keyboard shortcuts

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