zipfsrw

package
v3.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Overview

Package zipfsrw provides a functionality to create and update content of a zip file

Index

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, zipFS zipfs.OpenRawZipFS, noCompression bool, name string, logger zLogger.ZLogger) (*zipFSRW, error)

func NewFSFile

func NewFSFile(baseFS fs.FS, path string, noCompression bool, logger zLogger.ZLogger, 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, logger zLogger.ZLogger, 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, 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

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL