package net.siegeln.cameleer.saas.provisioning;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DisabledTenantProvisioner implements TenantProvisioner {
    private static final Logger log = LoggerFactory.getLogger(DisabledTenantProvisioner.class);

    @Override public boolean isAvailable() { return false; }
    @Override public ProvisionResult provision(TenantProvisionRequest request) {
        log.warn("Provisioning disabled — no Docker socket or K8s detected");
        return ProvisionResult.fail("Provisioning not available");
    }
    @Override public void start(String slug) { log.warn("Cannot start: provisioning disabled"); }
    @Override public void stop(String slug) { log.warn("Cannot stop: provisioning disabled"); }
    @Override public void remove(String slug) { log.warn("Cannot remove: provisioning disabled"); }
    @Override public ServerStatus getStatus(String slug) { return ServerStatus.notFound(); }
    @Override public String getServerEndpoint(String slug) { return null; }
}
