tarfs

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v0.8.0

func Create(dst io.Writer, src fs.FS) error

Create creates a tar archive from the given filesystem.

Types

type FS

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

func Open

func Open(ra io.ReaderAt) (*FS, error)

func (*FS) Open

func (fsys *FS) Open(name string) (fs.File, error)

func (*FS) ReadDir

func (fsys *FS) ReadDir(name string) ([]fs.DirEntry, error)
func (fsys *FS) ReadLink(name string) (string, error)

ReadLink returns the destination of the named symbolic link. Experimental implementation of fs.ReadLinkFS: https://github.com/golang/go/issues/49580

func (*FS) Stat

func (fsys *FS) Stat(name string) (fs.FileInfo, error)
func (fsys *FS) StatLink(name string) (fs.FileInfo, error)

StatLink returns a FileInfo describing the file without following any symbolic links. Experimental implementation of fs.ReadLinkFS: https://github.com/golang/go/issues/49580

Jump to

Keyboard shortcuts

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