Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/cloud-builders
/ functions
Functions
340 in github.com/GoogleCloudPlatform/cloud-builders
⨍
Functions
340
◇
Types & classes
72
↳
Endpoints
1
↓ 289 callers
Function
newObjectFromFile
(t *testing.T, filename string)
gke-deploy/core/resource/resource_test.go:1627
↓ 60 callers
Function
fileContents
(t *testing.T, filename string)
gke-deploy/deployer/deployer_test.go:1382
↓ 49 callers
Method
log
(format string, a ...interface{})
gcs-fetcher/pkg/fetcher/fetcher.go:182
↓ 39 callers
Method
Error
()
gcs-fetcher/pkg/fetcher/fetcher.go:172
↓ 25 callers
Function
buildTestContext
(t *testing.T)
gcs-fetcher/pkg/fetcher/fetcher_test.go:208
↓ 22 callers
Function
formatGCSName
(bucket, object string, generation int64)
gcs-fetcher/pkg/fetcher/fetcher.go:961
↓ 18 callers
Method
Copy
(ctx context.Context, src, dst string, recursive bool)
gke-deploy/services/clients.go:53
↓ 17 callers
Method
ReadFile
(ctx context.Context, filename string)
gke-deploy/services/clients.go:25
↓ 17 callers
Method
TempDir
(ctx context.Context, dir, pattern string)
gke-deploy/services/clients.go:29
↓ 15 callers
Method
RemoveAll
(ctx context.Context, dir string)
gke-deploy/services/clients.go:28
↓ 12 callers
Method
Name
()
gke-deploy/testservices/os.go:116
↓ 12 callers
Function
ObjectKind
TODO(joonlim): These should be member functions of Object. ObjectKind returns the kind of an object.
gke-deploy/core/resource/resource.go:688
↓ 12 callers
Method
String
String returns a string representation of an object.
gke-deploy/core/resource/resource.go:598
↓ 11 callers
Method
IsDir
IsDir returns true if the file is a directory.
gke-deploy/testservices/os.go:121
↓ 11 callers
Method
fetchObject
fetchObject is responsible for trying (and retrying) to fetch a single file from GCS. It first downloads the file to a temp file, then renames it to t
gcs-fetcher/pkg/fetcher/fetcher.go:234
↓ 9 callers
Method
MkdirAll
(path string, perm os.FileMode)
gcs-fetcher/pkg/fetcher/fetcher.go:131
↓ 9 callers
Method
Open
(name string)
gcs-fetcher/pkg/fetcher/fetcher.go:132
↓ 9 callers
Method
RemoveAll
(path string)
gcs-fetcher/pkg/fetcher/fetcher.go:133
↓ 7 callers
Function
DecodeFromYAML
DecodeFromYAML decodes an object from a YAML string as bytes.
gke-deploy/core/resource/resource.go:63
↓ 7 callers
Method
NewReader
(ctx context.Context, bucket, object string)
gcs-fetcher/pkg/fetcher/fetcher.go:138
↓ 7 callers
Method
ReadDir
(ctx context.Context, dirname string)
gke-deploy/services/clients.go:24
↓ 7 callers
Method
fetchObjectOnce
fetchObjectOnce has the responsibility of downloading a file from GCS and saving it to the dest location. If it receives a signal on breakerSig, it wi
gcs-fetcher/pkg/fetcher/fetcher.go:352
↓ 6 callers
Method
NewWriter
(ctx context.Context, bucket, object string)
gcs-fetcher/pkg/uploader/uploader.go:52
↓ 6 callers
Method
Stat
(ctx context.Context, filename string)
gke-deploy/services/clients.go:23
↓ 6 callers
Method
fetchFromManifest
fetchFromManifest is used when downloading source based on a manifest file. It is responsible for fetching the manifest file, decoding the JSON, and a
gcs-fetcher/pkg/fetcher/fetcher.go:558
↓ 6 callers
Function
fileContents
(t *testing.T, filename string)
gke-deploy/core/cluster/cluster_test.go:262
↓ 6 callers
Function
logFatalf
(writer io.Writer, format string, a ...interface{})
gcs-fetcher/cmd/gcs-fetcher/main.go:55
↓ 5 callers
Method
Get
(ctx context.Context, kind, name, namespace, format string, ignoreNotFound bool)
gke-deploy/services/clients.go:43
↓ 5 callers
Function
ObjectName
ObjectName returns the name of an object.
gke-deploy/core/resource/resource.go:693
↓ 5 callers
Method
Prepare
Prepare handles preparing deployment.
gke-deploy/deployer/deployer.go:45
↓ 5 callers
Method
Stat
(path string)
gcs-fetcher/pkg/uploader/uploader.go:47
↓ 5 callers
Function
fileContents
(t *testing.T, filename string)
gke-deploy/core/resource/resource_test.go:1636
↓ 5 callers
Method
logErr
(format string, a ...interface{})
gcs-fetcher/pkg/fetcher/fetcher.go:186
↓ 5 callers
Method
recordFailure
(j job, started time.Time, gcsTimeout time.Duration, err error, report *jobReport)
gcs-fetcher/pkg/fetcher/fetcher.go:190
↓ 5 callers
Function
runCommand
(ctx context.Context, printCommand bool, name string, args ...string)
gke-deploy/services/exec.go:40
↓ 4 callers
Function
AuthorizeAccess
AuthorizeAccess authorizes kubectl to the cluster. In doing so, this also verifies the cluster exists.
gke-deploy/core/cluster/cluster.go:14
↓ 4 callers
Method
Chmod
(name string, mode os.FileMode)
gcs-fetcher/pkg/fetcher/fetcher.go:129
↓ 4 callers
Method
Done
Wait blocks until ongoing uploads are complete, or until an error is encountered.
gcs-fetcher/pkg/uploader/uploader.go:72
↓ 4 callers
Method
Download
Download copies file(s) from GCS. <dst> should be a directory, not a path to a file.
gke-deploy/core/gcs/gcs.go:31
↓ 4 callers
Method
MkdirAll
(ctx context.Context, dirname string, perm os.FileMode)
gke-deploy/services/clients.go:27
↓ 4 callers
Function
ParseConfigs
ParseConfigs parses resource objects from a file or directory of files into a map that maps unique file base names to the parsed objects.
gke-deploy/core/resource/resource.go:79
↓ 4 callers
Method
Upload
Upload copies file(s) to GCS.
gke-deploy/core/gcs/gcs.go:36
↓ 4 callers
Function
addToNestedMap
(obj *Object, key, value string, override bool, nestedFields ...string)
gke-deploy/core/resource/resource.go:661
↓ 4 callers
Function
buildTestGCS
(t *testing.T)
gke-deploy/core/gcs/gcs_test.go:48
↓ 4 callers
Function
buildTestGcsService
(t *testing.T)
gke-deploy/deployer/deployer_test.go:1425
↓ 4 callers
Function
compareFiles
(expectedFile, actualDirectory string)
gke-deploy/deployer/deployer_test.go:1398
↓ 4 callers
Function
newImageWithTag
(t *testing.T, image string)
gke-deploy/core/image/image_test.go:111
↓ 3 callers
Method
Apply
(ctx context.Context, filename, namespace string)
gke-deploy/services/clients.go:41
↓ 3 callers
Method
Create
(name string)
gcs-fetcher/pkg/fetcher/fetcher.go:130
↓ 3 callers
Method
Image
(ctx context.Context, ref name.Reference)
gke-deploy/services/clients.go:48
↓ 3 callers
Method
Rename
(oldpath, newpath string)
gcs-fetcher/pkg/fetcher/fetcher.go:128
↓ 3 callers
Method
fetchObjectOnceWithTimeout
fetchObjectOnceWithTimeout is merely mechanics to call fetchObjectOnce(), using a circuit breaker pattern to timeout the call if it takes too long. GC
gcs-fetcher/pkg/fetcher/fetcher.go:323
↓ 3 callers
Function
sortObjectsByKindAndName
sortObjectsByKindAndName sorts a list of objects by kind, then name, alphabetically.
gke-deploy/core/resource/resource.go:435
↓ 2 callers
Function
AddAnnotation
AddAnnotation updates an object to add an annotation with the key and value provided.
gke-deploy/core/resource/resource.go:636
↓ 2 callers
Function
AddLabel
AddLabel updates an object to add a label with the key and value provided.
gke-deploy/core/resource/resource.go:609
↓ 2 callers
Method
Apply
Apply handles applying the deployment.
gke-deploy/deployer/deployer.go:308
↓ 2 callers
Function
ApplyConfigFromString
ApplyConfigFromString applies a config string to the current context's cluster.
gke-deploy/core/cluster/cluster.go:30
↓ 2 callers
Method
ConfigGetValue
(ctx context.Context, property string)
gke-deploy/services/clients.go:36
↓ 2 callers
Function
CreateApplicationLinksListFromEqualDelimitedStrings
CreateApplicationLinksListFromEqualDelimitedStrings creates a []applicationsv1beta1.Link from a slice of "="-delimited strings, where the key is set a
gke-deploy/cmd/common/common.go:20
↓ 2 callers
Function
CreateMapFromEqualDelimitedStrings
CreateMapFromEqualDelimitedStrings creates a map[string]string from a slice of "="-delimited strings.
gke-deploy/cmd/common/common.go:50
↓ 2 callers
Function
CreateNamespaceObject
CreateNamespaceObject creates a Namespace object with the given name.
gke-deploy/core/resource/resource.go:356
↓ 2 callers
Method
Decode
(data []byte, defaults *schema.GroupVersionKind, into runtime.Object)
gke-deploy/core/resource/resource.go:32
↓ 2 callers
Function
DeployedObjectExists
DeployedObjectExists returns true if a deployed object exists in the current context's cluster, else false.
gke-deploy/core/cluster/cluster.go:48
↓ 2 callers
Method
Do
(ctx context.Context, path string, info os.FileInfo)
gcs-fetcher/pkg/uploader/uploader.go:86
↓ 2 callers
Function
EnsureInstallApplicationCRD
EnsureInstallApplicationCRD ensures the installation of the Application CRD in the current context's cluster.
gke-deploy/core/crd/crd.go:17
↓ 2 callers
Method
EvalSymlinks
(path string)
gcs-fetcher/pkg/uploader/uploader.go:46
↓ 2 callers
Function
GetAccount
GetAccount gets the GCP account set during this execution.
gke-deploy/core/gcp/gcp.go:21
↓ 2 callers
Function
GetProject
GetAccount gets the GCP project set during this execution.
gke-deploy/core/gcp/gcp.go:12
↓ 2 callers
Function
IsReady
IsReady returns true if a deployed object is ready. Please check the comments of each kind's implementation for a description of what is considered to
gke-deploy/core/resource/ready.go:12
↓ 2 callers
Function
ObjectNamespace
ObjectNamespace returns the namespace of an object.
gke-deploy/core/resource/resource.go:702
↓ 2 callers
Function
ResolveDigest
ResolveDigest gets an image's corresponding digest.
gke-deploy/core/image/image.go:20
↓ 2 callers
Function
SaveAsConfigs
SaveAsConfigs saves resource objects as config files to a target output directory. If any lines in a resource object's string representation contain a
gke-deploy/core/resource/resource.go:151
↓ 2 callers
Function
SetApplicationLinks
SetApplicationLinks sets a list of links to an Application object's spec.descriptor.links field.
gke-deploy/core/resource/application.go:86
↓ 2 callers
Method
Write
(b []byte)
gcs-fetcher/pkg/uploader/uploader.go:147
↓ 2 callers
Method
WriteFile
(ctx context.Context, filename string, data []byte, perm os.FileMode)
gke-deploy/services/clients.go:26
↓ 2 callers
Function
addCommentsToLines
addCommentsToLines iterates through the lines of a string ('-n'-delimited) and if any lines contain a key in lineComments, the corresponding value wil
gke-deploy/core/resource/resource.go:204
↓ 2 callers
Function
convertApplicationToMap
(app *applicationsv1beta1.Application)
gke-deploy/core/resource/application.go:106
↓ 2 callers
Function
copy
(src, dest string, info os.FileInfo)
gke-deploy/testservices/gsutil.go:51
↓ 2 callers
Method
copyWithRetry
copyWithRetry is responsible for trying (and retrying) to call copyWithTimeout() with appropriate retry backoff.
gke-deploy/core/gcs/gcs.go:42
↓ 2 callers
Method
doWork
doWork is the worker routine. It listens for jobs, fetches the file, and emits a job report. This continues until channel job is closed.
gcs-fetcher/pkg/fetcher/fetcher.go:444
↓ 2 callers
Method
ensureFolders
ensureFolders takes a full path to a filename and makes sure that all the folders leading to the filename exist.
gcs-fetcher/pkg/fetcher/fetcher.go:429
↓ 2 callers
Method
fetchFromTarGz
fetchFromTarGz is used when downloading a single .tar.gz of source files. It is responsible to fetch the .tar.gz file and unzip it into the destinatio
gcs-fetcher/pkg/fetcher/fetcher.go:837
↓ 2 callers
Method
fetchFromZip
fetchFromZip is used when downloading a single zip of source files. It is responsible to fetch the zip file and unzip it into the destination folder.
gcs-fetcher/pkg/fetcher/fetcher.go:700
↓ 2 callers
Function
join
(base, path string)
gke-deploy/cmd/common/common.go:116
↓ 2 callers
Function
logit
(writer io.Writer, format string, a ...interface{})
gcs-fetcher/pkg/fetcher/fetcher.go:176
↓ 2 callers
Function
newImageWithTag
(t *testing.T, image string)
gke-deploy/deployer/deployer_test.go:1390
↓ 2 callers
Function
newObjectFromFile
(t *testing.T, filename string)
gke-deploy/core/cluster/cluster_test.go:253
↓ 2 callers
Function
parseResourcesFromFile
(ctx context.Context, filename string, objs Objects, oss services.OSService)
gke-deploy/core/resource/resource.go:548
↓ 2 callers
Method
processJobs
processJobs is the primary concurrency mechanics for Fetcher. This method spins up a set of worker goroutines, creates a goroutine to send all the job
gcs-fetcher/pkg/fetcher/fetcher.go:459
↓ 2 callers
Function
setObjectNamespace
(obj *Object, namespace string)
gke-deploy/core/resource/resource.go:710
↓ 2 callers
Function
splitObjectAndGeneration
(fullObject string)
gcs-fetcher/pkg/common/common.go:74
↓ 2 callers
Method
timeout
getTimeout returns the GCS timeout that should be used for a given filenum on a given retry number. GCS has long tails on occasion, so in some cases,
gcs-fetcher/pkg/fetcher/fetcher.go:537
↓ 2 callers
Function
unzip
(zipfile, dest string)
gcs-fetcher/pkg/fetcher/fetcher.go:764
↓ 1 callers
Function
AddNamespaceIfMissing
AddNamespaceIfMissing updates all objects to add a namespace only if the object does not have one already.
gke-deploy/core/resource/resource.go:302
↓ 1 callers
Method
ApplyFromString
(ctx context.Context, configString, namespace string)
gke-deploy/services/clients.go:42
↓ 1 callers
Method
ContainerClustersGetCredentials
(ctx context.Context, clusterName, clusterLocation, clusterProject string)
gke-deploy/services/clients.go:34
↓ 1 callers
Method
ContainerClustersGetCredentialsGoClient
(ctx context.Context, clusterName, clusterLocation, clusterProject string)
gke-deploy/services/clients.go:35
↓ 1 callers
Function
CreateApplicationObject
CreateApplicationObject creates an Application CR object with the given name and fields. appVersion may be empty, in which case the resulting Applicat
gke-deploy/core/resource/application.go:17
↓ 1 callers
Function
CreateDeploymentObject
CreateDeploymentObject creates a Deployment object with the given name and image. The created Deployment will have 3 replicas.
gke-deploy/core/resource/resource.go:336
↓ 1 callers
Function
CreateHorizontalPodAutoscalerObject
CreateHorizontalPodAutoscalerObject creates a Namespace object with the given name. The created HorizontalPodAutoscaler will have minReplicas set to 1
gke-deploy/core/resource/resource.go:347
next →
1–100 of 340, ranked by callers