telemetrygolang.org/x/telemetry/internal/unionfs Index | Files

package unionfs

import "golang.org/x/telemetry/internal/unionfs"

Package unionfs allows multiple file systems to be read as a union.

Index

Types

type FS

type FS []fs.FS

A FS is an FS presenting the union of the file systems in the slice. If multiple file systems provide a particular file, Open uses the FS listed earlier in the slice.

func Sub

func Sub(fsys fs.FS, dirs ...string) (FS, error)

Sub returns an FS corresponding to the merged subtree rooted at a set of fsys's dirs.

func (FS) Open

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

func (FS) ReadDir

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

Source Files

unionfs.go

Version
v0.0.0-20250214215356-6f9b61db478c (latest)
Published
Feb 14, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
3 days ago

Tools for package owners.