Rename 'Repository' -> Repo

This commit is contained in:
Alexander Neumann
2015-05-09 17:41:28 +02:00
parent 5fc1583acc
commit ae21938f3e
15 changed files with 106 additions and 106 deletions

View File

@@ -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: ")