package com.cameleer.server.core.runtime;

import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;

public interface EnvironmentRepository {
    List<Environment> findAll();
    long count();
    Optional<Environment> findById(UUID id);
    Optional<Environment> findBySlug(String slug);
    UUID create(String slug, String displayName, boolean production);
    void update(UUID id, String displayName, boolean production, boolean enabled, String color);
    void updateDefaultContainerConfig(UUID id, Map<String, Object> defaultContainerConfig);
    void updateJarRetentionCount(UUID id, Integer jarRetentionCount);
    void delete(UUID id);
}
