s3fs

package module
v0.0.0-...-5c045d7 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 13 Imported by: 0

README

S3 File system abstraction

Credentials

See AWS SDK for Go V2 to find out how to supply credentials

Documentation

Index

Constants

View Source
const (
	// Prefix os S3FileSystem URLs
	Prefix = "s3://"

	// Separator used in S3FileSystem paths
	Separator = "/"
)

Variables

View Source
var (
	// DefaultPermissions used for S3 bucket files
	DefaultPermissions = fs.UserAndGroupReadWrite
	// DefaultDirPermissions used for S3 bucket directories
	DefaultDirPermissions = fs.UserAndGroupReadWrite + fs.AllReadWrite
)

Functions

func NewAndRegister

func NewAndRegister(client *s3.Client, bucketName string, readOnly bool) fs.FileSystem

NewAndRegister initializes a new S3 instance + session and returns a fs.FileSystem implementation that contains the required settings to work with an S3 bucket.

func NewLoadDefaultConfig

func NewLoadDefaultConfig(ctx context.Context, bucketName string, readOnly bool) (fs.FileSystem, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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