filesystem

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForAllFilesAtSameTime

func ForAllFilesAtSameTime(ctx context.Context, fls afero.Fs, files []string, cb func(ctx context.Context, fle afero.File) (io.Reader, error)) error

func GetFileOrGlobDir

func GetFileOrGlobDir(ctx context.Context, fs afero.Fs, fle afero.File, glob string) ([]string, error)

Types

type FSResolver

type FSResolver struct {
	Dir  string `usage:"the directory to run in"`
	File string `usage:"the file to read the configuration from"`
}

func (*FSResolver) Run

func (me *FSResolver) Run(ctx context.Context) (afero.Fs, afero.File, error)

Jump to

Keyboard shortcuts

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