s3fs

package
v0.0.0-...-eb2f6e4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const READAHEAD = 1024 * 64 // 64kb readahead

Variables

This section is empty.

Functions

This section is empty.

Types

type S3FS

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

S3FS is an FS object backed by S3.

func NewFS

func NewFS(bucket string, s3 *s3.S3, log *zap.Logger) *S3FS

NewFs creates a new Fs object writing files to a given S3 bucket.

func (S3FS) Name

func (S3FS) Name() string

Name returns the type of FS object this is: Fs.

func (*S3FS) Open

func (s3fs *S3FS) Open(name string) (fs.File, error)

Open a file for reading.

func (S3FS) Stat

func (s3fs S3FS) Stat(name string) (fs.FileInfo, error)

Stat returns a FileInfo describing the named file. If there is an error, it will be of type *os.PathError.

Jump to

Keyboard shortcuts

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