filesystem

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package filesystem provides an abstraction for a file system. It can be extended to suppot multiple backends, such as remote backends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPFS

func NewHTTPFS(source FS) http.FileSystem

NewHTTPFS creates a net/http compatible filesystem from the source

Types

type FS

type FS = afero.Fs

FS is an abstraction for a file system

func NewBasePathFS added in v0.9.1

func NewBasePathFS(fs FS, basepath string) FS

NewBasePathFS returns a file system based on the given path

func NewMemMapFS added in v0.9.1

func NewMemMapFS() FS

NewMemMapFS creates a memory-based file system

func NewOsFS added in v0.9.1

func NewOsFS() FS

NewOsFS returns a file system that uses the os

type File

type File = afero.File

File represents a file on the file system

Jump to

Keyboard shortcuts

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