Documentation
¶
Index ¶
- func Driver(items ...Option) storage.Driver
- func Provider(items ...Option) runaprovider.Provider
- type Option
- func Bucket(value string) Option
- func Client(client *s3.Client) Option
- func Config(path string) Option
- func Credentials(accessKey string, secretKey string, sessionToken ...string) Option
- func Domain(value string) Option
- func Endpoint(value string) Option
- func Name(value string) Option
- func PathStyle(value bool) Option
- func Presigner(client *s3.PresignClient) Option
- func Region(value string) Option
- func URLPrefix(value string) Option
- func Uploader(uploader *manager.Uploader) Option
- func Use(name string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Provider ¶ added in v0.1.3
func Provider(items ...Option) runaprovider.Provider
Provider registers an S3-compatible storage driver.
Types ¶
type Option ¶
type Option func(*options)
Option configures an S3-compatible storage driver.
func Credentials ¶
Credentials sets static credentials.
func Presigner ¶
func Presigner(client *s3.PresignClient) Option
Presigner uses an existing S3 presign client.
Click to show internal directories.
Click to hide internal directories.