feat: Add io.Reader-based API to archive cmd
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user