All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testcontainers.images.builder.dockerfile.traits.LabelStatementTrait Maven / Gradle / Ivy

There is a newer version: 1.20.1
Show newest version
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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy