storage

package
v0.0.0-...-44c395f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudinaryOptions

type CloudinaryOptions struct {
	UniqueFilesOnly       bool
	OverwriteExistingFile bool
	CloudName             string
	APIKey                string
	APISecret             string
}

type CloudinaryStore

type CloudinaryStore struct {
	// contains filtered or unexported fields
}

func NewCloudinary

func NewCloudinary(opts CloudinaryOptions) (*CloudinaryStore, error)

func (*CloudinaryStore) Close

func (c *CloudinaryStore) Close() error

func (*CloudinaryStore) Upload

type Disk

type Disk struct {
	// contains filtered or unexported fields
}

func NewDiskStorage

func NewDiskStorage(folder string) (*Disk, error)

func (*Disk) Close

func (d *Disk) Close() error

func (*Disk) Upload

type S3Options

type S3Options struct {
	Bucket string

	// Only use if the bucket supports ACL
	ACL types.ObjectCannedACL
}

type S3Store

type S3Store struct {
	// contains filtered or unexported fields
}

func NewS3FromClient

func NewS3FromClient(client *s3.Client, opts S3Options) (*S3Store, error)

func NewS3FromConfig

func NewS3FromConfig(cfg aws.Config, opts S3Options) (*S3Store, error)

func NewS3FromEnvironment

func NewS3FromEnvironment(opts S3Options) (*S3Store, error)

func (*S3Store) Close

func (s *S3Store) Close() error

func (*S3Store) Upload

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL