summaryrefslogtreecommitdiff
path: root/internal/storage/storage_interface.go
diff options
from:
to:
context:
space:
mode:
Diffstat (limited to 'internal/storage/storage_interface.go')
-rw-r--r--internal/storage/storage_interface.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/storage/storage_interface.go b/internal/storage/storage_interface.go
index 91eeedb..02e0790 100644
--- a/internal/storage/storage_interface.go
+++ b/internal/storage/storage_interface.go
@@ -11,9 +11,9 @@ type StorageClient interface {
Scan() (paths []string, err error)
GetReader(path string) (reader io.ReadCloser, sz int64, err error)
WriteMetadata(path string, metadata *frontmatter.Metadata) error
- FileHasChanged(path string) bool
+ CompareDraftAndProd(path string) (changed bool)
}
-var NewStorageClientMap = map[string]func(cfg *config.StorageConfig) (StorageClient, error){
+var NewStorageClientMap = map[string]func(*config.StorageConfig, *config.DraftModeConfig) (StorageClient, error){
"b2": NewB2StorageClient,
}