s3fsrw

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 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>[^:]*):(?P<subpath>[^:]*)`

Functions

func NewCreateFSFunc

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

func NewDebuggingRoundTripper

func NewDebuggingRoundTripper(rt http.RoundTripper, logger zLogger.ZWrapper, levels ...debugLevel) *debuggingRoundTripper

func NewFS

func NewFS(endpoint, accessKeyID, secretAccessKey, region string, useSSL bool, logger zLogger.ZWrapper) (*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