aboutsummaryrefslogtreecommitdiffstats
path: root/repository/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'repository/repo.go')
-rw-r--r--repository/repo.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/repository/repo.go b/repository/repo.go
index c39051d5..49f5a97b 100644
--- a/repository/repo.go
+++ b/repository/repo.go
@@ -7,6 +7,7 @@ import (
"github.com/ProtonMail/go-crypto/openpgp"
"github.com/go-git/go-billy/v5"
+ "github.com/go-git/go-git/v5/plumbing/transport/ssh"
"github.com/MichaelMure/git-bug/util/lamport"
)
@@ -142,6 +143,9 @@ type RepoData interface {
// the remote state.
PushRefs(remote string, prefixes ...string) (string, error)
+ // SSHAuth will attempt to read public keys for SSH auth
+ SSHAuth(remote string) (*ssh.PublicKeys, error)
+
// StoreData will store arbitrary data and return the corresponding hash
StoreData(data []byte) (Hash, error)