summaryrefslogtreecommitdiff
path: root/internal/store/dependencies.go
blob: c8935ced436b121baf5b599bd1a164e565516a3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}