Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewS3Client ¶
Types ¶
type Client ¶
type Client interface { PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error) DeleteObject(input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error) }
type Interactor ¶
type Interactor struct {
// contains filtered or unexported fields
}
func New ¶
func New(c Client, opt Options) *Interactor
func (*Interactor) Download ¶
func (i *Interactor) Download(filepath string) (io.ReadCloser, *string, error)
func (*Interactor) GetFullURL ¶
func (i *Interactor) GetFullURL(path string) string
func (*Interactor) Remove ¶
func (i *Interactor) Remove(filepath string) error
func (*Interactor) Upload ¶
func (i *Interactor) Upload(file io.ReadSeeker, filepath string, acl ACL, contentType string) error
type S3mock ¶
func (*S3mock) DeleteObject ¶
func (s *S3mock) DeleteObject(input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
func (*S3mock) GetObject ¶
func (s *S3mock) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error)
func (*S3mock) PutObject ¶
func (s *S3mock) PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)
Click to show internal directories.
Click to hide internal directories.