s3fs

package module
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3File

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

func (*S3File) Close

func (f *S3File) Close() error

func (*S3File) IsDir

func (f *S3File) IsDir() bool

func (*S3File) ModTime

func (f *S3File) ModTime() time.Time

func (*S3File) Mode

func (f *S3File) Mode() fs.FileMode

func (*S3File) Name

func (f *S3File) Name() string

func (*S3File) Read

func (f *S3File) Read(b []byte) (int, error)

func (*S3File) Size

func (f *S3File) Size() int64

func (*S3File) Stat

func (f *S3File) Stat() (fs.FileInfo, error)

func (*S3File) Sys

func (f *S3File) Sys() interface{}

type S3Fs

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

Implements fs.FS

func New

func New(bucketId string, client *s3.Client) (*S3Fs, error)

func (*S3Fs) CreateFrom

func (fs *S3Fs) CreateFrom(name string, r io.Reader) error

func (*S3Fs) Open

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

func (*S3Fs) Remove

func (fs *S3Fs) Remove(name string) error

func (*S3Fs) RemoveAll

func (fs *S3Fs) RemoveAll(name string) error

Jump to

Keyboard shortcuts

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