Versions in this module Expand all Collapse all v0 v0.0.2 Dec 27, 2025 v0.0.1 Nov 14, 2025 Changes in this version + var ErrInvalidPassword = errors.New("invalid password") + var ErrPasswordRequired = errors.New("password required") + type DataNode struct + func FromTar(tarball []byte) (*DataNode, error) + func New() *DataNode + func (d *DataNode) AddData(name string, content []byte) + func (d *DataNode) CopyFile(sourcePath string, target string, perm os.FileMode) error + func (d *DataNode) Exists(name string, opts ...ExistsOptions) (bool, error) + func (d *DataNode) Open(name string) (fs.File, error) + func (d *DataNode) ReadDir(name string) ([]fs.DirEntry, error) + func (d *DataNode) Stat(name string) (fs.FileInfo, error) + func (d *DataNode) ToTar() ([]byte, error) + func (d *DataNode) Walk(root string, fn fs.WalkDirFunc, opts ...WalkOptions) error + type ExistsOptions struct + WantType fs.FileMode + type WalkOptions struct + Filter func(path string, d fs.DirEntry) bool + MaxDepth int + SkipErrors bool