fsys

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeTagger added in v1.4.0

func MakeTagger(fpath string) (wpk.Tagger, error)

MakeTagger creates Tagger object to get access to package nested files.

Types

type ChunkFile

type ChunkFile struct {
	wpk.PkgReader
	// contains filtered or unexported fields
}

ChunkFile structure gives access to nested into package file. wpk.RFile interface implementation.

func NewChunkFile

func NewChunkFile(fpath string, ts wpk.TagsetRaw) (f *ChunkFile, err error)

NewChunkFile creates ChunkFile file structure based on given tags slice.

func (*ChunkFile) Close

func (f *ChunkFile) Close() error

Close closes associated wpk-file handle.

func (*ChunkFile) Stat

func (f *ChunkFile) Stat() (fs.FileInfo, error)

Stat is for fs.File interface compatibility.

type ReaserAtCloser added in v1.4.0

type ReaserAtCloser interface {
	io.ReaderAt
	io.Closer
}

type Tagger added in v1.4.0

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

Tagger is object to get access to package nested files by sections of wpk-file reading.

func (*Tagger) Close added in v1.4.0

func (tgr *Tagger) Close() error

Close file handle. This function must be called only for root object, not subdirectories. io.Closer implementation.

func (*Tagger) OpenTagset added in v1.4.0

func (tgr *Tagger) OpenTagset(ts wpk.TagsetRaw) (wpk.RFile, error)

OpenTagset creates file object to give access to nested into package file by given tagset.

Jump to

Keyboard shortcuts

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