2020-12-02 09:16:55 +00:00
|
|
|
export default {
|
2020-12-18 10:38:15 +00:00
|
|
|
Name: item => item.Name,
|
|
|
|
Tags: item => item.Service.Tags || [],
|
|
|
|
ID: (item, value) => item.Service.ID || '',
|
|
|
|
Address: item => item.Address || '',
|
|
|
|
Port: item => (item.Service.Port || '').toString(),
|
|
|
|
['Service.Meta']: item =>
|
|
|
|
Object.entries(item.Service.Meta || {}).reduce((prev, entry) => prev.concat(entry), []),
|
|
|
|
['Node.Meta']: item =>
|
|
|
|
Object.entries(item.Node.Meta || {}).reduce((prev, entry) => prev.concat(entry), []),
|
2020-12-02 09:16:55 +00:00
|
|
|
};
|