MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/cloud-builders / functions

Functions340 in github.com/GoogleCloudPlatform/cloud-builders

↓ 289 callersFunctionnewObjectFromFile
(t *testing.T, filename string)
gke-deploy/core/resource/resource_test.go:1627
↓ 60 callersFunctionfileContents
(t *testing.T, filename string)
gke-deploy/deployer/deployer_test.go:1382
↓ 49 callersMethodlog
(format string, a ...interface{})
gcs-fetcher/pkg/fetcher/fetcher.go:182
↓ 39 callersMethodError
()
gcs-fetcher/pkg/fetcher/fetcher.go:172
↓ 25 callersFunctionbuildTestContext
(t *testing.T)
gcs-fetcher/pkg/fetcher/fetcher_test.go:208
↓ 22 callersFunctionformatGCSName
(bucket, object string, generation int64)
gcs-fetcher/pkg/fetcher/fetcher.go:961
↓ 18 callersMethodCopy
(ctx context.Context, src, dst string, recursive bool)
gke-deploy/services/clients.go:53
↓ 17 callersMethodReadFile
(ctx context.Context, filename string)
gke-deploy/services/clients.go:25
↓ 17 callersMethodTempDir
(ctx context.Context, dir, pattern string)
gke-deploy/services/clients.go:29
↓ 15 callersMethodRemoveAll
(ctx context.Context, dir string)
gke-deploy/services/clients.go:28
↓ 12 callersMethodName
()
gke-deploy/testservices/os.go:116
↓ 12 callersFunctionObjectKind
TODO(joonlim): These should be member functions of Object. ObjectKind returns the kind of an object.
gke-deploy/core/resource/resource.go:688
↓ 12 callersMethodString
String returns a string representation of an object.
gke-deploy/core/resource/resource.go:598
↓ 11 callersMethodIsDir
IsDir returns true if the file is a directory.
gke-deploy/testservices/os.go:121
↓ 11 callersMethodfetchObject
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 callersMethodMkdirAll
(path string, perm os.FileMode)
gcs-fetcher/pkg/fetcher/fetcher.go:131
↓ 9 callersMethodOpen
(name string)
gcs-fetcher/pkg/fetcher/fetcher.go:132
↓ 9 callersMethodRemoveAll
(path string)
gcs-fetcher/pkg/fetcher/fetcher.go:133
↓ 7 callersFunctionDecodeFromYAML
DecodeFromYAML decodes an object from a YAML string as bytes.
gke-deploy/core/resource/resource.go:63
↓ 7 callersMethodNewReader
(ctx context.Context, bucket, object string)
gcs-fetcher/pkg/fetcher/fetcher.go:138
↓ 7 callersMethodReadDir
(ctx context.Context, dirname string)
gke-deploy/services/clients.go:24
↓ 7 callersMethodfetchObjectOnce
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 callersMethodNewWriter
(ctx context.Context, bucket, object string)
gcs-fetcher/pkg/uploader/uploader.go:52
↓ 6 callersMethodStat
(ctx context.Context, filename string)
gke-deploy/services/clients.go:23
↓ 6 callersMethodfetchFromManifest
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 callersFunctionfileContents
(t *testing.T, filename string)
gke-deploy/core/cluster/cluster_test.go:262
↓ 6 callersFunctionlogFatalf
(writer io.Writer, format string, a ...interface{})
gcs-fetcher/cmd/gcs-fetcher/main.go:55
↓ 5 callersMethodGet
(ctx context.Context, kind, name, namespace, format string, ignoreNotFound bool)
gke-deploy/services/clients.go:43
↓ 5 callersFunctionObjectName
ObjectName returns the name of an object.
gke-deploy/core/resource/resource.go:693
↓ 5 callersMethodPrepare
Prepare handles preparing deployment.
gke-deploy/deployer/deployer.go:45
↓ 5 callersMethodStat
(path string)
gcs-fetcher/pkg/uploader/uploader.go:47
↓ 5 callersFunctionfileContents
(t *testing.T, filename string)
gke-deploy/core/resource/resource_test.go:1636
↓ 5 callersMethodlogErr
(format string, a ...interface{})
gcs-fetcher/pkg/fetcher/fetcher.go:186
↓ 5 callersMethodrecordFailure
(j job, started time.Time, gcsTimeout time.Duration, err error, report *jobReport)
gcs-fetcher/pkg/fetcher/fetcher.go:190
↓ 5 callersFunctionrunCommand
(ctx context.Context, printCommand bool, name string, args ...string)
gke-deploy/services/exec.go:40
↓ 4 callersFunctionAuthorizeAccess
AuthorizeAccess authorizes kubectl to the cluster. In doing so, this also verifies the cluster exists.
gke-deploy/core/cluster/cluster.go:14
↓ 4 callersMethodChmod
(name string, mode os.FileMode)
gcs-fetcher/pkg/fetcher/fetcher.go:129
↓ 4 callersMethodDone
Wait blocks until ongoing uploads are complete, or until an error is encountered.
gcs-fetcher/pkg/uploader/uploader.go:72
↓ 4 callersMethodDownload
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 callersMethodMkdirAll
(ctx context.Context, dirname string, perm os.FileMode)
gke-deploy/services/clients.go:27
↓ 4 callersFunctionParseConfigs
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 callersMethodUpload
Upload copies file(s) to GCS.
gke-deploy/core/gcs/gcs.go:36
↓ 4 callersFunctionaddToNestedMap
(obj *Object, key, value string, override bool, nestedFields ...string)
gke-deploy/core/resource/resource.go:661
↓ 4 callersFunctionbuildTestGCS
(t *testing.T)
gke-deploy/core/gcs/gcs_test.go:48
↓ 4 callersFunctionbuildTestGcsService
(t *testing.T)
gke-deploy/deployer/deployer_test.go:1425
↓ 4 callersFunctioncompareFiles
(expectedFile, actualDirectory string)
gke-deploy/deployer/deployer_test.go:1398
↓ 4 callersFunctionnewImageWithTag
(t *testing.T, image string)
gke-deploy/core/image/image_test.go:111
↓ 3 callersMethodApply
(ctx context.Context, filename, namespace string)
gke-deploy/services/clients.go:41
↓ 3 callersMethodCreate
(name string)
gcs-fetcher/pkg/fetcher/fetcher.go:130
↓ 3 callersMethodImage
(ctx context.Context, ref name.Reference)
gke-deploy/services/clients.go:48
↓ 3 callersMethodRename
(oldpath, newpath string)
gcs-fetcher/pkg/fetcher/fetcher.go:128
↓ 3 callersMethodfetchObjectOnceWithTimeout
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 callersFunctionsortObjectsByKindAndName
sortObjectsByKindAndName sorts a list of objects by kind, then name, alphabetically.
gke-deploy/core/resource/resource.go:435
↓ 2 callersFunctionAddAnnotation
AddAnnotation updates an object to add an annotation with the key and value provided.
gke-deploy/core/resource/resource.go:636
↓ 2 callersFunctionAddLabel
AddLabel updates an object to add a label with the key and value provided.
gke-deploy/core/resource/resource.go:609
↓ 2 callersMethodApply
Apply handles applying the deployment.
gke-deploy/deployer/deployer.go:308
↓ 2 callersFunctionApplyConfigFromString
ApplyConfigFromString applies a config string to the current context's cluster.
gke-deploy/core/cluster/cluster.go:30
↓ 2 callersMethodConfigGetValue
(ctx context.Context, property string)
gke-deploy/services/clients.go:36
↓ 2 callersFunctionCreateApplicationLinksListFromEqualDelimitedStrings
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 callersFunctionCreateMapFromEqualDelimitedStrings
CreateMapFromEqualDelimitedStrings creates a map[string]string from a slice of "="-delimited strings.
gke-deploy/cmd/common/common.go:50
↓ 2 callersFunctionCreateNamespaceObject
CreateNamespaceObject creates a Namespace object with the given name.
gke-deploy/core/resource/resource.go:356
↓ 2 callersMethodDecode
(data []byte, defaults *schema.GroupVersionKind, into runtime.Object)
gke-deploy/core/resource/resource.go:32
↓ 2 callersFunctionDeployedObjectExists
DeployedObjectExists returns true if a deployed object exists in the current context's cluster, else false.
gke-deploy/core/cluster/cluster.go:48
↓ 2 callersMethodDo
(ctx context.Context, path string, info os.FileInfo)
gcs-fetcher/pkg/uploader/uploader.go:86
↓ 2 callersFunctionEnsureInstallApplicationCRD
EnsureInstallApplicationCRD ensures the installation of the Application CRD in the current context's cluster.
gke-deploy/core/crd/crd.go:17
↓ 2 callersMethodEvalSymlinks
(path string)
gcs-fetcher/pkg/uploader/uploader.go:46
↓ 2 callersFunctionGetAccount
GetAccount gets the GCP account set during this execution.
gke-deploy/core/gcp/gcp.go:21
↓ 2 callersFunctionGetProject
GetAccount gets the GCP project set during this execution.
gke-deploy/core/gcp/gcp.go:12
↓ 2 callersFunctionIsReady
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 callersFunctionObjectNamespace
ObjectNamespace returns the namespace of an object.
gke-deploy/core/resource/resource.go:702
↓ 2 callersFunctionResolveDigest
ResolveDigest gets an image's corresponding digest.
gke-deploy/core/image/image.go:20
↓ 2 callersFunctionSaveAsConfigs
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 callersFunctionSetApplicationLinks
SetApplicationLinks sets a list of links to an Application object's spec.descriptor.links field.
gke-deploy/core/resource/application.go:86
↓ 2 callersMethodWrite
(b []byte)
gcs-fetcher/pkg/uploader/uploader.go:147
↓ 2 callersMethodWriteFile
(ctx context.Context, filename string, data []byte, perm os.FileMode)
gke-deploy/services/clients.go:26
↓ 2 callersFunctionaddCommentsToLines
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 callersFunctionconvertApplicationToMap
(app *applicationsv1beta1.Application)
gke-deploy/core/resource/application.go:106
↓ 2 callersFunctioncopy
(src, dest string, info os.FileInfo)
gke-deploy/testservices/gsutil.go:51
↓ 2 callersMethodcopyWithRetry
copyWithRetry is responsible for trying (and retrying) to call copyWithTimeout() with appropriate retry backoff.
gke-deploy/core/gcs/gcs.go:42
↓ 2 callersMethoddoWork
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 callersMethodensureFolders
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 callersMethodfetchFromTarGz
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 callersMethodfetchFromZip
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 callersFunctionjoin
(base, path string)
gke-deploy/cmd/common/common.go:116
↓ 2 callersFunctionlogit
(writer io.Writer, format string, a ...interface{})
gcs-fetcher/pkg/fetcher/fetcher.go:176
↓ 2 callersFunctionnewImageWithTag
(t *testing.T, image string)
gke-deploy/deployer/deployer_test.go:1390
↓ 2 callersFunctionnewObjectFromFile
(t *testing.T, filename string)
gke-deploy/core/cluster/cluster_test.go:253
↓ 2 callersFunctionparseResourcesFromFile
(ctx context.Context, filename string, objs Objects, oss services.OSService)
gke-deploy/core/resource/resource.go:548
↓ 2 callersMethodprocessJobs
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 callersFunctionsetObjectNamespace
(obj *Object, namespace string)
gke-deploy/core/resource/resource.go:710
↓ 2 callersFunctionsplitObjectAndGeneration
(fullObject string)
gcs-fetcher/pkg/common/common.go:74
↓ 2 callersMethodtimeout
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 callersFunctionunzip
(zipfile, dest string)
gcs-fetcher/pkg/fetcher/fetcher.go:764
↓ 1 callersFunctionAddNamespaceIfMissing
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 callersMethodApplyFromString
(ctx context.Context, configString, namespace string)
gke-deploy/services/clients.go:42
↓ 1 callersMethodContainerClustersGetCredentials
(ctx context.Context, clusterName, clusterLocation, clusterProject string)
gke-deploy/services/clients.go:34
↓ 1 callersMethodContainerClustersGetCredentialsGoClient
(ctx context.Context, clusterName, clusterLocation, clusterProject string)
gke-deploy/services/clients.go:35
↓ 1 callersFunctionCreateApplicationObject
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 callersFunctionCreateDeploymentObject
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 callersFunctionCreateHorizontalPodAutoscalerObject
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