Documentation
¶
Overview ¶
Package zipfsw provides a functionality to create and update content of a zip file
Index ¶
- func NewCreateFSChecksumFunc(noCompression bool, algs []checksum.DigestAlgorithm, logger zLogger.ZLogger) writefs.CreateFSFunc
- func NewCreateFSEncryptedChecksumFunc(noCompression bool, algs []checksum.DigestAlgorithm, keyUri string, ...) writefs.CreateFSFunc
- func NewCreateFSFunc(noCompression bool, logger zLogger.ZLogger) writefs.CreateFSFunc
- func NewFS(writer io.Writer, closeWriter bool, noCompression bool, name string, ...) (fs.FS, error)
- func NewFSFile(baseFS fs.FS, path string, noCompression bool, logger zLogger.ZLogger, ...) (fs.FS, error)
- func NewFSFileChecksums(baseFS fs.FS, path string, noCompression bool, algs []checksum.DigestAlgorithm, ...) (fs.FS, error)
- func NewFSFileEncryptedChecksums(baseFS fs.FS, path string, noCompression bool, algs []checksum.DigestAlgorithm, ...) (*fsFileEncryptedChecksums, error)
- type ChecksumFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateFSChecksumFunc ¶
func NewCreateFSChecksumFunc(noCompression bool, algs []checksum.DigestAlgorithm, logger zLogger.ZLogger) writefs.CreateFSFunc
func NewCreateFSEncryptedChecksumFunc ¶
func NewCreateFSEncryptedChecksumFunc(noCompression bool, algs []checksum.DigestAlgorithm, keyUri string, logger zLogger.ZLogger) writefs.CreateFSFunc
func NewCreateFSFunc ¶
func NewCreateFSFunc(noCompression bool, logger zLogger.ZLogger) writefs.CreateFSFunc
func NewFS ¶
func NewFS(writer io.Writer, closeWriter bool, noCompression bool, name string, algs []checksum.DigestAlgorithm, csFunc ChecksumFunc, logger zLogger.ZLogger) (fs.FS, error)
NewFS creates a new zip file system. The writer is used to write the zip file. If closeWriter is true and writer implements io.WriteCloser, the writer will be closed when the file system is closed. If noCompression is true, the files will be stored without compression. The name is used for identification (e.g. in Equal). The logger is used for logging errors.
func NewFSFile ¶
func NewFSFile(baseFS fs.FS, path string, noCompression bool, logger zLogger.ZLogger, writers ...io.Writer) (fs.FS, error)
NewZipFSRW creates a new ReadWriteFS If the file does not exist, it will be created on the first write operation. If the file exists, it will be opened and read. Changes will be written to an additional file and then renamed to the original file. additional writers will added via io.MultiWriter additional writers will not be closed
func NewFSFileChecksums ¶
func NewFSFileChecksums(baseFS fs.FS, path string, noCompression bool, algs []checksum.DigestAlgorithm, logger zLogger.ZLogger, writers ...io.Writer) (fs.FS, error)
NewZipFSRW creates a new ReadWriteFS If the file does not exist, it will be created on the first write operation. If the file exists, it will be opened and read. Changes will be written to an additional file and then renamed to the original file.
func NewFSFileEncryptedChecksums ¶
func NewFSFileEncryptedChecksums(baseFS fs.FS, path string, noCompression bool, algs []checksum.DigestAlgorithm, keyUri string, logger zLogger.ZLogger) (*fsFileEncryptedChecksums, error)
NewFSFileEncryptedChecksums creates a new ReadWriteFS If the file does not exist, it will be created on the first write operation. If the file exists, it will be opened and read. Changes will be written to an additional file and then renamed to the original file.
Types ¶
type ChecksumFunc ¶
type ChecksumFunc func(css map[checksum.DigestAlgorithm]string) error