2020-12-01 15:45:09 +00:00
|
|
|
export default {
|
2020-12-18 10:38:15 +00:00
|
|
|
Name: item => item.Name,
|
|
|
|
Tags: item => item.Service.Tags || [],
|
2021-05-04 16:25:57 +00:00
|
|
|
ID: item => item.Service.ID || '',
|
2020-12-18 10:38:15 +00:00
|
|
|
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-01 15:45:09 +00:00
|
|
|
};
|