storage

package
v0.0.0-...-e75800c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemStorage

type FileSystemStorage interface {
	Save(path string, data io.Reader) (location string, err error)
	Get(path string) (file *os.File, err error)
	Move(oldPath, newPath string) (location string, err error)
}

func NewTmpFileSystem

func NewTmpFileSystem() FileSystemStorage

type TmpFileSystem

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

func (*TmpFileSystem) Get

func (fs *TmpFileSystem) Get(path string) (file *os.File, err error)

func (*TmpFileSystem) Move

func (fs *TmpFileSystem) Move(oldPath, newPath string) (string, error)

func (*TmpFileSystem) Save

func (fs *TmpFileSystem) Save(path string, data io.Reader) (location string, err error)

Jump to

Keyboard shortcuts

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