Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProviderBackBlaze = Provider{"BackBlazeB2", regexp.MustCompile(`.*backblazeb2\.com\/?$`), "{{.EndpointURL.Scheme}}://{{.Bucket}}.{{.EndpointURL.Host}}/{{.Object}}"} ProviderSkiverPublic = Provider{"B2 Skiver", nil, "https://b2p.runar.dev/file/{{.Bucket}}/{{.Object}}"} )
Functions ¶
func NewS3Uplaoder ¶
func NewS3Uplaoder( l logger.AppLogger, Identifier string, options S3UploaderOptions, privateKey string, ) *s3Uploader
Types ¶
type AddFileOptions ¶ added in v0.8.4
type FileUploader ¶
type FileUploader interface { AddPublicFile(key string, r io.ReadSeeker, size int64, contentType string, contentDisposition string, options ...AddFileOptions) (types.UploadMeta, error) AddPublicFileWithAliases(keys []string, r io.ReadSeeker, size int64, contentType string, contentDisposition string, options ...AddFileOptions) ([]types.UploadMeta, error) UrlForFile(objectID string) (string, error) Identifier() string HeadFile(key string) (*s3.HeadObjectOutput, error) GetFile(key string) (*s3.GetObjectOutput, error) }
Click to show internal directories.
Click to hide internal directories.