Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/buildpacks
/ functions
Functions
3,416 in github.com/GoogleCloudPlatform/buildpacks
⨍
Functions
3,416
◇
Types & classes
435
↳
Endpoints
60
↓ 5 callers
Function
Tarball
Tarball downloads a tarball from a URL and extracts it into the provided directory.
pkg/fetch/fetch.go:43
↓ 5 callers
Function
WithApp
WithApp specifies an app, by directory name, to build from testdata.
internal/buildpacktest/buildpacktest.go:135
↓ 5 callers
Function
WithBuildpackInfo
WithBuildpackInfo sets the buildpack info in Context.
pkg/gcpbuildpack/gcpbuildpack.go:128
↓ 5 callers
Method
appendFileSync
(p, content, opts = {})
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3421
↓ 5 callers
Method
appendFileSync
(p, content, opts = {})
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2339
↓ 5 callers
Function
appendVendoringFlags
appendVendoringFlags checks for and appends vendored dependency flags to the command.
pkg/python/python.go:492
↓ 5 callers
Function
arHostname
arHostname returns the Artifact Registry hostname for a given region, handling both GDU and TPC.
pkg/runtime/install.go:207
↓ 5 callers
Function
build
build implements the /bin/build phase of the buildpack.
pkg/gcpbuildpack/gcpbuildpack.go:363
↓ 5 callers
Function
c
(n, str)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:11006
↓ 5 callers
Function
c
(n, str)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:9616
↓ 5 callers
Function
cleanUpImage
cleanUpImage attempts to delete an image from the Docker daemon.
internal/acceptance/acceptance.go:596
↓ 5 callers
Function
detect
detect implements the /bin/detect phase of the buildpack.
pkg/gcpbuildpack/gcpbuildpack.go:318
↓ 5 callers
Method
execWithErrCastToBuildError
(cmd []string, opts ...ExecOption)
pkg/gcpbuildpack/exec_test.go:223
↓ 5 callers
Function
findPackageLocator
(location, { resolveIgnored = false, includeDiscardFromLookup = false } = {})
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:11252
↓ 5 callers
Function
findPackageLocator
(location, { resolveIgnored = false, includeDiscardFromLookup = false } = {})
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:9857
↓ 5 callers
Function
finish
(byteArray2)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:8630
↓ 5 callers
Function
finish
(byteArray2)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:7534
↓ 5 callers
Function
hash
hash creates a sha256 hash from the given cache options.
pkg/cache/cache.go:57
↓ 5 callers
Function
isBuiltinModule
(request)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:9765
↓ 5 callers
Function
isBuiltinModule
(request)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:8666
↓ 5 callers
Function
keepTail
(message string)
pkg/gcpbuildpack/builderoutput.go:128
↓ 5 callers
Method
linkSync
(existingP, newP)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3582
↓ 5 callers
Method
linkSync
(existingP, newP)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2500
↓ 5 callers
Method
mkdirPromise
(p, opts)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3535
↓ 5 callers
Method
mkdirPromise
(p, opts)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2453
↓ 5 callers
Function
mockReadGoVersion
mockReadGoVersion mocks the readGoVersion
pkg/golang/golang_test.go:730
↓ 5 callers
Method
openPromise
(p, flags, mode)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:2851
↓ 5 callers
Method
openPromise
(p, flags, mode)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:1769
↓ 5 callers
Function
opt
(pass bool, reason string, opts ...DetectResultOption)
pkg/gcpbuildpack/detect.go:88
↓ 5 callers
Function
overrideProperties
(ctx *gcp.Context, configValue, defaultFile string)
pkg/webconfig/webconfig.go:84
↓ 5 callers
Function
prepareDependenciesLayer
prepareDependenciesLayer is a helper function that handles the common logic for preparing a dependency layer. It checks for empty requirements, manage
pkg/python/python.go:359
↓ 5 callers
Function
resolve
* @param {object} pkg package.json contents * @param {string} [entry] entry name or import path * @param {object} [options] * @param {boolean} [opt
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:10171
↓ 5 callers
Function
resolve
* @param {object} pkg package.json contents * @param {string} [entry] entry name or import path * @param {object} [options] * @param {boolean} [opt
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:9066
↓ 5 callers
Function
resolvePackageVersion
resolvePackageVersion returns the newest available version of an NPM package that satisfies the provided version constraint.
pkg/nodejs/registry.go:67
↓ 5 callers
Method
saveAndClose
()
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:2821
↓ 5 callers
Method
saveAndClose
()
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:1739
↓ 5 callers
Method
setFileSource
(p, content)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3248
↓ 5 callers
Method
setFileSource
(p, content)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2166
↓ 5 callers
Method
statPromise
(p, opts = { bigint: false })
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3030
↓ 5 callers
Method
statPromise
(p, opts = { bigint: false })
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:1948
↓ 5 callers
Method
symlinkPromise
(target, p)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3585
↓ 5 callers
Method
symlinkPromise
(target, p)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2503
↓ 5 callers
Function
throwInvalidPackageTarget
(subpath, target, packageJSONUrl, internal, base)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:10432
↓ 5 callers
Function
throwInvalidPackageTarget
(subpath, target, packageJSONUrl, internal, base)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:9327
↓ 5 callers
Function
toBuildSchema
(appHostingSchema apphostingschema.AppHostingSchema, bundleSchema bundleschema.BundleSchema)
pkg/firebase/publisher/publisher.go:74
↓ 5 callers
Function
writeFile
(t *testing.T, tempDir, name, contents string)
pkg/cache/cache_test.go:294
↓ 4 callers
Function
CheckCacheExpiration
CheckCacheExpiration clears the m2 layer and sets a new expiry timestamp when the cache is past expiration.
pkg/java/java.go:171
↓ 4 callers
Function
CheckOrClearCache
CheckOrClearCache checks whether cached dependencies exist and match. If they do not match, the layer is cleared and the layer metadata is updated wit
pkg/nodejs/nodejs.go:388
↓ 4 callers
Function
CheckVulnerabilities
CheckVulnerabilities checks for known vulnerable dependencies.
pkg/nodejs/vulnerability.go:37
↓ 4 callers
Function
DetermineBuildCommands
DetermineBuildCommands returns a list of "npm run" commands to be executed during the build and a bool representing whether this is a "custom build" (
pkg/nodejs/npm.go:190
↓ 4 callers
Function
EISDIR
(reason)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:1623
↓ 4 callers
Function
EISDIR
(reason)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:545
↓ 4 callers
Function
File
File downloads a file from a URL and writes it to the provided path.
pkg/fetch/fetch.go:143
↓ 4 callers
Function
HasDevDependencies
HasDevDependencies returns true if the given directory contains a package.json file that lists more one or more devDependencies.
pkg/nodejs/nodejs.go:296
↓ 4 callers
Function
HasScript
HasScript returns true if the given package.json file defines a script with the given name.
pkg/nodejs/nodejs.go:286
↓ 4 callers
Method
Install
(ctx *gcp.Context, layerName string, scriptRelPath string)
pkg/execd/execd.go:29
↓ 4 callers
Function
IsDevMode
IsDevMode indicates that the builder is running in Development mode.
pkg/env/env.go:276
↓ 4 callers
Function
IsExactSemver
IsExactSemver returns true if a given string is valid semantic version.
pkg/version/version.go:121
↓ 4 callers
Function
IsFlutter
IsFlutter returns true if the given Dart project contains a pubspec.yaml that declares a dependency on flutter.
pkg/dart/flutter.go:166
↓ 4 callers
Function
IsUVPyproject
IsUVPyproject checks if the application is a UV Pyproject application.
pkg/python/pyproject.go:196
↓ 4 callers
Method
IsWritable
IsWritable returns true if the file at the path constructed by joining elem is writable by the owner
pkg/gcpbuildpack/os.go:79
↓ 4 callers
Function
JSON
JSON fetches a JSON payload from a URL and unmarshals it into the value pointed to by v.
pkg/fetch/fetch.go:159
↓ 4 callers
Function
MvnCmd
MvnCmd returns the command that should be used to invoke maven for this build.
pkg/java/java.go:194
↓ 4 callers
Function
NPMInstallCommand
NPMInstallCommand returns the correct install command based on the version of Node.js. By default we prefer "npm ci" because it handles transitive dep
pkg/nodejs/npm.go:128
↓ 4 callers
Function
NewExecCmd
NewExecCmd constructs an command executor that can replace standard exec.Cmd calls with custom behavior for testing. It takes a series of mock command
internal/mockprocess/mockprocess.go:93
↓ 4 callers
Function
OptOut
OptOut is used during the detect phase to opt out of the build process.
pkg/gcpbuildpack/detect.go:74
↓ 4 callers
Function
ParsePomFile
ParsePomFile unmarshals the provided pom.xml into a MavenProject.
pkg/java/maven.go:59
↓ 4 callers
Function
PhpConfiguration
PhpConfiguration returns the PHP configuration in runtime_config for GAE Flexible
pkg/appyaml/appyaml.go:99
↓ 4 callers
Function
ReadComposerJSON
ReadComposerJSON returns the deserialized composer.json from the given dir. Empty dir uses the current working directory.
pkg/php/php.go:118
↓ 4 callers
Function
ResolveVersion
ResolveVersion finds the largest version in a list of semantic versions that satisfies the provided constraint. If no version in the list satisfies th
pkg/version/version.go:44
↓ 4 callers
Function
RuntimeVersion
RuntimeVersion validate and returns the customer requested Python version by inspecting the environment variables and .python-version file.
pkg/python/python.go:116
↓ 4 callers
Function
ShouldTestVersion
ShouldTestVersion returns true if the current test run's version is included in the constraint parameter. An empty inclusion constraint is treated as
internal/acceptance/acceptance.go:1509
↓ 4 callers
Function
SkipPruningDevSync
SkipPruningDevSync returns true if dev sync is enabled, or if dev sync status cannot be determined.
pkg/nodejs/nodejs.go:597
↓ 4 callers
Method
Span
Span emits a structured Stackdriver span.
pkg/gcpbuildpack/gcpbuildpack.go:417
↓ 4 callers
Method
String
()
pkg/cloudfunctions/labels.go:24
↓ 4 callers
Function
StringPrototypeSlice
(str, ...rest)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:10237
↓ 4 callers
Function
StringPrototypeSlice
(str, ...rest)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:9132
↓ 4 callers
Function
WithEnv
WithEnv sets environment variables (of the form "KEY=value").
pkg/gcpbuildpack/exec.go:60
↓ 4 callers
Function
WithStderr
WithStderr configures what a mocked command prints to stderr.
internal/mockprocess/mockprocess.go:77
↓ 4 callers
Function
addEnvVar
(t *testing.T, env map[string]string, name, value string)
internal/acceptance/environment.go:85
↓ 4 callers
Function
addToCacheAndReturn
(start, end, target)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:11710
↓ 4 callers
Function
addToCacheAndReturn
(start, end, target)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:10314
↓ 4 callers
Method
appendFilePromise
(p, content, opts)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3410
↓ 4 callers
Method
appendFilePromise
(p, content, opts)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2328
↓ 4 callers
Method
chownPromise
(p, uid, gid)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3363
↓ 4 callers
Method
chownPromise
(p, uid, gid)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2281
↓ 4 callers
Method
copyFileSync
(sourceP, destP, flags = 0)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3383
↓ 4 callers
Method
copyFileSync
(sourceP, destP, flags = 0)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2301
↓ 4 callers
Function
createErrorType
(code, messageCreator, errorType)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:10242
↓ 4 callers
Function
createErrorType
(code, messageCreator, errorType)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:9137
↓ 4 callers
Method
discardAndClose
()
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:2843
↓ 4 callers
Function
doGet
doGet performs an HTTP GET request for a URL.
pkg/fetch/fetch.go:334
↓ 4 callers
Method
existsPromise
(p)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:2999
↓ 4 callers
Method
existsPromise
(p)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:1917
↓ 4 callers
Method
fchmodPromise
(fd, mask)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3333
↓ 4 callers
Method
fchmodPromise
(fd, mask)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2251
↓ 4 callers
Method
fchmodSync
(fd, mask)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3336
↓ 4 callers
Method
fchmodSync
(fd, mask)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2254
↓ 4 callers
Method
fchownPromise
(fd, uid, gid)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3357
↓ 4 callers
Method
fchownPromise
(fd, uid, gid)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2275
← previous
next →
301–400 of 3,416, ranked by callers