aboutsummaryrefslogtreecommitdiffstats
path: root/repository/keyring.go
diff options
context:
space:
mode:
Diffstat (limited to 'repository/keyring.go')
-rw-r--r--repository/keyring.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/repository/keyring.go b/repository/keyring.go
index 4cb3c9ff..64365c39 100644
--- a/repository/keyring.go
+++ b/repository/keyring.go
@@ -48,3 +48,13 @@ func defaultKeyring() (Keyring, error) {
},
})
}
+
+// replaceKeyring allow to replace the Keyring of the underlying repo
+type replaceKeyring struct {
+ TestedRepo
+ keyring Keyring
+}
+
+func (rk replaceKeyring) Keyring() Keyring {
+ return rk.keyring
+}