30 lines
425 B
Go
30 lines
425 B
Go
package miniohelper
|
|
|
|
import (
|
|
"io"
|
|
"net/url"
|
|
"time"
|
|
)
|
|
|
|
type UploadReaderInput struct {
|
|
File io.Reader
|
|
Name string
|
|
Size int64
|
|
ContentType string
|
|
BucketName string
|
|
}
|
|
|
|
type UploadPathInput struct {
|
|
BucketName string
|
|
ContentType string
|
|
Name string
|
|
Path string
|
|
}
|
|
|
|
type PresignedGetInput struct {
|
|
Bucket string
|
|
Object string
|
|
Expiry time.Duration
|
|
ReqParams url.Values
|
|
}
|