38 lines
827 B
Java
38 lines
827 B
Java
package com.xuxd.kafka.console.service;
|
|
|
|
import com.xuxd.kafka.console.beans.AclEntry;
|
|
import com.xuxd.kafka.console.beans.ResponseData;
|
|
import java.util.Set;
|
|
|
|
/**
|
|
* kafka-console-ui.
|
|
*
|
|
* @author xuxd
|
|
* @date 2021-08-28 11:44:06
|
|
**/
|
|
public interface AclService {
|
|
|
|
ResponseData<Set<String>> getUserList();
|
|
|
|
ResponseData addOrUpdateUser(String name, String pass);
|
|
|
|
ResponseData deleteUser(String name);
|
|
|
|
ResponseData getAclList();
|
|
|
|
ResponseData deleteAcl(AclEntry entry);
|
|
|
|
ResponseData addAcl(AclEntry entry);
|
|
|
|
ResponseData addProducerAcl(AclEntry entry);
|
|
|
|
ResponseData addConsumerAcl(AclEntry topic, AclEntry group);
|
|
|
|
ResponseData deleteProducerAcl(AclEntry entry);
|
|
|
|
ResponseData deleteConsumerAcl(AclEntry topic, AclEntry group);
|
|
|
|
ResponseData deleteUserAcl(AclEntry entry);
|
|
|
|
}
|