exportLayersExportsLayerTarsWithPlatformWhenSupportedVersion() — spring-boot Function Reference
Architecture documentation for the exportLayersExportsLayerTarsWithPlatformWhenSupportedVersion() function in DockerApiTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD d26c38cd_8c97_e2b5_3f42_ec94b08c62e3["exportLayersExportsLayerTarsWithPlatformWhenSupportedVersion()"] c8868b7f_8c53_fa0f_029b_adb439a84967["setVersion()"] d26c38cd_8c97_e2b5_3f42_ec94b08c62e3 -->|calls| c8868b7f_8c53_fa0f_029b_adb439a84967 88e4c755_21cd_03d2_7b78_c0a678363843["responseOf()"] d26c38cd_8c97_e2b5_3f42_ec94b08c62e3 -->|calls| 88e4c755_21cd_03d2_7b78_c0a678363843 b3171812_ab1f_87c4_a83a_2a91e929e461["getName()"] d26c38cd_8c97_e2b5_3f42_ec94b08c62e3 -->|calls| b3171812_ab1f_87c4_a83a_2a91e929e461 c11580dd_aefa_2785_5004_3738b7d99bd8["writeTo()"] d26c38cd_8c97_e2b5_3f42_ec94b08c62e3 -->|calls| c11580dd_aefa_2785_5004_3738b7d99bd8 style d26c38cd_8c97_e2b5_3f42_ec94b08c62e3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/DockerApiTests.java lines 504–532
@Test
void exportLayersExportsLayerTarsWithPlatformWhenSupportedVersion() throws Exception {
setVersion("1.48");
ImageReference reference = ImageReference.of("docker.io/paketobuildpacks/builder:base");
URI exportUri = new URI("/v1.48/images/docker.io/paketobuildpacks/builder:base/get?platform="
+ ENCODED_LINUX_ARM64_PLATFORM_JSON);
given(DockerApiTests.this.http.get(exportUri)).willReturn(responseOf("export.tar"));
MultiValueMap<String, String> contents = new LinkedMultiValueMap<>();
this.api.exportLayers(reference, LINUX_ARM64_PLATFORM, (name, archive) -> {
ByteArrayOutputStream out = new ByteArrayOutputStream();
archive.writeTo(out);
try (TarArchiveInputStream in = new TarArchiveInputStream(
new ByteArrayInputStream(out.toByteArray()))) {
TarArchiveEntry entry = in.getNextEntry();
while (entry != null) {
contents.add(name, entry.getName());
entry = in.getNextEntry();
}
}
});
assertThat(contents).hasSize(3)
.containsKeys("70bb7a3115f3d5c01099852112c7e05bf593789e510468edb06b6a9a11fa3b73/layer.tar",
"74a9a50ece13c025cf10e9110d9ddc86c995079c34e2a22a28d1a3d523222c6e/layer.tar",
"a69532b5b92bb891fbd9fa1a6b3af9087ea7050255f59ba61a796f8555ecd783/layer.tar");
assertThat(contents.get("70bb7a3115f3d5c01099852112c7e05bf593789e510468edb06b6a9a11fa3b73/layer.tar"))
.containsExactly("/cnb/order.toml");
assertThat(contents.get("74a9a50ece13c025cf10e9110d9ddc86c995079c34e2a22a28d1a3d523222c6e/layer.tar"))
.containsExactly("/cnb/stack.toml");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does exportLayersExportsLayerTarsWithPlatformWhenSupportedVersion() do?
exportLayersExportsLayerTarsWithPlatformWhenSupportedVersion() is a function in the spring-boot codebase.
What does exportLayersExportsLayerTarsWithPlatformWhenSupportedVersion() call?
exportLayersExportsLayerTarsWithPlatformWhenSupportedVersion() calls 4 function(s): getName, responseOf, setVersion, writeTo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free