Home / Type/ DockerConnectionConfiguration Type — spring-boot Architecture

DockerConnectionConfiguration Type — spring-boot Architecture

Architecture documentation for the DockerConnectionConfiguration type/interface in DockerConnectionConfiguration.java from the spring-boot codebase.

Entity Profile

Source Code

buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/DockerConnectionConfiguration.java lines 29–64

public sealed interface DockerConnectionConfiguration {

	/**
	 * Connect to specific host.
	 *
	 * @param address the host address
	 * @param secure if connection is secure
	 * @param certificatePath a path to the certificate used for secure connections
	 */
	record Host(String address, boolean secure,
			@Nullable String certificatePath) implements DockerConnectionConfiguration {

		public Host(String address) {
			this(address, false, null);
		}

		public Host {
			Assert.hasLength(address, "'address' must not be empty");
		}

	}

	/**
	 * Connect using a specific context reference.
	 *
	 * @param context a reference to the Docker context
	 */
	record Context(String context) implements DockerConnectionConfiguration {

		public Context {
			Assert.hasLength(context, "'context' must not be empty");
		}

	}

}

Analyze Your Own Codebase

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

Try Supermodel Free