Documentation ¶
Index ¶
- func ReadFile(fs afero.Fs, filePath string) ([]byte, error)
- func RuntimeFsFrom(ctx context.Context) afero.Fs
- func RuntimeFsOnto(ctx context.Context, runtimeFs afero.Fs) context.Context
- func SetDefaultFs(fs afero.Fs)
- func SourceFsFrom(ctx context.Context) afero.Fs
- func SourceFsOnto(ctx context.Context, sourceFs afero.Fs) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RuntimeFsFrom ¶
RuntimeFsFrom extracts the filesystem used to access the filesystem from ctx. It will be used by //os.file and similar functions. TODO: Actually use it.
func RuntimeFsOnto ¶
RuntimeFsOnto returns a new Context with runtimeFs added to ctx.
func SetDefaultFs ¶
Sets the default Fs to be returned from SourceFsFrom and RuntimeFsFrom.
func SourceFsFrom ¶
SourceFsFrom extracts the filesystem used for import resolution from ctx.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.