archive

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeZipName

func DecodeZipName(hdr *zip.FileHeader) string

Types

type ArchivePlugin

type ArchivePlugin struct{}

func (*ArchivePlugin) Close

func (p *ArchivePlugin) Close() error

func (*ArchivePlugin) GetName

func (p *ArchivePlugin) GetName() string

func (*ArchivePlugin) Init

func (p *ArchivePlugin) Init(api vfs.HostAPI) error

type ArchiveProvider

type ArchiveProvider struct{}

func (*ArchiveProvider) CanOpen

func (p *ArchiveProvider) CanOpen(ctx context.Context, parent vfs.VFS, path string) bool

func (*ArchiveProvider) Name

func (p *ArchiveProvider) Name() string

func (*ArchiveProvider) Open

func (p *ArchiveProvider) Open(ctx context.Context, parent vfs.VFS, path string) (vfs.VFS, error)

func (*ArchiveProvider) Priority

func (p *ArchiveProvider) Priority() int

type ArchiveVFS

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

func NewArchiveVFS

func NewArchiveVFS(parent vfs.VFS, path string) (*ArchiveVFS, error)

func (*ArchiveVFS) Abs

func (v *ArchiveVFS) Abs(p string) (string, error)

func (*ArchiveVFS) Base

func (v *ArchiveVFS) Base(p string) string

func (*ArchiveVFS) Clone

func (v *ArchiveVFS) Clone() vfs.VFS

func (*ArchiveVFS) Close

func (v *ArchiveVFS) Close() error

func (*ArchiveVFS) Create

func (v *ArchiveVFS) Create(ctx context.Context, path string) (io.WriteCloser, error)

func (*ArchiveVFS) Dir

func (v *ArchiveVFS) Dir(p string) string

func (*ArchiveVFS) GetCapabilities

func (v *ArchiveVFS) GetCapabilities() vfs.VFSCapabilities

func (*ArchiveVFS) GetPath

func (v *ArchiveVFS) GetPath() string

func (*ArchiveVFS) IsAtRoot

func (v *ArchiveVFS) IsAtRoot() bool

func (*ArchiveVFS) Join

func (v *ArchiveVFS) Join(e ...string) string

func (*ArchiveVFS) MkDir

func (v *ArchiveVFS) MkDir(ctx context.Context, path string) error

func (*ArchiveVFS) Open

func (v *ArchiveVFS) Open(ctx context.Context, path string) (vfs.ReadAtCloser, error)

func (*ArchiveVFS) ParentVFS

func (v *ArchiveVFS) ParentVFS() vfs.VFS

func (*ArchiveVFS) ReadDir

func (v *ArchiveVFS) ReadDir(ctx context.Context, path string, onChunk func([]vfs.VFSItem)) error

func (*ArchiveVFS) Remove

func (v *ArchiveVFS) Remove(ctx context.Context, path string) error

func (*ArchiveVFS) Rename

func (v *ArchiveVFS) Rename(ctx context.Context, o, n string) error

func (*ArchiveVFS) Search

func (v *ArchiveVFS) Search(ctx context.Context, p, pat string) (chan int64, error)

func (*ArchiveVFS) SetAttributes

func (v *ArchiveVFS) SetAttributes(ctx context.Context, path string, item vfs.VFSItem) error

func (*ArchiveVFS) SetPath

func (v *ArchiveVFS) SetPath(path string) error

func (*ArchiveVFS) Stat

func (v *ArchiveVFS) Stat(ctx context.Context, path string) (vfs.VFSItem, error)

Jump to

Keyboard shortcuts

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