bounded

package
v0.76.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExhausted = errors.New("filesystem limit exhausted")

Functions

func NewFilesystem

func NewFilesystem(maxBytes, maxFiles int) billy.Filesystem

Types

type File

type File struct {
	billy.File
	// contains filtered or unexported fields
}

func (*File) Write

func (bf *File) Write(p []byte) (int, error)

type FileSystem

type FileSystem struct {
	billy.Filesystem
	// contains filtered or unexported fields
}

func (*FileSystem) Create

func (bfs *FileSystem) Create(filename string) (billy.File, error)

func (*FileSystem) MkdirAll

func (bfs *FileSystem) MkdirAll(filename string, perm os.FileMode) error

func (*FileSystem) Open

func (bfs *FileSystem) Open(filename string) (billy.File, error)

func (*FileSystem) OpenFile

func (bfs *FileSystem) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error)

Jump to

Keyboard shortcuts

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