Documentation ¶
Overview ¶
Copyright (C) 2021 Sysreturn Community Contributors SPDX-License-Identifier: AGPL-3.0-or-later
Index ¶
Constants ¶
View Source
const (
DefaultStoragePrefix = "uploads"
)
Variables ¶
View Source
var (
ErrNotFound = errors.New("NotFound")
)
Functions ¶
Types ¶
type StorageFS ¶
type StorageFS struct {
// contains filtered or unexported fields
}
func NewStorageFS ¶
type StorageS3 ¶
type StorageS3 struct { S3Client *s3.Client PresignClient *s3.PresignClient Uploader *s3manager.Uploader Prefix string Bucket string }
func NewStorageS3 ¶
func NewStorageS3(config StorageS3Config) (*StorageS3, error)
type StorageS3Config ¶
type StorageS3Config struct {
AccessKey, AccessSecret, Region, Endpoint, Bucket, Prefix string
}
Click to show internal directories.
Click to hide internal directories.