MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/cloud-run-button / functions

Functions138 in github.com/GoogleCloudPlatform/cloud-run-button

↓ 10 callersFunctiondebugging
(*args)
tests/run_integration_test.py:36
↓ 8 callersMethodWriteHeader
(statusCode int)
cmd/redirector/main.go:172
↓ 8 callersFunctionlogProgress
(msg, endMsg, errMsg string)
cmd/cloudshell_open/main.go:108
↓ 6 callersMethodHeader
()
cmd/redirector/main.go:170
↓ 6 callersFunctiongetService
(project, name, region string)
cmd/cloudshell_open/cloudrun.go:75
↓ 6 callersFunctionredirect
(w http.ResponseWriter, req *http.Request)
cmd/redirector/main.go:55
↓ 5 callersFunctionhasAppFile
hasAppFile checks if the directory has an app.json file.
cmd/cloudshell_open/appfile.go:91
↓ 4 callersFunctionapplyMeta
applyMeta applies optional annotations to the specified Metadata.Annotation fields
cmd/cloudshell_open/deploy.go:146
↓ 4 callersFunctiongetAppFile
getAppFile returns the parsed app.json in the directory if it exists, otherwise returns a zero appFile.
cmd/cloudshell_open/appfile.go:131
↓ 4 callersFunctionmkInt
(i int)
cmd/cloudshell_open/appfile_test.go:255
↓ 4 callersFunctionrun
(opts runOpts)
cmd/cloudshell_open/main.go:125
↓ 4 callersFunctionrunScripts
(dir string, commands, envs []string)
cmd/cloudshell_open/scripts.go:48
↓ 4 callersFunctionwithTestEnv
(k, v string)
cmd/cloudshell_open/main_test.go:168
↓ 3 callersFunctioncomposeFileExists
(dir string)
cmd/cloudshell_open/compose.go:20
↓ 3 callersFunctiongitCheckout
(dir, rev string)
cmd/cloudshell_open/clone.go:73
↓ 3 callersFunctionparseAppFile
(r io.Reader)
cmd/cloudshell_open/appfile.go:103
↓ 3 callersFunctionwaitCredsAvailable
waitCredsAvailable polls until Cloud Shell VM has available credentials. Credentials might be missing in the environment for some GSuite users that ne
cmd/cloudshell_open/main.go:535
↓ 2 callersFunctionGetCoupon
(event string, bearerToken string)
cmd/instrumentless/instrumentless.go:28
↓ 2 callersFunctionapplyScaleMeta
applyScaleMeta optional annotations for scale commands
cmd/cloudshell_open/deploy.go:155
↓ 2 callersFunctionclean_clone
Remove the cloned code
tests/run_integration_test.py:101
↓ 2 callersFunctioncleanupPath
cleanupPath removes the leading or trailing slashes, or the README.md from the path.
cmd/redirector/github.go:52
↓ 2 callersFunctionclone
(gitRepo, dir string)
cmd/cloudshell_open/clone.go:64
↓ 2 callersFunctioncreateMavenCommand
(dir string, args ...string)
cmd/cloudshell_open/jib.go:55
↓ 2 callersFunctiondoRedirect
(w http.ResponseWriter, r repoRef, overrides url.Values)
cmd/redirector/main.go:96
↓ 2 callersFunctiongenerateRevisionName
generateRevisionName attempts to generate a random revision name that is alphabetically increasing but also has a random suffix. objectGeneration is t
cmd/cloudshell_open/deploy.go:163
↓ 2 callersFunctionhasSubDirsInPATH
hasSubDirsInPATH determines if anything in PATH is a sub-directory of dir.
cmd/cloudshell_open/main.go:577
↓ 2 callersFunctionisSubPath
isSubPath determines b is under a. Both paths are evaluated by computing their abs paths.
cmd/cloudshell_open/main.go:597
↓ 2 callersFunctionmustURL
(t *testing.T, u string)
cmd/redirector/github_test.go:128
↓ 2 callersFunctionoptionsToContainerSpec
(options options)
cmd/cloudshell_open/deploy.go:87
↓ 2 callersFunctionparseReferer
(v string, extractors map[string]extractor)
cmd/redirector/referer.go:15
↓ 2 callersFunctionprepURL
(r repoRef, overrides url.Values)
cmd/redirector/referer.go:29
↓ 2 callersFunctionpromptInstrumentless
()
cmd/cloudshell_open/main.go:629
↓ 2 callersFunctionrepoDirName
(repo string)
cmd/cloudshell_open/clone.go:48
↓ 2 callersFunctionrunClient
(region string)
cmd/cloudshell_open/cloudrun.go:83
↓ 2 callersFunctionrun_shell
Invoke the given subproceess, capturing output status and returning stdout
tests/run_integration_test.py:77
↓ 2 callersFunctionsortedEnvs
(envs map[string]env)
cmd/cloudshell_open/appfile.go:234
↓ 2 callersFunctionstaticRedirect
(url string, code int)
cmd/redirector/main.go:48
↓ 2 callersFunctiontryFixServiceName
tryFixServiceName attempts replace the service name with a better one to prevent deployment failures due to Cloud Run service naming constraints such
cmd/cloudshell_open/cloudrun.go:121
↓ 2 callersFunctionvalidRepoURL
(repo string)
cmd/cloudshell_open/clone.go:29
↓ 1 callersMethodDir
()
cmd/redirector/extractors.go:7
↓ 1 callersMethodGitURL
()
cmd/redirector/extractors.go:6
↓ 1 callersMethodRef
()
cmd/redirector/extractors.go:8
↓ 1 callersMethodWrite
(p []byte)
cmd/cloudshell_open/scripts.go:31
↓ 1 callersFunctionallowUnauthenticated
allowUnauthenticated sets IAM policy on the specified Cloud Run service to give allUsers subject roles/run.invoker role.
cmd/cloudshell_open/deploy.go:238
↓ 1 callersFunctionbillingAccounts
()
cmd/cloudshell_open/billing.go:38
↓ 1 callersFunctioncheckBillingEnabled
checkBillingEnabled checks if there's a billing account associated to the GCP project ID.
cmd/cloudshell_open/billing.go:26
↓ 1 callersFunctioncli
Tool for testing Cloud Run Button deployments
tests/run_integration_test.py:183
↓ 1 callersFunctioncloudshell_open
Invoke the cloudshell_open executable.
tests/run_integration_test.py:64
↓ 1 callersFunctioncomposeRunUp
(appDir, region string)
cmd/cloudshell_open/compose.go:10
↓ 1 callersFunctionconfirmProject
(project string)
cmd/cloudshell_open/project.go:72
↓ 1 callersFunctioncreateArtifactRegistry
Create a "Cloud Run Source Deploy" repository in Artifact Registry (if it doesn't already exist)
cmd/cloudshell_open/artifactregistry.go:29
↓ 1 callersFunctiondelete_service
(service_name)
tests/run_integration_test.py:142
↓ 1 callersFunctiondeploy
deploy reimplements the "gcloud run deploy" command, including setting IAM policy and waiting for Service to be Ready.
cmd/cloudshell_open/deploy.go:27
↓ 1 callersFunctiondeploy_service
Deploy a Cloud Run service using the Cloud Run Button
tests/run_integration_test.py:111
↓ 1 callersFunctiondockerBuild
(dir, image string)
cmd/cloudshell_open/docker.go:24
↓ 1 callersFunctiondockerFileExists
(dir string)
cmd/cloudshell_open/docker.go:42
↓ 1 callersFunctiondockerPush
(image string)
cmd/cloudshell_open/docker.go:33
↓ 1 callersFunctionenableAPIs
(project string, apis []string)
cmd/cloudshell_open/api.go:24
↓ 1 callersFunctionenabledAPIs
(client *serviceusage.Service, project string)
cmd/cloudshell_open/api.go:72
↓ 1 callersFunctionenvVars
(project, name, region string)
cmd/cloudshell_open/cloudrun.go:96
↓ 1 callersFunctionextractGitHubURL
(u *url.URL)
cmd/redirector/github.go:27
↓ 1 callersFunctiongcloud
Invoke the gcloud executable
tests/run_integration_test.py:48
↓ 1 callersFunctiongenerateEnvs
(keys []string)
cmd/cloudshell_open/appfile.go:197
↓ 1 callersFunctionget_url
GET a URL, returning the status and body
tests/run_integration_test.py:157
↓ 1 callersFunctionhandleRepo
(repo string)
cmd/cloudshell_open/clone.go:31
↓ 1 callersFunctioninstrumentlessCoupon
()
cmd/cloudshell_open/main.go:613
↓ 1 callersFunctionjibMavenBuild
(dir string, image string)
cmd/cloudshell_open/jib.go:26
↓ 1 callersFunctionjibMavenConfigured
(dir string)
cmd/cloudshell_open/jib.go:35
↓ 1 callersFunctionlistProjects
()
cmd/cloudshell_open/project.go:37
↓ 1 callersFunctionmanualRedirect
TODO(ahmetb): remove once https://github.community/t/chrome-85-breaks-referer/130039 is fixed
cmd/redirector/main.go:148
↓ 1 callersFunctionmergeEnvs
mergeEnvs updates variables in existing, and adds missing ones.
cmd/cloudshell_open/deploy.go:198
↓ 1 callersFunctionneedEnvs
takes the envs defined in app.json, and the existing envs and returns the new envs that need to be prompted for
cmd/cloudshell_open/appfile.go:161
↓ 1 callersFunctionnewService
newService initializes a new Knative Service object with given properties.
cmd/cloudshell_open/deploy.go:101
↓ 1 callersFunctionoptionsToFlags
(options options)
cmd/cloudshell_open/main.go:492
↓ 1 callersFunctionoptionsToResourceRequirements
(options options)
cmd/cloudshell_open/deploy.go:75
↓ 1 callersFunctionpackBuild
(dir, image, builderImage string)
cmd/cloudshell_open/pack.go:22
↓ 1 callersFunctionparseEnv
parseEnv parses K=V pairs into a map.
cmd/cloudshell_open/deploy.go:16
↓ 1 callersFunctionpatchService
patchService modifies an existing Service with requested changes.
cmd/cloudshell_open/deploy.go:174
↓ 1 callersFunctionprint_help_msg
(command)
tests/run_integration_test.py:43
↓ 1 callersFunctionprojectRunLocations
(ctx context.Context, project string)
cmd/cloudshell_open/cloudrun.go:35
↓ 1 callersFunctionprompUseExistingBillingAccount
(project string)
cmd/cloudshell_open/main.go:665
↓ 1 callersFunctionpromptDeploymentRegion
(ctx context.Context, project string)
cmd/cloudshell_open/cloudrun.go:55
↓ 1 callersFunctionpromptEnv
(list map[string]env)
cmd/cloudshell_open/appfile.go:247
↓ 1 callersFunctionpromptMultipleProjects
(projects []string)
cmd/cloudshell_open/project.go:84
↓ 1 callersFunctionpromptOrGenerateEnvs
(list map[string]env)
cmd/cloudshell_open/appfile.go:172
↓ 1 callersFunctionpromptProject
(projects []string)
cmd/cloudshell_open/project.go:57
↓ 1 callersFunctionrand64String
()
cmd/cloudshell_open/appfile.go:152
↓ 1 callersFunctionrunScript
(dir, command string, envs []string)
cmd/cloudshell_open/scripts.go:36
↓ 1 callersFunctionshowRedirectForm
TODO(ahmetb): remove once https://github.community/t/chrome-85-breaks-referer/130039 is fixed
cmd/redirector/main.go:103
↓ 1 callersFunctionsignalRepoCloneStatus
signalRepoCloneStatus signals to the cloudshell host that the repo is cloned or not (bug/178009327).
cmd/cloudshell_open/clone.go:85
↓ 1 callersFunctionwaitForBilling
(projectID string, prompt func(string) error)
cmd/cloudshell_open/main.go:561
↓ 1 callersFunctionwaitReady
waitReady waits until the specified service reaches Ready status
cmd/cloudshell_open/deploy.go:213
↓ 1 callersFunctionwithLogging
(next http.HandlerFunc)
cmd/redirector/main.go:39
MethodDir
()
cmd/redirector/github.go:19
MethodDir
()
cmd/redirector/referer.go:73
MethodDir
()
cmd/redirector/referer_test.go:13
MethodGitURL
()
cmd/redirector/github.go:18
MethodGitURL
()
cmd/redirector/referer.go:72
MethodGitURL
()
cmd/redirector/referer_test.go:11
MethodLen
()
cmd/cloudshell_open/appfile.go:216
next →1–100 of 138, ranked by callers