mirror of
https://github.com/kopia/kopia.git
synced 2025-12-23 22:57:50 -05:00
* 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
21 lines
473 B
Go
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)
|
|
}
|