filesys

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filesys

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

Filesys is a file storage provider for the local filesystem

func New

func New(baseDir string) *Filesys

New returns a new Filesys provider

func (Filesys) DeleteFile

func (f Filesys) DeleteFile(ctx context.Context, path string) error

DeleteFile deletes a file

func (Filesys) ReadFile

func (f Filesys) ReadFile(ctx context.Context, path string, w io.Writer) error

ReadFile reads a file from the storage provider

func (Filesys) WriteFile

func (f Filesys) WriteFile(ctx context.Context, path string, r io.ReadSeeker) error

WriteFile writes a file to the storage provider

Jump to

Keyboard shortcuts

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