projectionfs

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 36

Documentation

Overview

Package projectionfs implements virtual filesystems based on a dedicated directory of a base filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(base vfs.FileSystem, path string) (vfs.FileSystem, error)

func Root

func Root(fs vfs.FileSystem) string

Types

type ProjectionFileSystem

type ProjectionFileSystem struct {
	*utils.MappedFileSystem
	// contains filtered or unexported fields
}

func (*ProjectionFileSystem) Name

func (p *ProjectionFileSystem) Name() string

func (*ProjectionFileSystem) Projection

func (p *ProjectionFileSystem) Projection() string

func (*ProjectionFileSystem) Root

func (p *ProjectionFileSystem) Root() string

type RootPath

type RootPath interface {
	Root() string
}

RootPath is the interface for projected filesystems to determine the root folder in the underlying filesystem.

Jump to

Keyboard shortcuts

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