arch

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMetaFileNotFound = errors.New("meta file not found")

ErrMetaFileNotFound is returned when the meta.xml file is not found in the extract directory.

View Source
var ErrMultipleMetaFiles = errors.New("multiple meta files found")

ErrMultipleMetaFiles is returned when there are multiple meta.xml files in the extract directory.

Functions

This section is empty.

Types

type ErrContext

type ErrContext struct {
	Err error
}

ErrContext is returned when the context is canceled.

func (*ErrContext) Error

func (e *ErrContext) Error() string

type ErrCoreRead

type ErrCoreRead struct {
	Err error
}

ErrCoreRead is returned when reading the core file fails.

func (*ErrCoreRead) Error

func (e *ErrCoreRead) Error() string

type ErrDir

type ErrDir struct {
	DirPath string
}

ErrDir is returned when the directory is in an unknown state, or is not a directory.

func (*ErrDir) Error

func (e *ErrDir) Error() string

type ErrDirChange

type ErrDirChange struct {
	Src, Dst string
	Err      error
}

func (*ErrDirChange) Error

func (e *ErrDirChange) Error() string

type ErrDirCreate

type ErrDirCreate struct {
	Dir string
	Err error
}

func (*ErrDirCreate) Error

func (e *ErrDirCreate) Error() string

type ErrDirRemove

type ErrDirRemove struct {
	Dir string
	Err error
}

func (*ErrDirRemove) Error

func (e *ErrDirRemove) Error() string

type ErrDownload

type ErrDownload struct {
	URL string
	Err error
}

func (*ErrDownload) Error

func (e *ErrDownload) Error() string

type ErrEmlDecoder

type ErrEmlDecoder struct {
	//  Err is the original error.
	Err error
}

ErrEmlDecoder is an error type for decoding Eml.xml files.

func (*ErrEmlDecoder) Error

func (e *ErrEmlDecoder) Error() string

type ErrEmlReader

type ErrEmlReader struct {
	// Err is the original error.
	Err error
}

ErrEmlReader is an error type for reading Eml.xml files.

func (*ErrEmlReader) Error

func (e *ErrEmlReader) Error() string

type ErrExtensionRead

type ErrExtensionRead struct {
	Err error
}

func (*ErrExtensionRead) Error

func (e *ErrExtensionRead) Error() string

ErrExtensionRead is returned when reading the extension file fails.

type ErrExtract

type ErrExtract struct {
	Path string
	Err  error
}

ErrExtract is returned when the extraction of the DwCA file fails.

func (*ErrExtract) Error

func (e *ErrExtract) Error() string

type ErrFileCopy

type ErrFileCopy struct {
	Src, Dst string
	Err      error
}

func (*ErrFileCopy) Error

func (e *ErrFileCopy) Error() string

type ErrFileCreate

type ErrFileCreate struct {
	File string
	Err  error
}

func (*ErrFileCreate) Error

func (e *ErrFileCreate) Error() string

type ErrFileNotFound

type ErrFileNotFound struct {
	File string
}

ErrFileNotFound is returned when the file is not found.

func (*ErrFileNotFound) Error

func (e *ErrFileNotFound) Error() string

type ErrFileOpen

type ErrFileOpen struct {
	Path string
	Err  error
}

func (*ErrFileOpen) Error

func (e *ErrFileOpen) Error() string

type ErrImportArchive

type ErrImportArchive struct {
	File string
	Err  error
}

func (*ErrImportArchive) Error

func (e *ErrImportArchive) Error() string

type ErrMetaDecoder

type ErrMetaDecoder struct {
	//  Err is the original error.
	Err error
}

ErrMetaDecoder is an error type for decoding meta.xml files.

func (*ErrMetaDecoder) Error

func (e *ErrMetaDecoder) Error() string

type ErrMetaReader

type ErrMetaReader struct {
	// Err is the original error.
	Err error
}

ErrMetaReader is an error type for reading meta.xml files.

func (*ErrMetaReader) Error

func (e *ErrMetaReader) Error() string

type ErrRepoClone

type ErrRepoClone struct {
	URL string
	Err error
}

func (*ErrRepoClone) Error

func (e *ErrRepoClone) Error() string

type ErrSQLiteConnect

type ErrSQLiteConnect struct {
	Err error
}

func (*ErrSQLiteConnect) Error

func (e *ErrSQLiteConnect) Error() string

type ErrSQLiteCreateBinary

type ErrSQLiteCreateBinary struct {
	File string
	Err  error
}

func (*ErrSQLiteCreateBinary) Error

func (e *ErrSQLiteCreateBinary) Error() string

type ErrSQLiteCreateSQL

type ErrSQLiteCreateSQL struct {
	File string
	Err  error
}

func (*ErrSQLiteCreateSQL) Error

func (e *ErrSQLiteCreateSQL) Error() string

type ErrSQLiteExec

type ErrSQLiteExec struct {
	Err error
}

func (*ErrSQLiteExec) Error

func (e *ErrSQLiteExec) Error() string

type ErrSQLiteLoadSQL

type ErrSQLiteLoadSQL struct {
	Err error
}

func (*ErrSQLiteLoadSQL) Error

func (e *ErrSQLiteLoadSQL) Error() string

type ErrSQLitePragma

type ErrSQLitePragma struct {
	Err error
}

func (*ErrSQLitePragma) Error

func (e *ErrSQLitePragma) Error() string

type ErrSQLiteQuery

type ErrSQLiteQuery struct {
	Err error
}

func (*ErrSQLiteQuery) Error

func (e *ErrSQLiteQuery) Error() string

type ErrSaveCSV

type ErrSaveCSV struct {
	Err error
}

func (*ErrSaveCSV) Error

func (e *ErrSaveCSV) Error() string

type ErrUnknownArchiveType

type ErrUnknownArchiveType struct {
	gnsys.FileType
}

ErrUnknownArchiveType is returned when the file type is not supported.

func (*ErrUnknownArchiveType) Error

func (e *ErrUnknownArchiveType) Error() string

type ErrUnknownExt

type ErrUnknownExt struct {
	File string
}

func (*ErrUnknownExt) Error

func (e *ErrUnknownExt) Error() string

type ErrZipCreate

type ErrZipCreate struct {
	File string
	Err  error
}

func (*ErrZipCreate) Error

func (e *ErrZipCreate) Error() string

type Packager

type Packager interface {
	// Fetch retrieves data from a source path and stores it at a destination
	// path.
	Fetch(src, dst string) error

	// Create generates an empty archive at the given directory. It is the
	// dir path internally to use in Export.
	Create(dir string) error

	// Export writes an archive from the cache to the specified output path. The
	// export can be compressed as a zip file if isZip is true.
	Export(outputPath string, isZip bool) error
}

Packager defines an interface for managing archive operations, including fetching, creating, and exporting archives.

Jump to

Keyboard shortcuts

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