zipfsrw

package
v2.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 17 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) writefs.CreateFSFunc

func NewCreateFSEncryptedChecksumFunc

func NewCreateFSEncryptedChecksumFunc(noCompression bool, algs []checksum.DigestAlgorithm, keyUri string) writefs.CreateFSFunc

func NewCreateFSFunc

func NewCreateFSFunc(noCompression bool) writefs.CreateFSFunc

func NewFS

func NewFS(writer io.Writer, zipFS zipfs.OpenRawZipFS, noCompression bool, name string) (*zipFSRW, error)

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.

Jump to

Keyboard shortcuts

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