MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/buildpacks / functions

Functions3,416 in github.com/GoogleCloudPlatform/buildpacks

↓ 2 callersFunctionWithExecCmd
WithExecCmd overrides the exec.Cmd instance used for executing commands, primarily useful for testing.
pkg/gcpbuildpack/gcpbuildpack.go:143
↓ 2 callersFunctionWithFiles
WithFiles specifies files, by directory name and contents to generate for tests.
internal/buildpacktest/buildpacktest.go:149
↓ 2 callersFunctionWithHandler
WithHandler sets a custom http.Handler for the test server.
internal/testserver/testserver.go:64
↓ 2 callersFunctionWithLogCommand
WithLogCommand logs or silences the shell command itself from being printed. This takes precedence over any other options.
pkg/gcpbuildpack/exec.go:93
↓ 2 callersFunctionWithLogOutput
WithLogOutput logs or silences the shell command's output from being printed. This takes precedence over any other options.
pkg/gcpbuildpack/exec.go:101
↓ 2 callersFunctionWithLogger
WithLogger override the logger implementation, this is useful for unit tests which want to verify logging output.
pkg/gcpbuildpack/gcpbuildpack.go:151
↓ 2 callersFunctionWithWorkDir
WithWorkDir sets a specific working directory.
pkg/gcpbuildpack/exec.go:67
↓ 2 callersFunctionWrite
Write produces a file where each line has the format KEY=VALUE. We aren't using the godotenv library as its output isn't compatible with the `pack bui
pkg/firebase/envvars/envvars.go:36
↓ 2 callersFunctionWriteBuildDirectoryContext
WriteBuildDirectoryContext writes the build directory context to the specified buildpack config file path.
pkg/firebase/util/util.go:116
↓ 2 callersFunctionWriteBuildScript
WriteBuildScript writes the build steps to a script to be run on each file change in dev mode.
pkg/devmode/java.go:49
↓ 2 callersFunctionWriteFpmConfigToPath
WriteFpmConfigToPath writes the fpm configuration file to the given path.
pkg/nginx/nginx.go:200
↓ 2 callersFunctionWriteLifecycle
WriteLifecycle writes the env vars to the given directory in a way that is compatible with the lifecycle build process.
pkg/firebase/envvars/envvars.go:50
↓ 2 callersFunctionWriteNginxConfig
WriteNginxConfig compiles the configuration template with parameters and writes it to disk.
pkg/static/static.go:109
↓ 2 callersFunctionWriteNginxConfigToPath
WriteNginxConfigToPath writes the configuration for the nginx server to the given path.
pkg/nginx/nginx.go:186
↓ 2 callersMethod_html
This just generates an HTML document that includes `message` in the body.
builders/testdata/python/generic/requirements_vendored_dependencies/main.py:29
↓ 2 callersMethod_html
This just generates an HTML document that includes `message` in the body.
builders/testdata/python/generic/pyproject_vendored_dependencies/main.py:29
↓ 2 callersFunctionaddFrameworkVersionLabel
tryAddFrameworkVersionLabel attempts to identify the functions framework version being used by reading the functions-framework package's manifest. If
cmd/nodejs/functions_framework/lib/lib.go:304
↓ 2 callersFunctionaddNginxConfCmdArgs
(path, nginxServerConfFileName string, overrides webconfig.OverrideProperties)
cmd/php/webconfig/lib/lib.go:225
↓ 2 callersFunctionaddRunDependency
(id)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:5767
↓ 2 callersFunctionaddRunDependency
(id)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:4671
↓ 2 callersMethodallocateBuffer
(content)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3219
↓ 2 callersMethodallocateBuffer
(content)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2137
↓ 2 callersFunctionappEngineInDeps
(deps []string)
cmd/php/appengine/lib/lib.go:87
↓ 2 callersFunctionappEngineInDeps
(deps []string)
cmd/go/appengine/lib/lib.go:82
↓ 2 callersFunctionappYamlIfExists
appYamlIfExists looks up the app.yaml file specified by env var and returns its content if exists.
pkg/appyaml/appyaml.go:46
↓ 2 callersMethodappendFile
(data, options)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:4981
↓ 2 callersMethodappendFile
(data, options)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:3891
↓ 2 callersFunctionapplyRuntimeVersion
(t *testing.T, environment map[string]string, version string)
internal/acceptance/environment.go:61
↓ 2 callersFunctionarchiveSource
archiveSource archives user's source code in a layer
cmd/utils/archive_source/lib/lib.go:77
↓ 2 callersFunctionassert
(condition, text)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:5529
↓ 2 callersFunctionassert
(condition, text)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:4433
↓ 2 callersFunctionassertStatus
(current, expected)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:2469
↓ 2 callersFunctionassertStatus
(current, expected)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:1391
↓ 2 callersFunctionbasePipInstallArgs
(req string)
pkg/python/python.go:583
↓ 2 callersFunctionbuildDefault
buildDefault builds a native-image in the basic and non-specialized way that can work on any normal Java apps and returns the image entrypoint. Curren
cmd/java/native_image/lib/lib.go:92
↓ 2 callersFunctioncacheExpired
cacheExpired returns true when the cache is past expiration.
pkg/python/python.go:430
↓ 2 callersFunctioncallNativeResolution
(request, issuer)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:11175
↓ 2 callersFunctioncallNativeResolution
(request, issuer)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:9780
↓ 2 callersFunctioncheckLocalRuntimeVersion
(ctx *gcp.Context, runtime InstallableRuntime)
pkg/runtime/install.go:713
↓ 2 callersFunctionclasspathAndMainFromSpringBoot
classpathAndMainFromSpringBoot returns classpath and main class of an exploded Spring Boot fat JAR that is suitable for the application exeuction on a
cmd/java/native_image/lib/lib.go:268
↓ 2 callersFunctioncleanUpVolumes
cleanUpVolumes tries to delete volumes created by pack during the build.
internal/acceptance/acceptance.go:1418
↓ 2 callersFunctioncleanVersion
(v string)
pkg/runtime/install.go:693
↓ 2 callersFunctioncompileBytecode
compileBytecode is a helper that generates deterministic hash-based pyc files for faster startup.
pkg/python/python.go:406
↓ 2 callersFunctioncomposerInstall
composerInstall runs `composer install` with the given flags.
pkg/php/php.go:142
↓ 2 callersFunctionconstructImageName
(t *testing.T, name, builderName string)
internal/acceptance/acceptance.go:243
↓ 2 callersFunctioncontains
(pathUtils, from, to)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:1390
↓ 2 callersFunctioncontains
(pathUtils, from, to)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:312
↓ 2 callersFunctionconvertPath
(targetPathUtils, sourcePath)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:1434
↓ 2 callersFunctionconvertPath
(targetPathUtils, sourcePath)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:356
↓ 2 callersFunctionconvertToBigIntStats
(stats)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:1291
↓ 2 callersFunctionconvertToBigIntStats
(stats)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:214
↓ 2 callersFunctionconvertToMap
(slice []string)
cmd/firebase/bundle/lib/lib.go:315
↓ 2 callersFunctionconvertToMap
(slice []string)
cmd/nodejs/firebasebundle/lib/lib.go:332
↓ 2 callersFunctioncopyDir
(ctx *gcp.Context, src, dst string)
cmd/go/appengine_gopath/lib/lib.go:134
↓ 2 callersFunctioncreateMainCppSupportFiles
(ctx *gcp.Context, main string, buildpackRoot string)
cmd/cpp/functions_framework/lib/lib.go:321
↓ 2 callersFunctioncreateMainGoModFile
(ctx *gcp.Context, fnMod string, goModPath string)
cmd/go/legacy_worker/lib/lib.go:166
↓ 2 callersMethodcreateSpanName
(cmd []string)
pkg/gcpbuildpack/span.go:53
↓ 2 callersFunctioncreateTestFiles
helper function to create test files and directories
pkg/firebase/util/filesystem/filesystem_test.go:10
↓ 2 callersMethoddeleteEntry
(p, index)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3169
↓ 2 callersMethoddeleteEntry
(p, index)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2087
↓ 2 callersFunctiondeleteFilesNotIncluded
deleteFilesNotIncluded deletes all files that are not included in the apphosting.yaml or bundle.yaml. This is done by walking the directory structure
cmd/firebase/bundle/lib/lib.go:391
↓ 2 callersFunctiondeleteFilesNotIncluded
deleteFilesNotIncluded deletes all files that are not included in the apphosting.yaml or bundle.yaml. This is done by walking the directory structure
cmd/nodejs/firebasebundle/lib/lib.go:408
↓ 2 callersFunctiondetectAppHostingYAMLRoot
detectAppHostingYAMLRoot returns the root directory containing the apphosting.yaml file, or an error if no such file is found. If no apphosting.yaml
pkg/firebase/util/filesystem/filesystem.go:55
↓ 2 callersFunctiondetectBunVersion
detectBunVersion determines the version of bun that should be installed in a Node.js project by examining the "engines.bun" and "packageManager" const
pkg/nodejs/bun.go:76
↓ 2 callersFunctiondetectPNPMVersion
detectPnpmVersion determines the version of pnpm that should be installed in a Node.js project by examining the "engines.pnpm" and "packageManager" co
pkg/nodejs/pnpm.go:142
↓ 2 callersFunctiondetectYarnVersion
detectYarnVersion determines the version of Yarn that should be installed in a Node.js project by examining the "engines.yarn" and "packageManager" co
pkg/nodejs/yarn.go:151
↓ 2 callersFunctiondoCallback
(errCode)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:7538
↓ 2 callersFunctiondoCallback
(errCode)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:6442
↓ 2 callersFunctiondoRun
()
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:9510
↓ 2 callersFunctiondoRun
()
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:8414
↓ 2 callersFunctiondownloadManifest
()
pkg/dart/flutter.go:114
↓ 2 callersFunctionensureLeadingSlash
(str)
cmd/nodejs/legacy_worker/converter/worker/worker.js:591
↓ 2 callersFunctionensureLockfile
ensureLockfile handles the common logic of checking/generating a lockfile for a given tool.
pkg/python/pyproject.go:469
↓ 2 callersFunctionentrypoint
(ctx *gcp.Context, srcDir string)
cmd/ruby/appengine/lib/lib.go:61
↓ 2 callersFunctionenvToMap
(t *testing.T, env []string)
internal/acceptance/environment.go:98
↓ 2 callersFunctionexistingFiles
existingFiles returns all files that exist inside the given directory.
cmd/firebase/bundle/lib/lib_test.go:294
↓ 2 callersFunctionexistingFiles
existingFiles returns all files that exist inside the given directory.
cmd/nodejs/firebasebundle/lib/lib_test.go:302
↓ 2 callersFunctionextractAllDirs
(files []string)
cmd/firebase/bundle/lib/lib.go:324
↓ 2 callersFunctionextractAllDirs
(files []string)
cmd/nodejs/firebasebundle/lib/lib.go:341
↓ 2 callersFunctionextractFnInfo
(fnTarget string, fnSignature string)
cmd/cpp/functions_framework/lib/lib.go:298
↓ 2 callersFunctionextractRelease
extractRelease returns the version name and archiveURL from a javaRelease.
cmd/java/runtime/lib/lib.go:153
↓ 2 callersFunctionextractZone
(date)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:9277
↓ 2 callersFunctionextractZone
(date)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:8181
↓ 2 callersFunctionfetchPackageMetadata
fetchPackageMetadata fetches metadata about an NPM package published to the NPM registry.
pkg/nodejs/registry.go:117
↓ 2 callersFunctionfetchZstd
(ctx *gcp.Context, hostname, registry, osName string, runtime InstallableRuntime, version string, layer *libcn
pkg/runtime/install.go:410
↓ 2 callersFunctionfindValidLockfileInDir
(dir string)
pkg/nodejs/nodejs.go:255
↓ 2 callersFunctionfindValueFromManifest
(manifestContent []byte, key string)
pkg/java/java.go:157
↓ 2 callersMethodfindZip
(p)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:4798
↓ 2 callersMethodfindZip
(p)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:3716
↓ 2 callersFunctionframeworkSpecifiedVersion
If a framework is specified, return the version. If unspecified, return an empty string.
cmd/go/functions_framework/lib/lib.go:448
↓ 2 callersFunctiongenerateRandomImageName
(baseName string)
internal/acceptance/acceptance.go:825
↓ 2 callersFunctiongetArchivePart
(path, extension)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:4073
↓ 2 callersFunctiongetArchivePart
(path, extension)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2991
↓ 2 callersFunctiongetCFunc
(ident)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:5534
↓ 2 callersFunctiongetCFunc
(ident)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:4438
↓ 2 callersFunctiongetCodeAbsolutePath
(codeRelativePath)
cmd/nodejs/legacy_worker/converter/worker/worker.js:331
↓ 2 callersFunctiongetConfig
(ctx *gcp.Context, runtime string, eg appstart.EntrypointGenerator)
pkg/cloudfunctions/cloudfunctions.go:29
↓ 2 callersFunctiongetConfig
(ctx *gcp.Context, runtime string, eg appstart.EntrypointGenerator)
pkg/appengine/appengine.go:55
↓ 2 callersFunctiongetContextOpts
(t *testing.T, mocks []*mockprocess.Mock)
pkg/nodejs/nextjs_test.go:87
↓ 2 callersFunctiongetErrorMessage
(err)
cmd/nodejs/legacy_worker/converter/worker/worker.js:349
← previousnext →701–800 of 3,416, ranked by callers