You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui/packages/consul-ui/mock-api/v1/partitions

31 lines
586 B

{
"Partitions": [
{
"Name": "default",
"Description": "Builtin Default Partition"
}
${range(
env(
'CONSUL_PARTITION_COUNT',
Math.floor(
(
Math.random() * env('CONSUL_PARTITION_MAX', 10)
) + parseInt(env('CONSUL_PARTITION_MIN', 1))
)
) - 1
).map(i => `
${i === 0 ? `
,
` : ``}
{
"Name": "${fake.hacker.noun()}-partition-${i}",
${fake.random.boolean() ? `
"Description": "${fake.lorem.sentence()}",
` : ``}
"CreateIndex": 12,
"ModifyIndex": 16
}
`)}
]
}