s3fsrw

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	JustURL debugLevel = iota
	URLTiming
	CurlCommand
	RequestHeaders
	ResponseStatus
	ResponseHeaders
)

Variables

View Source
var ARNRegexStr = `^arn:(?P<partition>[^:]*):s3:(?P<region>[^:]*):(?P<namespace>[^:]*):[^:]*`

Functions

func NewCreateFSFunc

func NewCreateFSFunc(access map[string]*S3Access, regexpString string, logger *logging.Logger) writefs.CreateFSFunc

func NewDebuggingRoundTripper

func NewDebuggingRoundTripper(rt http.RoundTripper, logger *logging.Logger, levels ...debugLevel) *debuggingRoundTripper

func NewFS

func NewFS(endpoint, accessKeyID, secretAccessKey, region string, useSSL bool, logger *logging.Logger) (*s3FSRW, error)

func NewFileInfo

func NewFileInfo(o *minio.ObjectInfo) fs.FileInfo

func NewUploadInfo

func NewUploadInfo(ui minio.UploadInfo, err error) uploadInfo

func NewWriteCloser

func NewWriteCloser() *rwCloser

Types

type File

type File struct {
	*minio.Object
}

func (*File) Stat

func (s3f *File) Stat() (fs.FileInfo, error)

type S3Access

type S3Access struct {
	AccessKey string
	SecretKey string
	URL       string
	UseSSL    bool
}

Jump to

Keyboard shortcuts

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