archives

package
v0.0.0-...-94e6d93 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VpFile

type VpFile struct {
	// contains filtered or unexported fields
}

VpFile contains the metadata for a file entry

type VpFolder

type VpFolder struct {
	// contains filtered or unexported fields
}

VpFolder contains an index of the available sub-folders and files

type VpWriter

type VpWriter struct {
	// contains filtered or unexported fields
}

VpWriter can write .vp archives

func NewVpWriter

func NewVpWriter(filename string) (*VpWriter, error)

NewVpWriter creates a new VpWriter instance and opens it for writing

func (*VpWriter) Close

func (w *VpWriter) Close() error

Close writes the central index and closes the archive

func (*VpWriter) CloseDirectory

func (w *VpWriter) CloseDirectory() error

CloseDirectory closes the directory that was last opened

func (*VpWriter) OpenDirectory

func (w *VpWriter) OpenDirectory(dirname string) error

OpenDirectory creates a new directory entry. Anything created until the next CloseDirectory() call will be created inside this directory.

func (*VpWriter) WriteFile

func (w *VpWriter) WriteFile(filename string, reader io.Reader) error

WriteFile creates a new file in the current archive directory

Jump to

Keyboard shortcuts

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