Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/cloud-run-button
/ functions
Functions
138 in github.com/GoogleCloudPlatform/cloud-run-button
⨍
Functions
138
◇
Types & classes
20
↓ 10 callers
Function
debugging
(*args)
tests/run_integration_test.py:36
↓ 8 callers
Method
WriteHeader
(statusCode int)
cmd/redirector/main.go:172
↓ 8 callers
Function
logProgress
(msg, endMsg, errMsg string)
cmd/cloudshell_open/main.go:108
↓ 6 callers
Method
Header
()
cmd/redirector/main.go:170
↓ 6 callers
Function
getService
(project, name, region string)
cmd/cloudshell_open/cloudrun.go:75
↓ 6 callers
Function
redirect
(w http.ResponseWriter, req *http.Request)
cmd/redirector/main.go:55
↓ 5 callers
Function
hasAppFile
hasAppFile checks if the directory has an app.json file.
cmd/cloudshell_open/appfile.go:91
↓ 4 callers
Function
applyMeta
applyMeta applies optional annotations to the specified Metadata.Annotation fields
cmd/cloudshell_open/deploy.go:146
↓ 4 callers
Function
getAppFile
getAppFile returns the parsed app.json in the directory if it exists, otherwise returns a zero appFile.
cmd/cloudshell_open/appfile.go:131
↓ 4 callers
Function
mkInt
(i int)
cmd/cloudshell_open/appfile_test.go:255
↓ 4 callers
Function
run
(opts runOpts)
cmd/cloudshell_open/main.go:125
↓ 4 callers
Function
runScripts
(dir string, commands, envs []string)
cmd/cloudshell_open/scripts.go:48
↓ 4 callers
Function
withTestEnv
(k, v string)
cmd/cloudshell_open/main_test.go:168
↓ 3 callers
Function
composeFileExists
(dir string)
cmd/cloudshell_open/compose.go:20
↓ 3 callers
Function
gitCheckout
(dir, rev string)
cmd/cloudshell_open/clone.go:73
↓ 3 callers
Function
parseAppFile
(r io.Reader)
cmd/cloudshell_open/appfile.go:103
↓ 3 callers
Function
waitCredsAvailable
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 callers
Function
GetCoupon
(event string, bearerToken string)
cmd/instrumentless/instrumentless.go:28
↓ 2 callers
Function
applyScaleMeta
applyScaleMeta optional annotations for scale commands
cmd/cloudshell_open/deploy.go:155
↓ 2 callers
Function
clean_clone
Remove the cloned code
tests/run_integration_test.py:101
↓ 2 callers
Function
cleanupPath
cleanupPath removes the leading or trailing slashes, or the README.md from the path.
cmd/redirector/github.go:52
↓ 2 callers
Function
clone
(gitRepo, dir string)
cmd/cloudshell_open/clone.go:64
↓ 2 callers
Function
createMavenCommand
(dir string, args ...string)
cmd/cloudshell_open/jib.go:55
↓ 2 callers
Function
doRedirect
(w http.ResponseWriter, r repoRef, overrides url.Values)
cmd/redirector/main.go:96
↓ 2 callers
Function
generateRevisionName
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 callers
Function
hasSubDirsInPATH
hasSubDirsInPATH determines if anything in PATH is a sub-directory of dir.
cmd/cloudshell_open/main.go:577
↓ 2 callers
Function
isSubPath
isSubPath determines b is under a. Both paths are evaluated by computing their abs paths.
cmd/cloudshell_open/main.go:597
↓ 2 callers
Function
mustURL
(t *testing.T, u string)
cmd/redirector/github_test.go:128
↓ 2 callers
Function
optionsToContainerSpec
(options options)
cmd/cloudshell_open/deploy.go:87
↓ 2 callers
Function
parseReferer
(v string, extractors map[string]extractor)
cmd/redirector/referer.go:15
↓ 2 callers
Function
prepURL
(r repoRef, overrides url.Values)
cmd/redirector/referer.go:29
↓ 2 callers
Function
promptInstrumentless
()
cmd/cloudshell_open/main.go:629
↓ 2 callers
Function
repoDirName
(repo string)
cmd/cloudshell_open/clone.go:48
↓ 2 callers
Function
runClient
(region string)
cmd/cloudshell_open/cloudrun.go:83
↓ 2 callers
Function
run_shell
Invoke the given subproceess, capturing output status and returning stdout
tests/run_integration_test.py:77
↓ 2 callers
Function
sortedEnvs
(envs map[string]env)
cmd/cloudshell_open/appfile.go:234
↓ 2 callers
Function
staticRedirect
(url string, code int)
cmd/redirector/main.go:48
↓ 2 callers
Function
tryFixServiceName
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 callers
Function
validRepoURL
(repo string)
cmd/cloudshell_open/clone.go:29
↓ 1 callers
Method
Dir
()
cmd/redirector/extractors.go:7
↓ 1 callers
Method
GitURL
()
cmd/redirector/extractors.go:6
↓ 1 callers
Method
Ref
()
cmd/redirector/extractors.go:8
↓ 1 callers
Method
Write
(p []byte)
cmd/cloudshell_open/scripts.go:31
↓ 1 callers
Function
allowUnauthenticated
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 callers
Function
billingAccounts
()
cmd/cloudshell_open/billing.go:38
↓ 1 callers
Function
checkBillingEnabled
checkBillingEnabled checks if there's a billing account associated to the GCP project ID.
cmd/cloudshell_open/billing.go:26
↓ 1 callers
Function
cli
Tool for testing Cloud Run Button deployments
tests/run_integration_test.py:183
↓ 1 callers
Function
cloudshell_open
Invoke the cloudshell_open executable.
tests/run_integration_test.py:64
↓ 1 callers
Function
composeRunUp
(appDir, region string)
cmd/cloudshell_open/compose.go:10
↓ 1 callers
Function
confirmProject
(project string)
cmd/cloudshell_open/project.go:72
↓ 1 callers
Function
createArtifactRegistry
Create a "Cloud Run Source Deploy" repository in Artifact Registry (if it doesn't already exist)
cmd/cloudshell_open/artifactregistry.go:29
↓ 1 callers
Function
delete_service
(service_name)
tests/run_integration_test.py:142
↓ 1 callers
Function
deploy
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 callers
Function
deploy_service
Deploy a Cloud Run service using the Cloud Run Button
tests/run_integration_test.py:111
↓ 1 callers
Function
dockerBuild
(dir, image string)
cmd/cloudshell_open/docker.go:24
↓ 1 callers
Function
dockerFileExists
(dir string)
cmd/cloudshell_open/docker.go:42
↓ 1 callers
Function
dockerPush
(image string)
cmd/cloudshell_open/docker.go:33
↓ 1 callers
Function
enableAPIs
(project string, apis []string)
cmd/cloudshell_open/api.go:24
↓ 1 callers
Function
enabledAPIs
(client *serviceusage.Service, project string)
cmd/cloudshell_open/api.go:72
↓ 1 callers
Function
envVars
(project, name, region string)
cmd/cloudshell_open/cloudrun.go:96
↓ 1 callers
Function
extractGitHubURL
(u *url.URL)
cmd/redirector/github.go:27
↓ 1 callers
Function
gcloud
Invoke the gcloud executable
tests/run_integration_test.py:48
↓ 1 callers
Function
generateEnvs
(keys []string)
cmd/cloudshell_open/appfile.go:197
↓ 1 callers
Function
get_url
GET a URL, returning the status and body
tests/run_integration_test.py:157
↓ 1 callers
Function
handleRepo
(repo string)
cmd/cloudshell_open/clone.go:31
↓ 1 callers
Function
instrumentlessCoupon
()
cmd/cloudshell_open/main.go:613
↓ 1 callers
Function
jibMavenBuild
(dir string, image string)
cmd/cloudshell_open/jib.go:26
↓ 1 callers
Function
jibMavenConfigured
(dir string)
cmd/cloudshell_open/jib.go:35
↓ 1 callers
Function
listProjects
()
cmd/cloudshell_open/project.go:37
↓ 1 callers
Function
manualRedirect
TODO(ahmetb): remove once https://github.community/t/chrome-85-breaks-referer/130039 is fixed
cmd/redirector/main.go:148
↓ 1 callers
Function
mergeEnvs
mergeEnvs updates variables in existing, and adds missing ones.
cmd/cloudshell_open/deploy.go:198
↓ 1 callers
Function
needEnvs
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 callers
Function
newService
newService initializes a new Knative Service object with given properties.
cmd/cloudshell_open/deploy.go:101
↓ 1 callers
Function
optionsToFlags
(options options)
cmd/cloudshell_open/main.go:492
↓ 1 callers
Function
optionsToResourceRequirements
(options options)
cmd/cloudshell_open/deploy.go:75
↓ 1 callers
Function
packBuild
(dir, image, builderImage string)
cmd/cloudshell_open/pack.go:22
↓ 1 callers
Function
parseEnv
parseEnv parses K=V pairs into a map.
cmd/cloudshell_open/deploy.go:16
↓ 1 callers
Function
patchService
patchService modifies an existing Service with requested changes.
cmd/cloudshell_open/deploy.go:174
↓ 1 callers
Function
print_help_msg
(command)
tests/run_integration_test.py:43
↓ 1 callers
Function
projectRunLocations
(ctx context.Context, project string)
cmd/cloudshell_open/cloudrun.go:35
↓ 1 callers
Function
prompUseExistingBillingAccount
(project string)
cmd/cloudshell_open/main.go:665
↓ 1 callers
Function
promptDeploymentRegion
(ctx context.Context, project string)
cmd/cloudshell_open/cloudrun.go:55
↓ 1 callers
Function
promptEnv
(list map[string]env)
cmd/cloudshell_open/appfile.go:247
↓ 1 callers
Function
promptMultipleProjects
(projects []string)
cmd/cloudshell_open/project.go:84
↓ 1 callers
Function
promptOrGenerateEnvs
(list map[string]env)
cmd/cloudshell_open/appfile.go:172
↓ 1 callers
Function
promptProject
(projects []string)
cmd/cloudshell_open/project.go:57
↓ 1 callers
Function
rand64String
()
cmd/cloudshell_open/appfile.go:152
↓ 1 callers
Function
runScript
(dir, command string, envs []string)
cmd/cloudshell_open/scripts.go:36
↓ 1 callers
Function
showRedirectForm
TODO(ahmetb): remove once https://github.community/t/chrome-85-breaks-referer/130039 is fixed
cmd/redirector/main.go:103
↓ 1 callers
Function
signalRepoCloneStatus
signalRepoCloneStatus signals to the cloudshell host that the repo is cloned or not (bug/178009327).
cmd/cloudshell_open/clone.go:85
↓ 1 callers
Function
waitForBilling
(projectID string, prompt func(string) error)
cmd/cloudshell_open/main.go:561
↓ 1 callers
Function
waitReady
waitReady waits until the specified service reaches Ready status
cmd/cloudshell_open/deploy.go:213
↓ 1 callers
Function
withLogging
(next http.HandlerFunc)
cmd/redirector/main.go:39
Method
Dir
()
cmd/redirector/github.go:19
Method
Dir
()
cmd/redirector/referer.go:73
Method
Dir
()
cmd/redirector/referer_test.go:13
Method
GitURL
()
cmd/redirector/github.go:18
Method
GitURL
()
cmd/redirector/referer.go:72
Method
GitURL
()
cmd/redirector/referer_test.go:11
Method
Len
()
cmd/cloudshell_open/appfile.go:216
next →
1–100 of 138, ranked by callers