Home / Function/ push() — spring-boot Function Reference

push() — spring-boot Function Reference

Architecture documentation for the push() function in DockerApi.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  11fb1f04_d427_de18_b7e0_4b152f1bd995["push()"]
  d1757773_1e32_5f99_15ef_5bbc9a9d8dd2["buildUrl()"]
  11fb1f04_d427_de18_b7e0_4b152f1bd995 -->|calls| d1757773_1e32_5f99_15ef_5bbc9a9d8dd2
  fe17330d_1d3c_c6fb_1bd5_6cb12e48b7be["http()"]
  11fb1f04_d427_de18_b7e0_4b152f1bd995 -->|calls| fe17330d_1d3c_c6fb_1bd5_6cb12e48b7be
  0ec3fa26_b0d2_1148_a290_00f44d68051c["jsonStream()"]
  11fb1f04_d427_de18_b7e0_4b152f1bd995 -->|calls| 0ec3fa26_b0d2_1148_a290_00f44d68051c
  aedd9701_c439_405f_f47e_c53ca8d2db00["get()"]
  11fb1f04_d427_de18_b7e0_4b152f1bd995 -->|calls| aedd9701_c439_405f_f47e_c53ca8d2db00
  a1ee3ef2_1dd0_7394_2e65_dc54bedc20dc["onUpdate()"]
  11fb1f04_d427_de18_b7e0_4b152f1bd995 -->|calls| a1ee3ef2_1dd0_7394_2e65_dc54bedc20dc
  style 11fb1f04_d427_de18_b7e0_4b152f1bd995 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/DockerApi.java lines 264–282

		public void push(ImageReference reference, UpdateListener<PushImageUpdateEvent> listener,
				@Nullable String registryAuth) throws IOException {
			Assert.notNull(reference, "'reference' must not be null");
			Assert.notNull(listener, "'listener' must not be null");
			URI pushUri = buildUrl("/images/" + reference + "/push");
			ErrorCaptureUpdateListener errorListener = new ErrorCaptureUpdateListener();
			listener.onStart();
			try {
				try (Response response = http().post(pushUri, registryAuth)) {
					jsonStream().get(response.getContent(), PushImageUpdateEvent.class, (event) -> {
						errorListener.onUpdate(event);
						listener.onUpdate(event);
					});
				}
			}
			finally {
				listener.onFinish();
			}
		}

Subdomains

Frequently Asked Questions

What does push() do?
push() is a function in the spring-boot codebase.
What does push() call?
push() calls 5 function(s): buildUrl, get, http, jsonStream, onUpdate.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free