files

package
v0.0.0-...-5fdec1d Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileManager

type FileManager struct {
	// contains filtered or unexported fields
}

func NewFileManager

func NewFileManager(logger *zap.Logger, config FileManagerConfig) (*FileManager, error)

func (*FileManager) CreateFile

func (f *FileManager) CreateFile(ctx context.Context, content io.Reader, filename string) error

func (*FileManager) GetFileNames

func (f *FileManager) GetFileNames(ctx context.Context) ([]gopherdir.File, error)

func (*FileManager) GetFileSystem

func (f *FileManager) GetFileSystem() fs.FS

type FileManagerConfig

type FileManagerConfig struct {
	Root    string `required:"true"`
	BufSize int    `default:"1024"`
}

Jump to

Keyboard shortcuts

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