s3

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conf Config) (fs.FileSystem, error)

Types

type Config

type Config struct {
	Region          string        // AWS 区域
	Endpoint        string        // S3 服务地址(可选,用于兼容其他 S3 协议的存储服务)
	AccessKeyID     string        // AccessKey
	SecretAccessKey string        // SecretKey
	BucketName      string        // 存储桶名称
	SubPath         string        // 子目录路径
	UsePathStyle    bool          // 是否使用路径样式访问
	AccessMode      fs.AccessMode // 访问模式
}

Jump to

Keyboard shortcuts

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