unionfs

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package unionfs provides unification of multiple io/fs.FS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnionFS

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

func NewUnionFS

func NewUnionFS() (ufs *UnionFS)

func (*UnionFS) Map

func (ufs *UnionFS) Map(newPrefix, oldPrefix string, vfs fs.FS)

Map existing vfs with new path prefix inside the ufs, old prefix is required to access actual vfs data

func (*UnionFS) Open

func (ufs *UnionFS) Open(name string) (fs.File, error)

func (*UnionFS) ReadDir

func (ufs *UnionFS) ReadDir(name string) ([]fs.DirEntry, error)

Jump to

Keyboard shortcuts

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