mirror of
https://github.com/restic/restic.git
synced 2025-12-12 03:11:56 +00:00
Rename 'Repository' -> Repo
This commit is contained in:
@@ -21,7 +21,7 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
func listKeys(s *repo.Repository) error {
|
||||
func listKeys(s *repo.Repo) error {
|
||||
tab := NewTable()
|
||||
tab.Header = fmt.Sprintf(" %-10s %-10s %-10s %s", "ID", "User", "Host", "Created")
|
||||
tab.RowFormat = "%s%-10s %-10s %-10s %s"
|
||||
@@ -56,7 +56,7 @@ func listKeys(s *repo.Repository) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func addKey(s *repo.Repository) error {
|
||||
func addKey(s *repo.Repo) error {
|
||||
pw := readPassword("RESTIC_NEWPASSWORD", "enter password for new key: ")
|
||||
pw2 := readPassword("RESTIC_NEWPASSWORD", "enter password again: ")
|
||||
|
||||
@@ -74,7 +74,7 @@ func addKey(s *repo.Repository) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func deleteKey(repo *repo.Repository, name string) error {
|
||||
func deleteKey(repo *repo.Repo, name string) error {
|
||||
if name == repo.KeyName() {
|
||||
return errors.New("refusing to remove key currently used to access repository")
|
||||
}
|
||||
@@ -88,7 +88,7 @@ func deleteKey(repo *repo.Repository, name string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func changePassword(s *repo.Repository) error {
|
||||
func changePassword(s *repo.Repo) error {
|
||||
pw := readPassword("RESTIC_NEWPASSWORD", "enter password for new key: ")
|
||||
pw2 := readPassword("RESTIC_NEWPASSWORD", "enter password again: ")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user