Documentation ¶
Index ¶
- Constants
- type Storage
- func (s *Storage) AbortMultipartUpload(bucket, key, uploadID string) error
- func (s *Storage) CompleteMultipartUpload(bucket, key, uploadID string) error
- func (s *Storage) CreateMultipartUpload(bucket, key, contentType string) (string, error)
- func (s *Storage) DeleteObject(bucket, key string) error
- func (s *Storage) GetObject(bucket, key string) (io.ReadCloser, error)
- func (s *Storage) GetObjectRequest(bucket, key, disposition string, expire time.Duration) (string, error)
- func (s *Storage) ListParts(bucket, key, uploadID string) ([]*s3.Part, error)
- func (s *Storage) PutObject(bucket, key string, body io.Reader, contentType string) error
- func (s *Storage) PutObjectRequest(bucket, key string, expire time.Duration) (string, error)
- func (s *Storage) UploadPartRequest(bucket, key, uploadID string, partNumber int64, expire time.Duration) (string, error)
Constants ¶
View Source
const ( Private = "private" Readable = "readable" )
bucket type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage Storage
func (*Storage) AbortMultipartUpload ¶
AbortMultipartUpload AbortMultipartUpload
func (*Storage) CompleteMultipartUpload ¶
CompleteMultipartUpload CompleteMultipartUpload
func (*Storage) CreateMultipartUpload ¶
CreateMultipartUpload CreateMultipartUpload
func (*Storage) DeleteObject ¶
DeleteObject DeleteObject
func (*Storage) GetObject ¶
func (s *Storage) GetObject(bucket, key string) (io.ReadCloser, error)
GetObject GetObject
func (*Storage) GetObjectRequest ¶
func (s *Storage) GetObjectRequest(bucket, key, disposition string, expire time.Duration) (string, error)
GetObjectRequest GetObjectRequest
func (*Storage) PutObjectRequest ¶
PutObjectRequest PutObjectRequest
Click to show internal directories.
Click to hide internal directories.