mirror of
https://github.com/kopia/kopia.git
synced 2026-03-08 00:08:26 -05:00
* repo: added 'enable password change' flag (defaults to true for new repositories), which prevents embedding replicas of kopia.repository in pack blobs * cli: added 'repo change-password' which can change the password of a connected repository * repo: nit - renamed variables and functions dealing with key derivation * repo: fixed cache validation HMAC secret to use stored HMAC secret instead of password-derived one * cli: added test for repo change-password * repo: negative cases for attempting to change password in an old repository * Update cli/command_repository_change_password.go Co-authored-by: Julio Lopez <julio+gh@kasten.io> Co-authored-by: Julio Lopez <julio+gh@kasten.io>
28 lines
863 B
Go
28 lines
863 B
Go
package cli
|
|
|
|
type commandRepository struct {
|
|
connect commandRepositoryConnect
|
|
create commandRepositoryCreate
|
|
disconnect commandRepositoryDisconnect
|
|
repair commandRepositoryRepair
|
|
setClient commandRepositorySetClient
|
|
setParameters commandRepositorySetParameters
|
|
changePassword commandRepositoryChangePassword
|
|
status commandRepositoryStatus
|
|
syncTo commandRepositorySyncTo
|
|
}
|
|
|
|
func (c *commandRepository) setup(svc advancedAppServices, parent commandParent) {
|
|
cmd := parent.Command("repository", "Commands to manipulate repository.").Alias("repo")
|
|
|
|
c.connect.setup(svc, cmd)
|
|
c.create.setup(svc, cmd)
|
|
c.disconnect.setup(svc, cmd)
|
|
c.repair.setup(svc, cmd)
|
|
c.setClient.setup(svc, cmd)
|
|
c.setParameters.setup(svc, cmd)
|
|
c.status.setup(svc, cmd)
|
|
c.syncTo.setup(svc, cmd)
|
|
c.changePassword.setup(svc, cmd)
|
|
}
|