MCPcopy Create free account

hub / github.com/GoogleContainerTools/jib / functions

Functions4,110 in github.com/GoogleContainerTools/jib

↓ 2 callersMethodsetEntrypoint
Sets the container entrypoint. This is the beginning of the command that is run when the container starts. {@link #setCmd} sets additional tokens. {@c
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:306
↓ 2 callersMethodsetEnvironment
Sets the container environment. These environment variables are available to the program launched by the container entrypoint command. This replaces a
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:147
↓ 2 callersMethodsetExcludes
Sets excludes. {@code excludes} can be any suitable object describing file paths convertible by {@link Project#files} (such as {@link File}, {@code Li
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/skaffold/SkaffoldSyncParameters.java:55
↓ 2 callersMethodsetExposedPorts
Sets the ports to expose from the container. Ports exposed will allow ingress traffic. This replaces any previously-set exposed ports. Note that these
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:238
↓ 2 callersMethodsetFormat
Sets the format to build the container image as. Use {@link ImageFormat#Docker} for Docker V2.2 or {@link ImageFormat#OCI} for OCI. @param format the
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:129
↓ 2 callersMethodsetFormat
(ImageFormat format)
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java:193
↓ 2 callersMethodsetHelper
(@Nullable String helper)
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/JibPluginConfiguration.java:181
↓ 2 callersMethodsetImage
(@Nullable String image)
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/SkaffoldInitOutput.java:70
↓ 2 callersMethodsetInferredCredential
Sets the inferred {@link Credential} to use in the default credential retrievers. @param inferredCredential the inferred credential @param credential
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/DefaultCredentialRetrievers.java:130
↓ 2 callersMethodsetLabels
Sets the labels for the container. This replaces any previously-set labels. Note that these values are added to the base image values. <p>This is sim
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:204
↓ 2 callersMethodsetLayers
(List<? extends LayerObject> layer)
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:346
↓ 2 callersMethodsetMediaType
(String mediaType)
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/V22ManifestListTemplate.java:156
↓ 2 callersMethodsetName
(String name)
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PreparedLayer.java:47
↓ 2 callersMethodsetOs
(String os)
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/PlatformParameters.java:57
↓ 2 callersMethodsetProgramArguments
Sets the container entrypoint program arguments. These are additional tokens added to the end of the entrypoint command. <p>This is similar to <a hre
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java:317
↓ 2 callersMethodsetProject
(@Nullable String project)
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/SkaffoldInitOutput.java:74
↓ 2 callersMethodsetProperties
(Map<String, String> properties)
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ExtensionParameters.java:55
↓ 2 callersMethodsetRegistryMirrors
Sets the registry mirrors. @param registryMirrors registry mirrors @return this
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/BuildContext.java:282
↓ 2 callersMethodsetResourcesDestination
Sets the destination directory of the resources added to the container (relative to the app root). @param resourcesDestination the path to the resour
jib-core/src/main/java/com/google/cloud/tools/jib/api/JavaContainerBuilder.java:260
↓ 2 callersMethodsetTarPath
Sets the path for tarball base images. @param tarPath the path @return this
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/ImageConfiguration.java:73
↓ 2 callersMethodsetToMap
Turns a set into a sorted map where each element of the set is mapped to an entry composed by the key generated with {@code Function<E, String> elemen
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/ImageToJsonTranslator.java:105
↓ 2 callersMethodsetUpAuthServerAndRegistry
Sets up an auth server and a registry. The auth server can return a bearer token up to {@code maxAuthTokens} times. The registry will initially return
jib-core/src/test/java/com/google/cloud/tools/jib/registry/RegistryClientTest.java:390
↓ 2 callersMethodsetUpMocks
( HttpTransport mockHttpTransport, HttpRequestFactory mockHttpRequestFactory, HttpRequest mo
jib-core/src/test/java/com/google/cloud/tools/jib/http/FailoverHttpClientTest.java:452
↓ 2 callersMethodsetUpWithStrings
Creates a TarStreamBuilder using Strings.
jib-core/src/test/java/com/google/cloud/tools/jib/tar/TarStreamBuilderTest.java:177
↓ 2 callersMethodsetUpWithStringsAndTarEntries
Creates a TarStreamBuilder using Strings and TarArchiveEntries.
jib-core/src/test/java/com/google/cloud/tools/jib/tar/TarStreamBuilderTest.java:189
↓ 2 callersMethodsetUpWithTarEntries
Creates a TarStreamBuilder using TarArchiveEntries.
jib-core/src/test/java/com/google/cloud/tools/jib/tar/TarStreamBuilderTest.java:164
↓ 2 callersMethodsetUpWorkingRegistryClientFactoryWithV22ManifestList
()
jib-core/src/test/java/com/google/cloud/tools/jib/builder/steps/PullBaseImageStepTest.java:696
↓ 2 callersMethodsetUpWorkingRegistryClientFactoryWithV22ManifestTemplate
()
jib-core/src/test/java/com/google/cloud/tools/jib/builder/steps/PullBaseImageStepTest.java:674
↓ 2 callersMethodsetUser
Sets the user and group to run the container as. {@code user} can be a username or UID along with an optional groupname or GID. <p>The following are
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java:564
↓ 2 callersMethodsetUser
Sets the user and group to run the container as. {@code user} can be a username or UID along with an optional groupname or GID. {@code null} signals t
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:275
↓ 2 callersMethodsetUser
(String user)
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ContainerParameters.java:266
↓ 2 callersMethodsetUserAgent
Sets the value of {@code User-Agent} in headers for registry requests. @param userAgent user agent string @return this
jib-core/src/main/java/com/google/cloud/tools/jib/registry/RegistryClient.java:95
↓ 2 callersMethodsetVolumes
Sets the directories that may hold externally mounted volumes. Note that these values are added to the base image values. <p>This is similar to <a hr
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:176
↓ 2 callersMethodsetWorkingDirectory
Sets the working directory in the container. @param workingDirectory the working directory @return this
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java:576
↓ 2 callersMethodsetWorkingDirectory
Sets the working directory in the container. {@code null} signals to use the base image value. @param workingDirectory the working directory @return
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java:287
↓ 2 callersMethodsetupCachedMetadataV21
(Path cacheDirectory)
jib-core/src/test/java/com/google/cloud/tools/jib/cache/CacheStorageReaderTest.java:62
↓ 2 callersMethodsizeOf
Gets the size of {@code blob}. @param blob the {@link Blob} @return the size (in bytes) of {@code blob} @throws IOException if an I/O exception occur
jib-core/src/test/java/com/google/cloud/tools/jib/cache/CacheTest.java:94
↓ 2 callersMethodstop
Stops the registry.
jib-core/src/integration-test/java/com/google/cloud/tools/jib/registry/LocalRegistry.java:115
↓ 2 callersMethodsubTimer
Creates a new {@link TimerEventDispatcher} with its parent timer as this. @param description a new description @return the new {@link TimerEventDispa
jib-core/src/main/java/com/google/cloud/tools/jib/builder/TimerEventDispatcher.java:66
↓ 2 callersMethodtestGetManifest
Tests translation of image to {@link BuildableManifestTemplate}.
jib-core/src/test/java/com/google/cloud/tools/jib/image/json/ImageToJsonTranslatorTest.java:175
↓ 2 callersMethodtestToImage_buildable
( String jsonFilename, Class<T> manifestTemplateClass)
jib-core/src/test/java/com/google/cloud/tools/jib/image/json/JsonToImageTranslatorTest.java:191
↓ 2 callersMethodtoBuildContext
( JibContainerBuilder jibContainerBuilder, Containerizer containerizer)
jib-plugins-common/src/test/java/com/google/cloud/tools/jib/api/JibContainerBuilderTestHelper.java:24
↓ 2 callersMethodtoLayers
Convert a layer spec to a list of layer objects. <p>Does not handle missing directories for files added via this method. We can either prefill direct
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/Layers.java:56
↓ 2 callersMethodtoSortedJsonTemplates
Converts a list of {@link FileEntry}s into a list of {@link LayerEntryTemplate}. The list is sorted by source file first, then extraction path (see {@
jib-core/src/main/java/com/google/cloud/tools/jib/cache/LayerEntriesSelector.java:148
↓ 2 callersMethodtoString
Return the HTTP {@link Authorization} header value.
jib-core/src/main/java/com/google/cloud/tools/jib/http/Authorization.java:72
↓ 2 callersMethodtoString
Stringifies the {@link ImageReference}. @return the image reference in Docker-readable format (inverse of {@link #parse})
jib-core/src/main/java/com/google/cloud/tools/jib/api/ImageReference.java:371
↓ 2 callersMethodtoString
Returns the string form of the absolute Unix-style path. @return the string form
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/AbsoluteUnixPath.java:133
↓ 2 callersMethodtruncateToMaxWidth
Makes sure each line of text in {@code lines} is at most {@link #MAX_FOOTER_WIDTH} characters long. If a line of text exceeds {@link #MAX_FOOTER_WIDTH
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/logging/AnsiLoggerWithFooter.java:63
↓ 2 callersMethodupdateProperties
()
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/FilePropertiesStack.java:71
↓ 2 callersMethodverifyBuildAndRun
(TestProject project, String label, String gradleBuildFile)
jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/WarProjectIntegrationTest.java:55
↓ 2 callersMethodverifyParent
Verifies that the {@code timerEvent}'s timer has parent {@code expectedParentTimer}. @param timerEvent the {@link TimerEvent} to verify @param expect
jib-core/src/test/java/com/google/cloud/tools/jib/builder/TimerEventDispatcherTest.java:105
↓ 2 callersMethodverifyStartState
Verifies that the {@code timerEvent}'s state is {@link State#START}. @param timerEvent the {@link TimerEvent} to verify
jib-core/src/test/java/com/google/cloud/tools/jib/builder/TimerEventDispatcherTest.java:115
↓ 2 callersMethodverifyStateFirstLap
Verifies that the {@code timerEvent}'s state is {@code expectedState} and that this is the first lap for the timer. @param timerEvent the {@link Time
jib-core/src/test/java/com/google/cloud/tools/jib/builder/TimerEventDispatcherTest.java:128
↓ 2 callersMethodverifyTarArchive
Helper method to verify that the files were archived correctly by reading {@code tarArchiveInputStream}.
jib-core/src/test/java/com/google/cloud/tools/jib/tar/TarStreamBuilderTest.java:232
↓ 2 callersMethodverifyThrowsRegistryUnauthorizedException
Verifies that a response with {@code httpStatusCode} throws {@link RegistryUnauthorizedException}.
jib-core/src/test/java/com/google/cloud/tools/jib/registry/RegistryEndpointCallerTest.java:456
↓ 2 callersMethodverifyUnzip
(Path destination)
jib-plugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/ZipUtilTest.java:132
↓ 2 callersMethodverifyZipSlipSafe
(Path archive)
jib-plugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/ZipUtilTest.java:148
↓ 2 callersMethodvolumesSetToMap
Converts a set of {@link AbsoluteUnixPath}s to the corresponding container config format for volumes (e.g. {@code AbsoluteUnixPath().get("/var/log/my-
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/ImageToJsonTranslator.java:64
↓ 2 callersMethodwriteCompressedLayer
Saves a cache entry with a compressed layer {@link Blob}. Use {@link #writeUncompressedLayer(Blob, ImmutableList)} to save a cache entry with an uncom
jib-core/src/main/java/com/google/cloud/tools/jib/cache/Cache.java:130
↓ 2 callersMethodwriteJsonTemplate
Writes a json template to the destination path by writing to a temporary file then moving the file. @param jsonTemplate the json template @param dest
jib-core/src/main/java/com/google/cloud/tools/jib/cache/CacheStorageWriter.java:181
↓ 2 callersMethodwriteLocalConfig
Writes a container configuration to {@code (cache directory)/local/config/(image id)}. An image ID is a SHA hash of a container configuration JSON. Th
jib-core/src/main/java/com/google/cloud/tools/jib/cache/Cache.java:176
↓ 2 callersMethodwriteTo
Writes image tar bar in configured {@link Image#getImageFormat()} of OCI or Docker to output stream. @param out the target output stream @throws IOEx
jib-core/src/main/java/com/google/cloud/tools/jib/image/ImageTarball.java:80
↓ 2 callersMethodwriteTo
(OutputStream outputStream)
jib-core/src/main/java/com/google/cloud/tools/jib/http/BlobHttpContent.java:65
↓ 2 callersMethodwriteTo
(OutputStream outputStream)
jib-core/src/main/java/com/google/cloud/tools/jib/hash/WritableContents.java:31
↓ 2 callersMethodwriteUncompressed
Writes an uncompressed {@link Blob} out to the cache directory. <p>Cache is written out in the form: <ul> <li>The {@code uncompressedLayerBlob} is
jib-core/src/main/java/com/google/cloud/tools/jib/cache/CacheStorageWriter.java:268
↓ 1 callersMethodaddExposedPort
Adds a port to expose from the container. @param port the port to expose @return this @see #setExposedPorts(Set)
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java:445
↓ 1 callersMethodaddGenerated
Add a layer entry as a "generated" sync entry. Generated sync entries require rebuilds before files can be sync'd to a running container. @param laye
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/SkaffoldSyncMapTemplate.java:107
↓ 1 callersMethodaddSettingsFile
Adds the settings.gradle file for a project. <p>Uses reflection to call getSettingsFile() for compatibility with both Gradle 6 and 9 (getSettingsFile
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/skaffold/FilesTaskV2.java:159
↓ 1 callersMethodapplyConfiguration
( Containerizer containerizer, CommonCliOptions commonCliOptions, CacheDirectories cacheDire
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Containerizers.java:93
↓ 1 callersMethodapplyHandlers
(Containerizer containerizer, ConsoleLogger consoleLogger)
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/Containerizers.java:116
↓ 1 callersMethodassertDockerInspect
Asserts that the test project has the required exposed ports, labels and volumes. @param imageReference the image to test @throws IOException if the
jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/DefaultTargetProjectIntegrationTest.java:42
↓ 1 callersMethodassertMessageCorrect
(String name)
jib-core/src/test/java/com/google/cloud/tools/jib/event/EventHandlersTest.java:42
↓ 1 callersMethodbuild
Builds and returns the layer {@link Blob}. @return the new layer @throws IOException if an I/O error occurs
jib-core/src/main/java/com/google/cloud/tools/jib/image/ReproducibleLayerBuilder.java:160
↓ 1 callersMethodbuild
Builds a new {@link BuildContext} using the parameters passed into the builder. @return the corresponding build context @throws CacheDirectoryCreatio
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/BuildContext.java:293
↓ 1 callersMethodbuild
()
jib-core/src/main/java/com/google/cloud/tools/jib/event/EventHandlers.java:52
↓ 1 callersMethodbuildAndRunAdditionalTag
( Path projectRoot, String imageReference, String additionalTag)
jib-maven-plugin/src/integration-test/java/com/google/cloud/tools/jib/maven/BuildImageMojoIntegrationTest.java:198
↓ 1 callersMethodbuildAndRunAdditionalTag
( TestProject testProject, String imageReference, String additionalTag, String expectedOutput)
jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/JibRunHelper.java:90
↓ 1 callersMethodbuildAndRunWebApp
(String label, String gradleBuildFile)
jib-gradle-plugin/src/integration-test/java/com/google/cloud/tools/jib/gradle/SpringBootProjectIntegrationTest.java:65
↓ 1 callersMethodbuildEventHandlers
()
jib-core/src/main/java/com/google/cloud/tools/jib/api/Containerizer.java:372
↓ 1 callersMethodbuildImage
( Image baseImage, List<Future<PreparedLayer>> baseLayers, ProgressEventDispatcher.Factory p
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/StepsRunner.java:443
↓ 1 callersMethodbuildLogMessage
Builds the log message for a {@link TimerEvent}, based on its state and duration. @param timerEvent the {@link TimerEvent} @return the built log mess
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/TimerEventHandler.java:48
↓ 1 callersMethodcapitalizeFirstLetter
(String string)
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java:71
↓ 1 callersMethodcheck
(DescriptorDigest digest)
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/ObtainBaseImageLayerStep.java:47
↓ 1 callersMethodcheckGradleVersion
()
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/JibPlugin.java:56
↓ 1 callersMethodcheckJibVersion
Check the Jib version matches the required version (if specified).
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/JibPlugin.java:70
↓ 1 callersMethodclose
Releases the lock file.
jib-core/src/main/java/com/google/cloud/tools/jib/filesystem/LockFile.java:79
↓ 1 callersMethodclose
()
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/ThrottledProgressEventDispatcherWrapper.java:52
↓ 1 callersMethodcollectExtraDirectories
(MavenProject project)
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/skaffold/FilesMojoV2.java:227
↓ 1 callersMethodcollectWatchParameters
(MavenProject project)
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/skaffold/FilesMojoV2.java:268
↓ 1 callersMethodcompressAndCacheTarLayer
( Cache cache, DescriptorDigest diffId, Path layerFile, boolean layersAreCompressed,
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/LocalBaseImageSteps.java:279
↓ 1 callersMethodcomputeEntrypoint
Computes the image entrypoint. If {@link ContainerConfiguration#getEntrypoint()} is null, the entrypoint is inherited from the base image. Otherwise {
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/BuildImageStep.java:164
↓ 1 callersMethodcomputeEntrypoint
( CommonContainerConfigCliOptions commonContainerConfigCliOptions)
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/war/WarFiles.java:75
↓ 1 callersMethodcomputeEntrypoint
(List<String> jvmFlags)
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/war/StandardWarExplodedProcessor.java:120
↓ 1 callersMethodcomputeProgramArguments
Computes the image program arguments. If {@link ContainerConfiguration#getEntrypoint()} and {@link ContainerConfiguration#getProgramArguments()} are n
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/BuildImageStep.java:198
↓ 1 callersMethodcomputeReturn
(ManifestAndDigest<T> manifestAndDigest)
jib-core/src/main/java/com/google/cloud/tools/jib/registry/AbstractManifestPuller.java:106
↓ 1 callersMethodconfigureContainerizer
Configures a {@link Containerizer} with values pulled from project properties/raw build configuration. @param containerizer the {@link Containerizer}
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/PluginConfigurationProcessor.java:1041
↓ 1 callersMethodconfigureEventHandlers
(Containerizer containerizer)
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/ProjectProperties.java:45
↓ 1 callersMethodconvertPermissionsList
Converts a list of {@link PermissionConfiguration} to an equivalent {@code String->FilePermission} map. @param permissionList the list to convert @re
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/MojoCommon.java:136
↓ 1 callersMethodconvertToExtraDirectoryParametersList
Helper method to convert {@code Object} to {@code List<ExtraDirectoryParameters>} in {@code setFrom}.
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/ExtraDirectoriesParameters.java:116
↓ 1 callersMethodcopyProject
()
jib-maven-plugin/src/test/java/com/google/cloud/tools/jib/maven/TestProject.java:66
← previousnext →1,301–1,400 of 4,110, ranked by callers