org.testcontainers.images.builder.dockerfile.traits.LabelStatementTrait Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testcontainers Show documentation
Show all versions of testcontainers Show documentation
Isolated container management for Java code testing
package org.testcontainers.images.builder.dockerfile.traits;
import org.testcontainers.images.builder.dockerfile.statement.KeyValuesStatement;
import java.util.Collections;
import java.util.Map;
public interface LabelStatementTrait & DockerfileBuilderTrait> {
default SELF label(String key, String value) {
return label(Collections.singletonMap(key, value));
}
default SELF label(Map entries) {
return ((SELF) this).withStatement(new KeyValuesStatement("LABEL", entries));
}
}