summaryrefslogtreecommitdiff
path: root/internal/store/dependencies.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/store/dependencies.go')
-rw-r--r--internal/store/dependencies.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/store/dependencies.go b/internal/store/dependencies.go
new file mode 100644
index 0000000..c8935ce
--- /dev/null
+++ b/internal/store/dependencies.go
@@ -0,0 +1,15 @@
+package store
+
+import "context"
+
+// Encryptor is the minimal crypto dependency needed by store operations.
+type Encryptor interface {
+ Encrypt([]byte) ([]byte, error)
+ Decrypt([]byte) ([]byte, error)
+}
+
+// Committer is the minimal git dependency needed by store operations.
+type Committer interface {
+ Add(context.Context, string) error
+ Remove(context.Context, string) error
+}