Documentation
¶
Index ¶
- func FetchFile(ctx context.Context, uid, auth string) (*model.File, error)
- func GetS3Object(c GetS3ObjectConfig) (*s3.GetObjectOutput, error)
- func SaveFile(ctx context.Context, f model.File, auth string, data map[string]interface{}) (model.File, error)
- func UploadToS3(c UploadToS3Config) error
- type GetS3ObjectConfig
- type UploadToS3Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetS3Object ¶
func GetS3Object(c GetS3ObjectConfig) (*s3.GetObjectOutput, error)
GetS3Object ...
Types ¶
type GetS3ObjectConfig ¶
GetS3ObjectConfig ...
type UploadToS3Config ¶
type UploadToS3Config struct {
Bucket string
Key string
Body io.ReadSeeker
Size int64
ContentType string //http.DetectContentType(buffer)
}
UploadToS3Config ...
Click to show internal directories.
Click to hide internal directories.