Documentation ¶
Index ¶
- func Create(bucket, key string, opts ...WriteOption) (*s3Writer, error)
- func CreateWithOptions(o WriteOptions, opts ...WriteOption) (*s3Writer, error)
- func CreateWithURI(URI string, opts ...WriteOption) (*s3Writer, error)
- func Open(bucket, key string, opts ...ReadOption) (*s3Reader, error)
- func OpenWithOptions(o ReadOptions, opts ...ReadOption) (*s3Reader, error)
- func OpenWithURI(URI string, opts ...ReadOption) (*s3Reader, error)
- func Remove(bucket, key string, opts ...DeleteOption) error
- func RemoveWithOptions(o DeleteOptions, opts ...DeleteOption) error
- func RemoveWithURI(URI string, opts ...DeleteOption) error
- func Stat(bucket, key string, opts ...StatOption) (*fileInfo, error)
- func StatWithOptions(o StatOptions, opts ...StatOption) (*fileInfo, error)
- func StatWithURI(URI string, opts ...StatOption) (*fileInfo, error)
- func WithBuffer(buf []byte) *withBuffer
- func WithClient(client *s3.Client) *withClient
- func WithContext(ctx context.Context) *withContext
- func WithDownloader(downloader *manager.Downloader) *withDownloader
- func WithUploader(uploader *manager.Uploader) *withUploader
- type DeleteOption
- type DeleteOptions
- type ReadOption
- type ReadOptions
- type StatOption
- type StatOptions
- type WriteOption
- type WriteOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶ added in v0.1.0
func Create( bucket, key string, opts ...WriteOption, ) (*s3Writer, error)
func CreateWithOptions ¶ added in v0.1.0
func CreateWithOptions( o WriteOptions, opts ...WriteOption, ) (*s3Writer, error)
func CreateWithURI ¶ added in v0.1.0
func CreateWithURI(URI string, opts ...WriteOption) (*s3Writer, error)
func Open ¶ added in v0.1.0
func Open( bucket, key string, opts ...ReadOption, ) (*s3Reader, error)
func OpenWithOptions ¶ added in v0.1.0
func OpenWithOptions( o ReadOptions, opts ...ReadOption, ) (*s3Reader, error)
func OpenWithURI ¶ added in v0.1.0
func OpenWithURI( URI string, opts ...ReadOption, ) (*s3Reader, error)
func Remove ¶ added in v0.1.0
func Remove( bucket, key string, opts ...DeleteOption, ) error
func RemoveWithOptions ¶ added in v0.1.0
func RemoveWithOptions( o DeleteOptions, opts ...DeleteOption, ) error
func RemoveWithURI ¶ added in v0.1.0
func RemoveWithURI(URI string, opts ...DeleteOption) error
func Stat ¶ added in v0.1.0
func Stat( bucket, key string, opts ...StatOption, ) (*fileInfo, error)
func StatWithOptions ¶ added in v0.1.0
func StatWithOptions( o StatOptions, opts ...StatOption, ) (*fileInfo, error)
func StatWithURI ¶ added in v0.1.0
func StatWithURI( URI string, opts ...StatOption, ) (*fileInfo, error)
func WithBuffer ¶ added in v0.1.0
func WithBuffer(buf []byte) *withBuffer
func WithClient ¶ added in v0.1.0
func WithContext ¶ added in v0.1.0
func WithDownloader ¶ added in v0.1.0
func WithDownloader(downloader *manager.Downloader) *withDownloader
func WithUploader ¶ added in v0.1.0
Types ¶
type DeleteOption ¶ added in v0.1.0
type DeleteOption interface {
ApplyDeleteOption(*DeleteOptions)
}
type DeleteOptions ¶ added in v0.1.0
type DeleteOptions struct { s3.DeleteObjectInput // contains filtered or unexported fields }
type ReadOption ¶ added in v0.1.0
type ReadOption interface {
ApplyReadOption(*ReadOptions)
}
type ReadOptions ¶ added in v0.1.0
type ReadOptions struct { s3.GetObjectInput // contains filtered or unexported fields }
type StatOption ¶ added in v0.1.0
type StatOption interface {
ApplyStatOption(*StatOptions)
}
type StatOptions ¶ added in v0.1.0
type StatOptions struct { s3.HeadObjectInput // contains filtered or unexported fields }
type WriteOption ¶ added in v0.1.0
type WriteOption interface {
ApplyWriteOption(*WriteOptions)
}
type WriteOptions ¶ added in v0.1.0
type WriteOptions struct { s3.PutObjectInput // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.