Documentation ¶
Index ¶
- Constants
- func NewS3Fs(bucketOpts map[string]BucketOpts) http.FileSystem
- func RunWebServer(opts *S3ProxyOpts)
- type BindAddress
- type BucketOpts
- type HttpsOpts
- type Listing
- type ListingItem
- type S3Chunk
- type S3File
- func (f *S3File) Close() error
- func (f *S3File) IsDir() bool
- func (f *S3File) ModTime() time.Time
- func (f *S3File) Mode() os.FileMode
- func (f *S3File) Name() string
- func (f *S3File) Read(p []byte) (n int, err error)
- func (f *S3File) Readdir(count int) ([]os.FileInfo, error)
- func (f *S3File) Seek(offset int64, whence int) (int64, error)
- func (f *S3File) Size() int64
- func (f *S3File) Stat() (os.FileInfo, error)
- func (f *S3File) Sys() interface{}
- type S3Fs
- type S3ProxyOpts
- type WebOpts
Constants ¶
View Source
const CHUNK_SIZE = 1024 * 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
func NewS3Fs ¶
func NewS3Fs(bucketOpts map[string]BucketOpts) http.FileSystem
func RunWebServer ¶
func RunWebServer(opts *S3ProxyOpts)
Types ¶
type BindAddress ¶
type BucketOpts ¶
type Listing ¶
type Listing struct { BucketName string MountName string Objects []ListingItem }
type ListingItem ¶
type S3ProxyOpts ¶
type S3ProxyOpts struct { Web WebOpts // Web server configuration Buckets map[string]BucketOpts // Bucket configuration }
func NewS3ProxyOpts ¶
func NewS3ProxyOpts() (opts *S3ProxyOpts)
Create a S3ProxyOpts object with default settings filled in
func (*S3ProxyOpts) LoadYaml ¶
func (opts *S3ProxyOpts) LoadYaml(fileName string) error
Load the configuration data from a Yaml file
Click to show internal directories.
Click to hide internal directories.