Documentation ¶
Overview ¶
Package zipfsrw provides a functionality to create and update content of a zip file
Index ¶
- func NewCreateFSChecksumFunc(noCompression bool, algs []checksum.DigestAlgorithm) writefs.CreateFSFunc
- func NewCreateFSEncryptedChecksumFunc(noCompression bool, algs []checksum.DigestAlgorithm, keyUri string) writefs.CreateFSFunc
- func NewCreateFSFunc(noCompression bool) writefs.CreateFSFunc
- func NewFS(writer io.Writer, zipFS zipfs.OpenRawZipFS, noCompression bool, name string) (*zipFSRW, error)
- func NewFSFile(baseFS fs.FS, path string, noCompression bool, writers ...io.Writer) (*fsFile, error)
- func NewFSFileChecksums(baseFS fs.FS, path string, noCompression bool, algs []checksum.DigestAlgorithm, ...) (*fsFileChecksums, error)
- func NewFSFileEncryptedChecksums(baseFS fs.FS, path string, noCompression bool, algs []checksum.DigestAlgorithm, ...) (*fsFileEncryptedChecksums, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateFSChecksumFunc ¶
func NewCreateFSChecksumFunc(noCompression bool, algs []checksum.DigestAlgorithm) writefs.CreateFSFunc
func NewCreateFSEncryptedChecksumFunc ¶
func NewCreateFSEncryptedChecksumFunc(noCompression bool, algs []checksum.DigestAlgorithm, keyUri string) writefs.CreateFSFunc
func NewCreateFSFunc ¶
func NewCreateFSFunc(noCompression bool) writefs.CreateFSFunc
func NewFSFile ¶
func NewFSFile(baseFS fs.FS, path string, noCompression bool, writers ...io.Writer) (*fsFile, 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, writers ...io.Writer) (*fsFileChecksums, 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) (*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 ¶
This section is empty.