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
↓ 2 callers
Function
ComposerRequire
ComposerRequire runs `composer require` with the given packages. It expects packages to be specified as `composer require` would expect them on the co
pkg/php/php.go:259
↓ 2 callers
Method
Contribute
Contribute accepts a layer and transforms it, returning a layer.
pkg/gcpbuildpack/layer.go:112
↓ 2 callers
Function
DefaultStartCommand
DefaultStartCommand returns the default command that should be used to configure the application web process if the user has not explicitly configured
pkg/nodejs/npm.go:252
↓ 2 callers
Function
DetectAppHostingYAMLPath
DetectAppHostingYAMLPath returns the absolute path to the apphosting.yaml file, or an error if no such file is found.
pkg/firebase/util/filesystem/filesystem.go:33
↓ 2 callers
Function
DetectFlutterSDKArchive
DetectFlutterSDKArchive detects which SDK version should be installed from the environment or fetches the latest stable available version. Returns ver
pkg/dart/flutter.go:99
↓ 2 callers
Function
DetectSDKVersion
DetectSDKVersion detects which SDK version should be installed from the environment or fetches the latest stable available version.
pkg/dart/dart.go:50
↓ 2 callers
Function
DetectSvelteKitAutoAdapter
DetectSvelteKitAutoAdapter returns true if the given package.json file contains the @sveltejs/adapter-auto dependency and no others.
pkg/nodejs/sveltekit.go:16
↓ 2 callers
Function
Entrypoint
Entrypoint retrieves the appropriate entrypoint command for the direct maker build.
pkg/dotnet/dotnet.go:322
↓ 2 callers
Method
ExitCode
ExitCode returns the exit code that the preparer/publisher should exit with.
pkg/firebase/faherror/faherror.go:30
↓ 2 callers
Function
ExtractAngularStartCommand
ExtractAngularStartCommand inspects the given package.json file for an idiomatic `serve:ssr:APP_NAME` command. If one exists, its value is returned. I
pkg/nodejs/angular.go:88
↓ 2 callers
Method
ForEachCounter
ForEachCounter executes a function for each initialized Counter
pkg/buildermetrics/buildermetrics.go:51
↓ 2 callers
Method
ForEachValue
ForEachValue iterates over all values in the BuilderMetadata.
pkg/buildermetadata/buildermetadata.go:96
↓ 2 callers
Function
FormatName
FormatName takes in a language name and version and returns the GCF / GAE runtime name. For example, FormatRuntime("go", "1.16.0") returns "go116".
pkg/runtime/runtime.go:61
↓ 2 callers
Function
GenerateBuildDereferencedEnvMap
GenerateBuildDereferencedEnvMap will return a mapping of environment variables to their dereferenced secret values along with plain env vars only if t
pkg/firebase/secrets/secrets.go:115
↓ 2 callers
Function
GenerateYarnConfig
GenerateYarnConfig adds auth token to .yarnrc.yml in the user's HOME directory necessary for Yarn to make authenticated requests to Artifact Registry
pkg/ar/ar.go:305
↓ 2 callers
Function
GetHostname
GetHostname returns the hostname for the TPC build.
pkg/tpc/tpc.go:26
↓ 2 callers
Function
GetInstallableRuntime
GetInstallableRuntime returns the installable runtime prefix.
pkg/php/php.go:268
↓ 2 callers
Function
GetLatestGradleVersion
GetLatestGradleVersion gets the latest gradle version if available
pkg/java/gradle.go:43
↓ 2 callers
Function
GetSDKVersion
GetSDKVersion returns the appropriate .NET SDK version to use, with the following heuristic: 1. Return value of env variable GOOGLE_DOTNET_SDK_VERSION
pkg/dotnet/dotnet.go:506
↓ 2 callers
Function
GetScriptCommand
GetScriptCommand returns the script command from pyproject.toml if it exists.
pkg/python/pyproject.go:487
↓ 2 callers
Function
GoModVersion
GoModVersion reads the version of Go from a go.mod file if present. If not present or if version isn't there returns an empty string.
pkg/golang/golang.go:275
↓ 2 callers
Function
HasBuildRunner
HasBuildRunner returns true if the given Dart project contains a pubspec.yaml that declares a dependency on build_runner.
pkg/dart/dart.go:84
↓ 2 callers
Method
Install
(ctx *gcp.Context, l *libcnb.Layer, reqs ...string)
pkg/python/python.go:102
↓ 2 callers
Method
Install
(ctx *gcp.Context)
pkg/python/pyproject.go:275
↓ 2 callers
Function
InstallAndSymlink
InstallAndSymlink configures bundler, runs 'bundle install', and creates relative symlinks for gem binaries.
pkg/ruby/ruby.go:282
↓ 2 callers
Function
InstallAngularBuildAdapter
InstallAngularBuildAdapter installs the angular build adaptor in the given layer if it is not already cached.
pkg/nodejs/angular.go:32
↓ 2 callers
Function
InstallDartSDK
InstallDartSDK downloads a given version of the dart SDK to the specified layer.
pkg/runtime/install.go:248
↓ 2 callers
Function
InstallFlutterSDK
InstallFlutterSDK downloads a given version of the Flutter SDK to the specified layer.
pkg/runtime/install.go:290
↓ 2 callers
Function
InstallNextJsBuildAdapter
InstallNextJsBuildAdapter installs the nextjs build adaptor in the given layer if it is not already cached.
pkg/nodejs/nextjs.go:31
↓ 2 callers
Function
InstallYarn
InstallYarn downloads a given version of Yarn into the provided directory.
pkg/nodejs/yarn.go:225
↓ 2 callers
Method
InstallYarn
(ctx *gcp.Context, yarnLayer *libcnb.Layer, pjs *PackageJSON)
pkg/nodejs/yarn.go:53
↓ 2 callers
Function
InstallYarnLayer
InstallYarnLayer installs Yarn in the given layer if it is not already cached.
pkg/nodejs/yarn.go:186
↓ 2 callers
Method
InstalledRuntimeVersions
InstalledRuntimeVersions returns the list of runtime versions installed during build time.
pkg/gcpbuildpack/gcpbuildpack.go:432
↓ 2 callers
Function
InvalidRootDirectoryError
InvalidRootDirectoryError creates a FahError with metadata about a missing or invalid root directory that caused the build to fail.
pkg/firebase/faherror/faherror.go:90
↓ 2 callers
Function
IsAlphaSupported
IsAlphaSupported returns true if the release track is alpha.
pkg/env/env.go:235
↓ 2 callers
Function
IsDebugMode
IsDebugMode returns true if the buildpack debug mode is enabled.
pkg/env/env.go:271
↓ 2 callers
Function
IsGCP
IsGCP returns true if the buildpack target platform is not gae, gcf or flex.
pkg/env/env.go:255
↓ 2 callers
Function
IsReleaseCandidate
IsReleaseCandidate returns true if given string is a RC candidate version.
pkg/runtime/install.go:530
↓ 2 callers
Function
IsUVRequirements
IsUVRequirements checks if the application is a UV requirements.txt application.
pkg/python/requirements.go:27
↓ 2 callers
Function
MaybeMovePathContents
MaybeMovePathContents moves the contents of srcPath to destPath.
pkg/fileutil/fileutil.go:46
↓ 2 callers
Function
MergeVpcAccess
MergeVpcAccess merges the access from the YAML settings and the output bundle (though the output bundle is not expected to have any VPC access setting
pkg/firebase/apphostingschema/vpcaccess.go:59
↓ 2 callers
Function
MergeWithEnvironmentSpecificYAML
MergeWithEnvironmentSpecificYAML merges the environment specific apphosting.<environmentName>.yaml with the base apphosting schema found in apphosting
pkg/firebase/apphostingschema/apphostingschema.go:366
↓ 2 callers
Function
MissingLockFileError
MissingLockFileError creates a FahError with metadata about a missing lock file for the user's package manager (npm, yarn, or pnpm).
pkg/firebase/faherror/faherror.go:63
↓ 2 callers
Function
NeedsRailsAssetPrecompile
NeedsRailsAssetPrecompile detects if asset precompilation is required in a Ruby on Rails app.
pkg/ruby/ruby.go:136
↓ 2 callers
Function
NeedsSupervisorPackage
NeedsSupervisorPackage returns whether to install supervisor.
pkg/flex/supervisor.go:95
↓ 2 callers
Function
NewGoWorkspaceLayer
NewGoWorkspaceLayer returns a new layer for `go env GOPATH` or the go workspace. The layer is configured for caching if possible. It only supports cac
pkg/golang/golang.go:332
↓ 2 callers
Function
NewStructureTest
NewStructureTest creates a new StructureTest. It returns nil if there's nothing to check.
internal/acceptance/structure.go:49
↓ 2 callers
Function
NginxVersionConstraint
NginxVersionConstraint returns the Nginx version constraint for the specified runtime name. If the runtime name is not found in the map, it returns th
pkg/static/static.go:138
↓ 2 callers
Function
Normalize
Normalize converts the different possible secret formats provided by users into one standard format of projects/p/secrets/s/versions/v.
pkg/firebase/secrets/secrets.go:46
↓ 2 callers
Function
NormalizeVpcAccess
NormalizeVpcAccess ensures that any connector is a fully qualified resource name.
pkg/firebase/apphostingschema/vpcaccess.go:92
↓ 2 callers
Function
NuxtStartCommand
NuxtStartCommand determines if this is a Nuxt application and returns the command to start the nuxt server. If not it is not a Nuxt application it ret
pkg/nodejs/nuxt.go:9
↓ 2 callers
Function
OverriddenProperties
OverriddenProperties returns whether the property has been overridden and the path to the file.
pkg/webconfig/webconfig.go:60
↓ 2 callers
Function
Parse
Parse parses a Procfile content and returns a map of process names to commands. If multiple processes have the same name, only the first one is return
pkg/entrypoint/procfile.go:31
↓ 2 callers
Function
ParseAppEngineWebXML
ParseAppEngineWebXML unmarshals the provided appengine-web.xml into a AppEngineWebXMLApp.
pkg/java/appenginewebxml.go:40
↓ 2 callers
Function
ParseBundlerVersion
ParseBundlerVersion extacts the version of bundler from Gemfile.lock or gems.locked, returns an error in case the version string is malformed.
pkg/ruby/gemfile.go:52
↓ 2 callers
Function
ParseEnvVarsFromString
ParseEnvVarsFromString parses the server side environment variables from a string to a list of EnvironmentVariables.
pkg/firebase/envvars/envvars.go:129
↓ 2 callers
Function
ParseRubyVersion
ParseRubyVersion extracts the version number from Gemfile.lock or gems.locked, returns an error in case the version string is malformed.
pkg/ruby/gemfile.go:33
↓ 2 callers
Function
PinGemAndBundlerVersion
PinGemAndBundlerVersion pins the RubyGems versions for GAE and GCF runtime versions to prevent unexpected behaviors with new versions. This is only ex
pkg/runtime/install.go:491
↓ 2 callers
Function
PinVersions
PinVersions will determine the latest version for any secrets that require it and pin it to that value for any subsequent steps. Requires that secrets
pkg/firebase/secrets/secrets.go:99
↓ 2 callers
Function
PipTargetDir
PipTargetDir returns the target directory for installing python dependencies.
pkg/python/python.go:336
↓ 2 callers
Function
Prepare
Prepare performs pre-build logic for App Hosting backends including: * Reading, sanitizing, and writing user-defined environment variables in apphosti
pkg/firebase/preparer/preparer.go:68
↓ 2 callers
Function
PrepareLockfile
PrepareLockfile configures bundler and ensures the target platforms are present in the lockfile.
pkg/ruby/ruby.go:262
↓ 2 callers
Function
Publish
Publish takes in the path to various required files such as apphosting.yaml, bundle.yaml, and other files (tbd) and merges them into one output that d
pkg/firebase/publisher/publisher.go:165
↓ 2 callers
Function
Publish
Publish restores, publishes, and determines the runtime entrypoint of the Dotnet application. If useLayer is true, it performs the publish steps using
pkg/dotnet/dotnet.go:90
↓ 2 callers
Function
ReadAndValidateFromFile
ReadAndValidateFromFile converts the provided file into an BundleSchema.
pkg/firebase/bundleschema/bundleschema.go:111
↓ 2 callers
Function
ReadLifecycle
ReadLifecycle reads the env vars from the given directory in a way that is compatible with the lifecycle build process.
pkg/firebase/envvars/envvars.go:64
↓ 2 callers
Function
ReadNxJSONIfExists
ReadNxJSONIfExists returns deserialized nx.json from the given dir. If the provided dir does not contain a nx.json file it returns nil. Empty dir stri
pkg/nodejs/nx.go:40
↓ 2 callers
Function
ReadNxProjectJSONIfExists
ReadNxProjectJSONIfExists returns deserialized project.json from the given dir. If the provided dir does not contain a project.json file it returns ni
pkg/nodejs/nx.go:60
↓ 2 callers
Function
ReadRuntimeConfigJSON
ReadRuntimeConfigJSON reads a given runtimeconfig.json file and returns a struct representation of the contents.
pkg/dotnet/dotnet.go:482
↓ 2 callers
Function
ReadTurboJSONIfExists
ReadTurboJSONIfExists returns deserialized turbo.json from the given dir. If the provided dir does not contain a turbo.json file it returns nil. Empty
pkg/nodejs/turbo.go:45
↓ 2 callers
Function
RegExpPrototypeExec
(obj, string)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:10230
↓ 2 callers
Function
RegExpPrototypeExec
(obj, string)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:9125
↓ 2 callers
Function
RegExpPrototypeSymbolReplace
(obj, ...rest)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:10231
↓ 2 callers
Function
RegExpPrototypeSymbolReplace
(obj, ...rest)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:9126
↓ 2 callers
Function
RequestedNPMVersion
RequestedNPMVersion returns any customer provided NPM version constraint configured in the "engines" section of the package.json file in the given app
pkg/nodejs/npm.go:90
↓ 2 callers
Function
RequestedPoetryVersion
RequestedPoetryVersion returns the requested poetry version from pyproject.toml.
pkg/python/pyproject.go:123
↓ 2 callers
Function
RequestedUVVersion
RequestedUVVersion returns the requested uv version from pyproject.toml.
pkg/python/pyproject.go:228
↓ 2 callers
Function
RequirementsPackagePresent
RequirementsPackagePresent checks if a given package is present in requirements.txt.
pkg/python/dependencies.go:64
↓ 2 callers
Function
Reset
Reset resets the state of the metrics struct For testing use only.
pkg/buildermetrics/buildermetrics.go:74
↓ 2 callers
Function
RestoreModules
RestoreModules restores node_modules from the cache layer.
pkg/nodejs/npm.go:288
↓ 2 callers
Function
RunDetectPhaseForTest
RunDetectPhaseForTest runs a detect phase and reports the outcome.
internal/buildpacktest/buildpacktest.go:225
↓ 2 callers
Function
Sanitize
Sanitize strips reserved environment variables from the environment variable list.
pkg/firebase/apphostingschema/apphostingschema.go:302
↓ 2 callers
Function
SaveModules
SaveModules saves node_modules to the cache layer.
pkg/nodejs/npm.go:294
↓ 2 callers
Function
SetEnvVariables
SetEnvVariables sets the env variables necessary for configuring the overrides.
pkg/webconfig/webconfig.go:100
↓ 2 callers
Function
SetRunCommand
SetRunCommand sets the run command for the web process. The run command is set from the apphosting.yaml file if it exists, otherwise it is set from th
cmd/firebase/bundle/lib/lib.go:294
↓ 2 callers
Function
SetRunCommand
SetRunCommand sets the run command for the web process. The run command is set from the apphosting.yaml file if it exists, otherwise it is set from th
cmd/nodejs/firebasebundle/lib/lib.go:311
↓ 2 callers
Function
ShouldPrunePnpmBun
ShouldPrunePnpmBun returns true if dev dependencies should be pruned for pnpm/bun.
pkg/nodejs/nodejs.go:610
↓ 2 callers
Function
SkipSyntaxCheck
SkipSyntaxCheck returns true if we should skip checking the user's function file for syntax errors if it is impacted by https://github.com/GoogleCloud
pkg/nodejs/nodejs.go:416
↓ 2 callers
Method
SkipVariables
(ctx *gcp.Context, rtl *libcnb.Layer)
pkg/dotnet/dotnet.go:62
↓ 2 callers
Function
SpringBootVersionInManifest
SpringBootVersionInManifest returns the Spring Boot version in the manifest of the application JAR.
cmd/java/spring_boot/lib/lib.go:80
↓ 2 callers
Function
SupportsAutoVendor
SupportsAutoVendor returns true if the Go version supports automatic detection of the vendor directory. This feature is supported by Go 1.14 and highe
pkg/golang/golang.go:162
↓ 2 callers
Function
SupportsNPMPrune
SupportsNPMPrune returns true if the version of npm installed in the system supports the prune command.
pkg/nodejs/npm.go:168
↓ 2 callers
Function
SupportsSmartDefaultEntrypoint
SupportsSmartDefaultEntrypoint returns true if the runtime version supports smart default entrypoint.
pkg/python/python.go:149
↓ 2 callers
Function
SvelteKitStartCommand
SvelteKitStartCommand determines if this is a SvelteKit application and returns the command to start the SvelteKit server. If not it is not a SvelteKi
pkg/nodejs/sveltekit.go:30
↓ 2 callers
Function
UTF8ToString
(ptr, maxBytesToRead)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:5637
↓ 2 callers
Function
UTF8ToString
(ptr, maxBytesToRead)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:4541
↓ 2 callers
Function
UnsupportedFrameworkVersionError
UnsupportedFrameworkVersionError creates a FahError with metadata about the unsupported framework version that caused the build to fail.
pkg/firebase/faherror/faherror.go:102
↓ 2 callers
Function
UpdateAppRunScript
UpdateAppRunScript reads the run.template file, replaces {{ENTRYPOINT}} with the provided webCmd, populates the Runit envdir with exported environment
pkg/devsync/devsync.go:27
↓ 2 callers
Function
ValidateFlexMinVersion
ValidateFlexMinVersion validates the minimum flex version for a given runtime.
pkg/runtime/install.go:649
↓ 2 callers
Function
ValidateVpcAccess
ValidateVpcAccess validates the form of a vpcAccess struct.
pkg/firebase/apphostingschema/vpcaccess.go:27
← previous
next →
601–700 of 3,416, ranked by callers