Files
kopia/cli/command_index.go
Jarek Kowalski 62ad437bb6 Implemented epoch-based index manager (#1174)
* epoch: misc fixes and logging

* blob: misc helpers

* cli: removed useless 'repository upgrade', replaced by 'repository set-parameters'

* content: implemented indexBlobManagerV1 which uses epoch manager

* cli: commands to manipulate repository epoch parameters

* cli: commands to examine epoch-based indexes

* content: added test suite that uses epoch-based index manager

* content: fixed a ton of test data races caused by sharing blobtesting.DataMap

* cli: additional tests and validation for 'repository set-params'

* testing: replaced the use of suite with our own, since suite is not parallelizable
2021-07-06 21:38:08 -07:00

21 lines
473 B
Go

package cli
type commandIndex struct {
epoch commandIndexEpoch
inspect commandIndexInspect
list commandIndexList
optimize commandIndexOptimize
recover commandIndexRecover
}
func (c *commandIndex) setup(svc appServices, parent commandParent) {
cmd := parent.Command("index", "Commands to manipulate content index.").Hidden()
c.epoch.setup(svc, cmd)
c.inspect.setup(svc, cmd)
c.list.setup(svc, cmd)
c.optimize.setup(svc, cmd)
c.recover.setup(svc, cmd)
}