Documentation ¶
Index ¶
- func CompleteMultipartUpload(key string) error
- func CompleteUploadMultipartMod(ctx context.Context, modID string, name string, versionID string) (bool, string)
- func CopyObjectFromOldBucket(key string) error
- func CopyObjectToOldBucket(key string) error
- func DeleteMod(ctx context.Context, modID string, name string, versionID string) bool
- func EncodeName(name string) string
- func GenerateDownloadLink(key string) string
- func Get(key string) (io.ReadCloser, error)
- func GetMod(modID string, name string, versionID string) (io.ReadCloser, error)
- func InitializeStorage(ctx context.Context)
- func RenameVersion(ctx context.Context, modID string, name string, versionID string, ...) (bool, string)
- func ScheduleCopyAllObjectsFromOldBucket(scheduler func(string))
- func StartMultipartUpload(key string) error
- func StartUploadMultipartMod(ctx context.Context, modID string, name string, versionID string) (bool, string)
- func UploadModLogo(ctx context.Context, modID string, data io.ReadSeeker) (bool, string)
- func UploadMultipartMod(ctx context.Context, modID string, name string, versionID string, part int64, ...) (bool, string)
- func UploadPart(key string, part int64, data io.ReadSeeker) error
- func UploadUserAvatar(ctx context.Context, userID string, data io.ReadSeeker) (bool, string)
- type B2
- func (b2o *B2) CompleteMultipartUpload(key string) error
- func (b2o *B2) Delete(key string) error
- func (b2o *B2) Get(key string) (io.ReadCloser, error)
- func (b2o *B2) Meta(key string) (*ObjectMeta, error)
- func (b2o *B2) Put(ctx context.Context, key string, body io.ReadSeeker) (string, error)
- func (b2o *B2) Rename(from string, to string) error
- func (b2o *B2) SignGet(key string) (string, error)
- func (b2o *B2) SignPut(key string) (string, error)
- func (b2o *B2) StartMultipartUpload(key string) error
- func (b2o *B2) UploadPart(key string, part int64, data io.ReadSeeker) error
- type Config
- type ObjectMeta
- type S3
- func (s3o *S3) CompleteMultipartUpload(key string) error
- func (s3o *S3) Delete(key string) error
- func (s3o *S3) Get(key string) (io.ReadCloser, error)
- func (s3o *S3) Meta(key string) (*ObjectMeta, error)
- func (s3o *S3) Put(ctx context.Context, key string, body io.ReadSeeker) (string, error)
- func (s3o *S3) Rename(from string, to string) error
- func (s3o *S3) SignGet(key string) (string, error)
- func (s3o *S3) SignPut(key string) (string, error)
- func (s3o *S3) StartMultipartUpload(key string) error
- func (s3o *S3) UploadPart(key string, part int64, data io.ReadSeeker) error
- type Storage
- type Wasabi
- func (wasabi *Wasabi) CompleteMultipartUpload(key string) error
- func (wasabi *Wasabi) Delete(key string) error
- func (wasabi *Wasabi) Get(key string) (io.ReadCloser, error)
- func (wasabi *Wasabi) Meta(key string) (*ObjectMeta, error)
- func (wasabi *Wasabi) Put(ctx context.Context, key string, body io.ReadSeeker) (string, error)
- func (wasabi *Wasabi) Rename(from string, to string) error
- func (wasabi *Wasabi) SignGet(key string) (string, error)
- func (wasabi *Wasabi) SignPut(key string) (string, error)
- func (wasabi *Wasabi) StartMultipartUpload(key string) error
- func (wasabi *Wasabi) UploadPart(key string, part int64, data io.ReadSeeker) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompleteMultipartUpload ¶
func CopyObjectFromOldBucket ¶
func CopyObjectToOldBucket ¶
func EncodeName ¶
func GenerateDownloadLink ¶
func InitializeStorage ¶
func RenameVersion ¶
func ScheduleCopyAllObjectsFromOldBucket ¶
func ScheduleCopyAllObjectsFromOldBucket(scheduler func(string))
func StartMultipartUpload ¶
func StartUploadMultipartMod ¶
func UploadModLogo ¶
func UploadMultipartMod ¶
func UploadPart ¶
func UploadPart(key string, part int64, data io.ReadSeeker) error
func UploadUserAvatar ¶
Types ¶
type B2 ¶
func (*B2) CompleteMultipartUpload ¶
func (*B2) StartMultipartUpload ¶
func (*B2) UploadPart ¶
type ObjectMeta ¶
func ModVersionMeta ¶
type S3 ¶
func (*S3) CompleteMultipartUpload ¶
func (*S3) StartMultipartUpload ¶
func (*S3) UploadPart ¶
type Storage ¶
type Storage interface { Get(key string) (io.ReadCloser, error) Put(ctx context.Context, key string, body io.ReadSeeker) (string, error) SignGet(key string) (string, error) SignPut(key string) (string, error) StartMultipartUpload(key string) error UploadPart(key string, part int64, data io.ReadSeeker) error CompleteMultipartUpload(key string) error Rename(from string, to string) error Delete(key string) error Meta(key string) (*ObjectMeta, error) }
type Wasabi ¶
func (*Wasabi) CompleteMultipartUpload ¶
func (*Wasabi) StartMultipartUpload ¶
func (*Wasabi) UploadPart ¶
Click to show internal directories.
Click to hide internal directories.