Documentation
¶
Overview ¶
Package s3 provides the Amazon S3 disk implementation.
Index ¶
- Constants
- func NewAutoWire(ctx context.Context, cfg map[string]interface{}) (godrive.Disk, error)
- func Register(cfg *godrive.AutoWireConfig)
- type Config
- type Disk
- func (d *Disk) Delete(ctx context.Context, key string) error
- func (d *Disk) Get(ctx context.Context, key string) ([]byte, error)
- func (d *Disk) GetURL(_ context.Context, key string) (string, error)
- func (d *Disk) Put(ctx context.Context, key string, b []byte) error
- func (d *Disk) PutReader(ctx context.Context, key string, r io.Reader) error
- type InvalidConfigValueError
- type Option
Constants ¶
View Source
const (
// Provider is the provider name for Amazon S3.
Provider = "s3"
)
Variables ¶
This section is empty.
Functions ¶
func NewAutoWire ¶ added in v0.3.0
NewAutoWire creates a new Amazon S3 disk from an autowire configuration.
func Register ¶ added in v0.3.0
func Register(cfg *godrive.AutoWireConfig)
Register registeres Amazon S3 as a provider for the disk autowire.
Types ¶
type Disk ¶
Disk is the Amazon S3 disk.
type InvalidConfigValueError ¶ added in v0.3.0
InvalidConfigValueError means the autowire configuration has an invalid config value.
func (InvalidConfigValueError) Error ¶ added in v0.3.0
func (err InvalidConfigValueError) Error() string
Click to show internal directories.
Click to hide internal directories.