2019-12-17 18:47:37 +00:00
|
|
|
import RepositoryService from 'consul-ui/services/repository';
|
2020-02-21 16:48:54 +00:00
|
|
|
import { PRIMARY_KEY, SLUG_KEY } from 'consul-ui/models/nspace';
|
2019-12-17 18:47:37 +00:00
|
|
|
|
|
|
|
const modelName = 'nspace';
|
|
|
|
const DEFAULT_NSPACE = 'default';
|
2021-05-26 16:43:46 +00:00
|
|
|
export default class NspaceDisabledService extends RepositoryService {
|
2020-11-09 09:25:35 +00:00
|
|
|
getPrimaryKey() {
|
2020-02-21 16:48:54 +00:00
|
|
|
return PRIMARY_KEY;
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
getSlugKey() {
|
2020-02-21 16:48:54 +00:00
|
|
|
return SLUG_KEY;
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
getModelName() {
|
2019-12-17 18:47:37 +00:00
|
|
|
return modelName;
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
findAll(configuration = {}) {
|
2019-12-17 18:47:37 +00:00
|
|
|
return Promise.resolve([]);
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
getActive() {
|
2019-12-17 18:47:37 +00:00
|
|
|
return {
|
|
|
|
Name: DEFAULT_NSPACE,
|
|
|
|
};
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
authorize(dc, nspace) {
|
2019-12-17 18:47:37 +00:00
|
|
|
return Promise.resolve([]);
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
}
|