(path string, bucket string, key string)
| 412 | } |
| 413 | |
| 414 | func (c *Client) UploadFileToS3(path string, bucket string, key string) error { |
| 415 | file, err := files.Open(path) |
| 416 | if err != nil { |
| 417 | return err |
| 418 | } |
| 419 | defer file.Close() |
| 420 | return c.UploadReaderToS3(file, bucket, key) |
| 421 | } |
| 422 | |
| 423 | func (c *Client) UploadBytesToS3(data []byte, bucket string, key string) error { |
| 424 | return c.UploadReaderToS3(bytes.NewReader(data), bucket, key) |
no test coverage detected