consul/ui/packages/consul-ui/app/search/predicates/nspace.js

13 lines
364 B
JavaScript
Raw Normal View History

export default {
Name: (item, value) => item.Name,
Description: (item, value) => item.Description,
Role: (item, value) => {
const acls = item.ACLs || {};
return (acls.RoleDefaults || []).map(item => item.Name);
},
Policy: (item, value) => {
const acls = item.ACLs || {};
return (acls.PolicyDefaults || []).map(item => item.Name);
},
};