client.go 229 B

123456789101112131415
  1. package utils
  2. import "github.com/qor/oss/s3"
  3. func NewClient(client *s3.Client) S3Client {
  4. return S3Client{client}
  5. }
  6. type S3Client struct {
  7. *s3.Client
  8. }
  9. func (this S3Client) GetBucket() string {
  10. return this.Config.Bucket
  11. }