MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/buildpacks / functions

Functions3,416 in github.com/GoogleCloudPlatform/buildpacks

↓ 2 callersFunctionComposerRequire
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 callersMethodContribute
Contribute accepts a layer and transforms it, returning a layer.
pkg/gcpbuildpack/layer.go:112
↓ 2 callersFunctionDefaultStartCommand
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 callersFunctionDetectAppHostingYAMLPath
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 callersFunctionDetectFlutterSDKArchive
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 callersFunctionDetectSDKVersion
DetectSDKVersion detects which SDK version should be installed from the environment or fetches the latest stable available version.
pkg/dart/dart.go:50
↓ 2 callersFunctionDetectSvelteKitAutoAdapter
DetectSvelteKitAutoAdapter returns true if the given package.json file contains the @sveltejs/adapter-auto dependency and no others.
pkg/nodejs/sveltekit.go:16
↓ 2 callersFunctionEntrypoint
Entrypoint retrieves the appropriate entrypoint command for the direct maker build.
pkg/dotnet/dotnet.go:322
↓ 2 callersMethodExitCode
ExitCode returns the exit code that the preparer/publisher should exit with.
pkg/firebase/faherror/faherror.go:30
↓ 2 callersFunctionExtractAngularStartCommand
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 callersMethodForEachCounter
ForEachCounter executes a function for each initialized Counter
pkg/buildermetrics/buildermetrics.go:51
↓ 2 callersMethodForEachValue
ForEachValue iterates over all values in the BuilderMetadata.
pkg/buildermetadata/buildermetadata.go:96
↓ 2 callersFunctionFormatName
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 callersFunctionGenerateBuildDereferencedEnvMap
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 callersFunctionGenerateYarnConfig
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 callersFunctionGetHostname
GetHostname returns the hostname for the TPC build.
pkg/tpc/tpc.go:26
↓ 2 callersFunctionGetInstallableRuntime
GetInstallableRuntime returns the installable runtime prefix.
pkg/php/php.go:268
↓ 2 callersFunctionGetLatestGradleVersion
GetLatestGradleVersion gets the latest gradle version if available
pkg/java/gradle.go:43
↓ 2 callersFunctionGetSDKVersion
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 callersFunctionGetScriptCommand
GetScriptCommand returns the script command from pyproject.toml if it exists.
pkg/python/pyproject.go:487
↓ 2 callersFunctionGoModVersion
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 callersFunctionHasBuildRunner
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 callersMethodInstall
(ctx *gcp.Context, l *libcnb.Layer, reqs ...string)
pkg/python/python.go:102
↓ 2 callersMethodInstall
(ctx *gcp.Context)
pkg/python/pyproject.go:275
↓ 2 callersFunctionInstallAndSymlink
InstallAndSymlink configures bundler, runs 'bundle install', and creates relative symlinks for gem binaries.
pkg/ruby/ruby.go:282
↓ 2 callersFunctionInstallAngularBuildAdapter
InstallAngularBuildAdapter installs the angular build adaptor in the given layer if it is not already cached.
pkg/nodejs/angular.go:32
↓ 2 callersFunctionInstallDartSDK
InstallDartSDK downloads a given version of the dart SDK to the specified layer.
pkg/runtime/install.go:248
↓ 2 callersFunctionInstallFlutterSDK
InstallFlutterSDK downloads a given version of the Flutter SDK to the specified layer.
pkg/runtime/install.go:290
↓ 2 callersFunctionInstallNextJsBuildAdapter
InstallNextJsBuildAdapter installs the nextjs build adaptor in the given layer if it is not already cached.
pkg/nodejs/nextjs.go:31
↓ 2 callersFunctionInstallYarn
InstallYarn downloads a given version of Yarn into the provided directory.
pkg/nodejs/yarn.go:225
↓ 2 callersMethodInstallYarn
(ctx *gcp.Context, yarnLayer *libcnb.Layer, pjs *PackageJSON)
pkg/nodejs/yarn.go:53
↓ 2 callersFunctionInstallYarnLayer
InstallYarnLayer installs Yarn in the given layer if it is not already cached.
pkg/nodejs/yarn.go:186
↓ 2 callersMethodInstalledRuntimeVersions
InstalledRuntimeVersions returns the list of runtime versions installed during build time.
pkg/gcpbuildpack/gcpbuildpack.go:432
↓ 2 callersFunctionInvalidRootDirectoryError
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 callersFunctionIsAlphaSupported
IsAlphaSupported returns true if the release track is alpha.
pkg/env/env.go:235
↓ 2 callersFunctionIsDebugMode
IsDebugMode returns true if the buildpack debug mode is enabled.
pkg/env/env.go:271
↓ 2 callersFunctionIsGCP
IsGCP returns true if the buildpack target platform is not gae, gcf or flex.
pkg/env/env.go:255
↓ 2 callersFunctionIsReleaseCandidate
IsReleaseCandidate returns true if given string is a RC candidate version.
pkg/runtime/install.go:530
↓ 2 callersFunctionIsUVRequirements
IsUVRequirements checks if the application is a UV requirements.txt application.
pkg/python/requirements.go:27
↓ 2 callersFunctionMaybeMovePathContents
MaybeMovePathContents moves the contents of srcPath to destPath.
pkg/fileutil/fileutil.go:46
↓ 2 callersFunctionMergeVpcAccess
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 callersFunctionMergeWithEnvironmentSpecificYAML
MergeWithEnvironmentSpecificYAML merges the environment specific apphosting.<environmentName>.yaml with the base apphosting schema found in apphosting
pkg/firebase/apphostingschema/apphostingschema.go:366
↓ 2 callersFunctionMissingLockFileError
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 callersFunctionNeedsRailsAssetPrecompile
NeedsRailsAssetPrecompile detects if asset precompilation is required in a Ruby on Rails app.
pkg/ruby/ruby.go:136
↓ 2 callersFunctionNeedsSupervisorPackage
NeedsSupervisorPackage returns whether to install supervisor.
pkg/flex/supervisor.go:95
↓ 2 callersFunctionNewGoWorkspaceLayer
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 callersFunctionNewStructureTest
NewStructureTest creates a new StructureTest. It returns nil if there's nothing to check.
internal/acceptance/structure.go:49
↓ 2 callersFunctionNginxVersionConstraint
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 callersFunctionNormalize
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 callersFunctionNormalizeVpcAccess
NormalizeVpcAccess ensures that any connector is a fully qualified resource name.
pkg/firebase/apphostingschema/vpcaccess.go:92
↓ 2 callersFunctionNuxtStartCommand
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 callersFunctionOverriddenProperties
OverriddenProperties returns whether the property has been overridden and the path to the file.
pkg/webconfig/webconfig.go:60
↓ 2 callersFunctionParse
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 callersFunctionParseAppEngineWebXML
ParseAppEngineWebXML unmarshals the provided appengine-web.xml into a AppEngineWebXMLApp.
pkg/java/appenginewebxml.go:40
↓ 2 callersFunctionParseBundlerVersion
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 callersFunctionParseEnvVarsFromString
ParseEnvVarsFromString parses the server side environment variables from a string to a list of EnvironmentVariables.
pkg/firebase/envvars/envvars.go:129
↓ 2 callersFunctionParseRubyVersion
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 callersFunctionPinGemAndBundlerVersion
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 callersFunctionPinVersions
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 callersFunctionPipTargetDir
PipTargetDir returns the target directory for installing python dependencies.
pkg/python/python.go:336
↓ 2 callersFunctionPrepare
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 callersFunctionPrepareLockfile
PrepareLockfile configures bundler and ensures the target platforms are present in the lockfile.
pkg/ruby/ruby.go:262
↓ 2 callersFunctionPublish
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 callersFunctionPublish
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 callersFunctionReadAndValidateFromFile
ReadAndValidateFromFile converts the provided file into an BundleSchema.
pkg/firebase/bundleschema/bundleschema.go:111
↓ 2 callersFunctionReadLifecycle
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 callersFunctionReadNxJSONIfExists
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 callersFunctionReadNxProjectJSONIfExists
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 callersFunctionReadRuntimeConfigJSON
ReadRuntimeConfigJSON reads a given runtimeconfig.json file and returns a struct representation of the contents.
pkg/dotnet/dotnet.go:482
↓ 2 callersFunctionReadTurboJSONIfExists
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 callersFunctionRegExpPrototypeExec
(obj, string)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:10230
↓ 2 callersFunctionRegExpPrototypeExec
(obj, string)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:9125
↓ 2 callersFunctionRegExpPrototypeSymbolReplace
(obj, ...rest)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:10231
↓ 2 callersFunctionRegExpPrototypeSymbolReplace
(obj, ...rest)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:9126
↓ 2 callersFunctionRequestedNPMVersion
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 callersFunctionRequestedPoetryVersion
RequestedPoetryVersion returns the requested poetry version from pyproject.toml.
pkg/python/pyproject.go:123
↓ 2 callersFunctionRequestedUVVersion
RequestedUVVersion returns the requested uv version from pyproject.toml.
pkg/python/pyproject.go:228
↓ 2 callersFunctionRequirementsPackagePresent
RequirementsPackagePresent checks if a given package is present in requirements.txt.
pkg/python/dependencies.go:64
↓ 2 callersFunctionReset
Reset resets the state of the metrics struct For testing use only.
pkg/buildermetrics/buildermetrics.go:74
↓ 2 callersFunctionRestoreModules
RestoreModules restores node_modules from the cache layer.
pkg/nodejs/npm.go:288
↓ 2 callersFunctionRunDetectPhaseForTest
RunDetectPhaseForTest runs a detect phase and reports the outcome.
internal/buildpacktest/buildpacktest.go:225
↓ 2 callersFunctionSanitize
Sanitize strips reserved environment variables from the environment variable list.
pkg/firebase/apphostingschema/apphostingschema.go:302
↓ 2 callersFunctionSaveModules
SaveModules saves node_modules to the cache layer.
pkg/nodejs/npm.go:294
↓ 2 callersFunctionSetEnvVariables
SetEnvVariables sets the env variables necessary for configuring the overrides.
pkg/webconfig/webconfig.go:100
↓ 2 callersFunctionSetRunCommand
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 callersFunctionSetRunCommand
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 callersFunctionShouldPrunePnpmBun
ShouldPrunePnpmBun returns true if dev dependencies should be pruned for pnpm/bun.
pkg/nodejs/nodejs.go:610
↓ 2 callersFunctionSkipSyntaxCheck
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 callersMethodSkipVariables
(ctx *gcp.Context, rtl *libcnb.Layer)
pkg/dotnet/dotnet.go:62
↓ 2 callersFunctionSpringBootVersionInManifest
SpringBootVersionInManifest returns the Spring Boot version in the manifest of the application JAR.
cmd/java/spring_boot/lib/lib.go:80
↓ 2 callersFunctionSupportsAutoVendor
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 callersFunctionSupportsNPMPrune
SupportsNPMPrune returns true if the version of npm installed in the system supports the prune command.
pkg/nodejs/npm.go:168
↓ 2 callersFunctionSupportsSmartDefaultEntrypoint
SupportsSmartDefaultEntrypoint returns true if the runtime version supports smart default entrypoint.
pkg/python/python.go:149
↓ 2 callersFunctionSvelteKitStartCommand
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 callersFunctionUTF8ToString
(ptr, maxBytesToRead)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:5637
↓ 2 callersFunctionUTF8ToString
(ptr, maxBytesToRead)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:4541
↓ 2 callersFunctionUnsupportedFrameworkVersionError
UnsupportedFrameworkVersionError creates a FahError with metadata about the unsupported framework version that caused the build to fail.
pkg/firebase/faherror/faherror.go:102
↓ 2 callersFunctionUpdateAppRunScript
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 callersFunctionValidateFlexMinVersion
ValidateFlexMinVersion validates the minimum flex version for a given runtime.
pkg/runtime/install.go:649
↓ 2 callersFunctionValidateVpcAccess
ValidateVpcAccess validates the form of a vpcAccess struct.
pkg/firebase/apphostingschema/vpcaccess.go:27
← previousnext →601–700 of 3,416, ranked by callers