Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { CreateBucket(bucket, acl string) error MustCreateBucket(bucket, acl string) Copy(srcBucket, dstBucket, key string) error MustCopy(srcBucket, dstBucket, key string) StreamUp(bucket, key, name, mimeType string, size int64, isPublic, isAttachment bool, timeout time.Duration, content io.ReadCloser) error MustStreamUp(bucket, key, name, mimeType string, size int64, isPublic, isAttachment bool, timeout time.Duration, content io.ReadCloser) Put(bucket, key string, name, mimeType string, size int64, isPublic, isAttachment bool, content io.ReadSeeker) error MustPut(bucket, key string, name, mimeType string, size int64, isPublic, isAttachment bool, content io.ReadSeeker) PresignedPutUrl(bucket, key string, name, mimeType string, size int64) (string, error) MustPresignedPutUrl(bucket, key string, name, mimeType string, size int64) string Get(bucket, key string) (string, string, int64, io.ReadCloser, error) MustGet(bucket, key string) (string, string, int64, io.ReadCloser) PresignedGetUrl(bucket, key string, name string, isAttachment bool) (string, error) MustPresignedGetUrl(bucket, key string, name string, isAttachment bool) string Delete(bucket, key string) error MustDelete(bucket, key string) DeletePrefix(bucket, prefix string) error MustDeletePrefix(bucket, prefix string) }
Click to show internal directories.
Click to hide internal directories.