refactor: Introduce config struct for operations

This commit is contained in:
Felicitas Pojtinger
2021-12-15 01:33:01 +01:00
parent 1ea34eb02a
commit 479def3d80
12 changed files with 138 additions and 155 deletions
+12
View File
@@ -22,6 +22,17 @@ type DriveConfig struct {
DriveIsRegular bool
}
type BackendConfig struct {
GetWriter func() (DriveWriterConfig, error)
CloseWriter func() error
GetReader func() (DriveReaderConfig, error)
CloseReader func() error
GetDrive func() (DriveConfig, error)
CloseDrive func() error
}
type MetadataConfig struct {
Metadata *persisters.MetadataPersister
}
@@ -30,6 +41,7 @@ type PipeConfig struct {
Compression string
Encryption string
Signature string
RecordSize int
}
type CryptoConfig struct {