archive

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	// Absolute path of file from archive root
	Path string

	Length int64
	Digest map[string]string
}

type FileReadAtCloser

type FileReadAtCloser interface {
	io.ReaderAt
	io.Closer
}

type ReadWriter

type ReadWriter interface {
	Reader
	Writer
}

type Reader

type Reader interface {
	ListFiles() ([]*FileInfo, error)

	OpenFile(filePath string) (FileInfo, io.ReadCloser, error)
	OpenSeekableFile(filePath string) (FileInfo, io.ReadSeekCloser, error)
	OpenReaderAtFile(filePath string) (FileInfo, FileReadAtCloser, error)
}

type Writer

type Writer interface {
	SaveFile(reader io.Reader, fileInfo *FileInfo) error
	MoveFile(from string, to string) error

	DeleteFile(path string) error
}

Directories

Path Synopsis
local

Jump to

Keyboard shortcuts

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