filesystem

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 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 NewFS

func NewFS(basepath string) (FS, error)

NewFS creates a new file system

func NewMemMapFs

func NewMemMapFs() FS

NewMemMapFs creates a memory-based file system

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