MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/buildpacks / functions

Functions3,416 in github.com/GoogleCloudPlatform/buildpacks

↓ 280 callersMethodLogf
Logf emits a structured logging line.
pkg/gcpbuildpack/gcpbuildpack.go:380
↓ 181 callersMethodExec
Exec runs the given command (with args) under the default configuration, allowing the caller to handle the error.
pkg/gcpbuildpack/exec.go:126
↓ 173 callersMethodFileExists
FileExists returns true if a file exists at the path joined by elem
pkg/gcpbuildpack/os.go:68
↓ 139 callersMethodTempDir
TempDir creates a directory with the provided name in the buildpack temp layer and returns its path
pkg/gcpbuildpack/ioutil.go:27
↓ 122 callersMethodApplicationRoot
ApplicationRoot returns the root folder of the application code.
pkg/gcpbuildpack/gcpbuildpack.go:237
↓ 119 callersMethodSetenv
Setenv is a pass through for os.Setenv(...) and returns any error with proper user / system attribution Note: this only sets an env var for the curren
pkg/gcpbuildpack/os.go:91
↓ 104 callersMethodWarnf
Warnf emits a structured logging line for warnings.
pkg/gcpbuildpack/gcpbuildpack.go:393
↓ 99 callersFunctionNew
New mocks the behavior of a shell command executed by a ctx.Exec call. `commandRegex` is the command to mock; the regex must match the full command th
internal/mockprocess/mockprocess.go:50
↓ 98 callersFunctionMustGetPath
MustGetPath returns the absolute path of a testdata file. The reason to have this function is blaze runs all tests from the runfiles directory and we
pkg/testdata/testdata.go:35
↓ 97 callersMethodWriteFile
WriteFile is a pass through for ioutil.WriteFile(...) and returns any error with proper user / system attribution
pkg/gcpbuildpack/ioutil.go:40
↓ 95 callersMethodReadFile
ReadFile is a pass through for ioutil.ReadFile(...) and returns any error with proper user / system attribution
pkg/gcpbuildpack/ioutil.go:48
↓ 93 callersMethodLayer
Layer returns a layer, creating its directory.
pkg/gcpbuildpack/layer.go:83
↓ 85 callersMethodString
()
pkg/buildererror/status.go:47
↓ 81 callersMethodMain
(string[] args)
builders/testdata/dotnet/generic/simple/Program.cs:14
↓ 74 callersFunctionProvisionImages
ProvisionImages provisions the builder, build, and run images necessary for running a test. The 'builderName' return value is the name of the builder
internal/acceptance/acceptance.go:618
↓ 71 callersFunctionWithStdout
WithStdout configures what a mocked command prints to stdout.
internal/mockprocess/mockprocess.go:70
↓ 67 callersMethodMkdirAll
MkdirAll is a pass through for os.Create(...) and returns any error with proper user / system attribution
pkg/gcpbuildpack/os.go:43
↓ 66 callersMethodRemoveAll
RemoveAll is a pass through for os.RemoveAll(...) and returns any error with proper user / system attribution
pkg/gcpbuildpack/os.go:51
↓ 57 callersMethodmapToBase
(path)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3991
↓ 57 callersMethodmapToBase
(path)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:3863
↓ 54 callersFunctionTestDetect
TestDetect is a helper for testing a buildpack's implementation of /bin/detect. This MUST be called from a test function with the name `func TestDetec
internal/buildpacktest/buildpacktest.go:183
↓ 49 callersMethodSetValue
SetValue sets the Metadata value with MetadataID id.
pkg/buildermetadata/buildermetadata.go:91
↓ 48 callersMethodName
Name is the name of the layer.
pkg/gcpbuildpack/layer.go:117
↓ 47 callersFunctionTestApp
TestApp builds and a single application and verifies that it runs and handles requests.
internal/acceptance/acceptance.go:259
↓ 47 callersMethodwrite
(...args)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:5095
↓ 44 callersFunctionnewDescriptor
newDescriptor creates a new Descriptor.
pkg/buildermetrics/descriptor.go:49
↓ 39 callersMethodresolve
(p)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:2848
↓ 38 callersFunctionDefineFlags
DefineFlags sets up flags that control the behavior of the test runner.
internal/acceptance/acceptance.go:96
↓ 38 callersMethodmakeCallback
(resolve, reject)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:2458
↓ 38 callersMethodmakeCallback
(resolve, reject)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:1380
↓ 37 callersFunctionNewContext
NewContext creates a context.
pkg/gcpbuildpack/gcpbuildpack.go:178
↓ 36 callersMethodresolve
(p)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:1766
↓ 35 callersMethodGetCounter
GetCounter returns the Counter with MetricID m, or creates it
pkg/buildermetrics/buildermetrics.go:43
↓ 34 callersMethodAddWebProcess
AddWebProcess adds the given command as the web start process, overwriting any previous web start process.
pkg/gcpbuildpack/gcpbuildpack.go:443
↓ 34 callersFunctionErrorf
Errorf constructs an Error.
pkg/buildererror/error.go:52
↓ 33 callersFunctionFilterTests
FilterTests returns a new slice with only tests that should be run. Tests are filtered out if their VersionInclusionConstraint does not match the `-ru
internal/acceptance/acceptance.go:1456
↓ 33 callersFunctionNew
New creates and starts a test server with the provided configurations and returns its URL.
internal/testserver/testserver.go:71
↓ 32 callersMethodSetMetadata
SetMetadata sets metadata on the layer.
pkg/gcpbuildpack/layer.go:134
↓ 32 callersMethodmakeCallSync
(p, discard, accept, { requireSubpath = true } = {})
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:4787
↓ 32 callersMethodmakeCallSync
(p, discard, accept, { requireSubpath = true } = {})
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:3705
↓ 31 callersMethodDebugf
Debugf emits a structured logging line if the debug flag is set.
pkg/gcpbuildpack/gcpbuildpack.go:385
↓ 31 callersFunctionGlobalBuilderMetrics
GlobalBuilderMetrics returns a pointer to the BuilderMetrics singleton
pkg/buildermetrics/buildermetrics.go:81
↓ 30 callersFunctionGlobalBuilderMetadata
GlobalBuilderMetadata returns a pointer to the BuilderMetadata singleton
pkg/buildermetadata/buildermetadata.go:111
↓ 30 callersMethodIncrement
Increment increases the value of a Counter by addend
pkg/buildermetrics/counter.go:28
↓ 29 callersMethodCapability
Capability returns a capability from Context. This is used to retrieve injected dependencies/strategies, allowing buildpacks to behave differently dep
pkg/gcpbuildpack/gcpbuildpack.go:232
↓ 27 callersFunctionTestBuildFailure
TestBuildFailure runs a build and ensures that it fails. Additionally, it ensures the emitted logs match mustMatch regexps.
internal/acceptance/acceptance.go:340
↓ 27 callersMethodmakeCallPromise
(p, discard, accept, { requireSubpath = true } = {})
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:4776
↓ 27 callersMethodmakeCallPromise
(p, discard, accept, { requireSubpath = true } = {})
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:3694
↓ 26 callersMethodClearLayer
ClearLayer erases the existing layer, and re-creates the directory.
pkg/gcpbuildpack/layer.go:122
↓ 25 callersFunctionWithMockURL
WithMockURL stubs the provided URL to point to this test server for the duration of a unit test.
internal/testserver/testserver.go:57
↓ 25 callersFunctionrunOutput
runOutput runs the given command and returns its stdout or an error.
internal/acceptance/acceptance.go:560
↓ 24 callersMethodmakeLibzipError
(error)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:2748
↓ 24 callersMethodmakeLibzipError
(error)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:1670
↓ 22 callersMethodGetMetadata
GetMetadata gets metadata from the layer.
pkg/gcpbuildpack/layer.go:139
↓ 22 callersFunctionWithStatus
WithStatus sets the http response code to return.
internal/testserver/testserver.go:36
↓ 22 callersMethodexistsSync
(p)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3002
↓ 22 callersMethodresolveFilename
(reason, p, resolveLastComponent = true, throwIfNoEntry = true)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3176
↓ 22 callersMethodresolveFilename
(reason, p, resolveLastComponent = true, throwIfNoEntry = true)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2094
↓ 20 callersFunctionWithExitCode
WithExitCode configures what a mocked command uses as the exit code.
internal/mockprocess/mockprocess.go:84
↓ 20 callersFunctionWithJSON
WithJSON sets the JSON payload the server send in the response body.
internal/testserver/testserver.go:43
↓ 20 callersFunctionabort
(what)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:5788
↓ 20 callersFunctionabort
(what)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:4692
↓ 20 callersMethodisFile
()
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:1216
↓ 20 callersMethodisFile
()
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:139
↓ 20 callersFunctionmakeError
(pnpCode, message, data = {}, code)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:9729
↓ 20 callersFunctionmakeError
(pnpCode, message, data = {}, code)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:8633
↓ 19 callersMethodCommandExecuted
CommandExecuted returns true if the command was executed using ctx.Exec, otherwise returns false.
internal/buildpacktest/buildpacktest.go:103
↓ 19 callersFunctionEBADF
(reason)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:1614
↓ 19 callersFunctionEBADF
(reason)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:536
↓ 19 callersMethodError
()
pkg/buildererror/error.go:43
↓ 19 callersFunctionIsPresentAndTrue
IsPresentAndTrue returns true if the environment variable evaluates to True.
pkg/env/env.go:296
↓ 19 callersFunctionWithFiles
WithFiles returns a cache option that hashes contents of the files. Callers can detect if a file did not exist by checking returned error values again
pkg/cache/cache.go:42
↓ 19 callersMethodexistsSync
(p)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:1920
↓ 18 callersMethodCacheHit
CacheHit records a cache hit debug message. This is used in acceptance test validation.
pkg/gcpbuildpack/gcpbuildpack.go:407
↓ 18 callersMethodCacheMiss
CacheMiss records a cache miss debug message. This is used in acceptance test validation.
pkg/gcpbuildpack/gcpbuildpack.go:412
↓ 18 callersFunctionNewBuilderMetrics
NewBuilderMetrics returns a new, empty BuilderMetrics For testing use only
pkg/buildermetrics/buildermetrics.go:38
↓ 18 callersMethodSymlink
Symlink is a pass through for os.Symlink(...) and returns any error with proper user / system attribution
pkg/gcpbuildpack/os.go:60
↓ 18 callersFunctionWithStrings
WithStrings returns a cache option for string values.
pkg/cache/cache.go:33
↓ 18 callersMethodcreate
(fakeFs, path, opts)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:2485
↓ 18 callersMethodstatSync
(p, opts = { bigint: false, throwIfNoEntry: true })
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3035
↓ 18 callersMethodstatSync
(p, opts = { bigint: false, throwIfNoEntry: true })
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:1953
↓ 17 callersMethodBuildpackRoot
BuildpackRoot returns the root folder of the buildpack.
pkg/gcpbuildpack/gcpbuildpack.go:242
↓ 17 callersMethodGlob
Glob is a pass through for filepath.Glob(...). It returns any error with proper user / system attribution.
pkg/gcpbuildpack/filepath.go:27
↓ 17 callersMethodWrite
Write writes the config to the default config file in a new layer.
pkg/appstart/appstart.go:66
↓ 17 callersMethodwrite
(...args)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:3999
↓ 16 callersFunctionIsGAE
IsGAE returns true if the buildpack target platform is gae.
pkg/env/env.go:245
↓ 16 callersFunctionReadPackageJSONIfExists
ReadPackageJSONIfExists returns deserialized package.json from the given dir. If the provided dir does not contain a package.json file it returns nil.
pkg/nodejs/nodejs.go:196
↓ 16 callersMethodreadFileSync
(p, encoding)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3609
↓ 16 callersMethodreadFileSync
(p, encoding)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2527
↓ 16 callersMethodwriteFileSync
(p, content, opts)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:3452
↓ 16 callersMethodwriteFileSync
(p, content, opts)
builders/testdata/nodejs/appengine/yarn_two_pnp/.pnp.cjs:2370
↓ 15 callersMethodBuild
(ctx *gcp.Context, outBin, buildable, workdir, gocache string, flags []string)
pkg/golang/golang.go:70
↓ 15 callersFunctionNewBuilderMetadata
NewBuilderMetadata returns a new, empty BuilderMetadata
pkg/buildermetadata/buildermetadata.go:35
↓ 15 callersMethodValue
Value retrieves the value of a Counter
pkg/buildermetrics/counter.go:33
↓ 14 callersFunctionInternalErrorf
InternalErrorf constructs an Error with status StatusInternal (Google-attributed SLO).
pkg/buildererror/error.go:64
↓ 14 callersFunctionIsDevSync
IsDevSync indicates that the builder is running in Dev Sync mode.
pkg/env/env.go:281
↓ 13 callersMethodAdd
Add increases the value of a FloatDP by addend. Not threadsafe.
pkg/buildermetrics/floatdp.go:30
↓ 13 callersFunctionAddFrameworkVersionLabel
AddFrameworkVersionLabel sets the google.functions-framework-version label on the image.
pkg/cloudfunctions/labels.go:30
↓ 13 callersFunctionCheckOverride
CheckOverride returns a Detect result or nil based on the GOOGLE_RUNTIME environment variable value. o If the GOOGLE_RUNTIME environment variable i
pkg/runtime/runtime.go:46
↓ 13 callersFunctionEROFS
(reason)
builders/testdata/nodejs/functions/yarn_two_pnp/.pnp.cjs:1629
next →1–100 of 3,416, ranked by callers