Home / Class/ ImageArchiveIndex Class — spring-boot Architecture

ImageArchiveIndex Class — spring-boot Architecture

Architecture documentation for the ImageArchiveIndex class in ImageArchiveIndex.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/ImageArchiveIndex.java lines 38–74

public class ImageArchiveIndex extends MappedObject {

	private final Integer schemaVersion;

	private final List<BlobReference> manifests;

	protected ImageArchiveIndex(JsonNode node) {
		super(node, MethodHandles.lookup());
		this.schemaVersion = extractSchemaVersion();
		this.manifests = childrenAt("/manifests", BlobReference::new);
	}

	private Integer extractSchemaVersion() {
		Integer result = valueAt("/schemaVersion", Integer.class);
		Assert.state(result != null, "'result' must not be null");
		return result;
	}

	public Integer getSchemaVersion() {
		return this.schemaVersion;
	}

	public List<BlobReference> getManifests() {
		return this.manifests;
	}

	/**
	 * Create an {@link ImageArchiveIndex} from the provided JSON input stream.
	 * @param content the JSON input stream
	 * @return a new {@link ImageArchiveIndex} instance
	 * @throws IOException on IO error
	 */
	public static ImageArchiveIndex of(InputStream content) throws IOException {
		return of(content, ImageArchiveIndex::new);
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free