run.halo.app.extension.ConfigMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
API of halo project, connecting by other projects.
The newest version!
package run.halo.app.extension;
import java.util.LinkedHashMap;
import java.util.Map;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
* ConfigMap holds configuration data to consume.
*
* @author guqing
* @since 2.0.0
*/
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@GVK(group = "", version = "v1alpha1", kind = ConfigMap.KIND, plural = "configmaps",
singular = "configmap")
public class ConfigMap extends AbstractExtension {
public static final String KIND = "ConfigMap";
private Map data;
public ConfigMap putDataItem(String key, String dataItem) {
if (this.data == null) {
this.data = new LinkedHashMap<>();
}
this.data.put(key, dataItem);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy