feat: Add io.Reader-based API to archive cmd

This commit is contained in:
Felicitas Pojtinger
2021-12-15 23:14:22 +01:00
parent 3d4ee0d7ed
commit 129cfab84a
9 changed files with 99 additions and 189 deletions
+8
View File
@@ -2,6 +2,7 @@ package config
import (
"io"
"io/fs"
"os"
"github.com/pojntfx/stfs/internal/persisters"
@@ -53,3 +54,10 @@ type CryptoConfig struct {
type PasswordConfig struct {
Password string
}
type FileConfig struct {
GetFile func() (io.ReadSeekCloser, error)
Info fs.FileInfo
Path string
Link string
}