attachments

package
v0.0.0-...-ea65d50 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// AuthorizeUpload authorizes an upload. The returned authorization will include URLs for uploading
	// and downloading the attachment. Uploads are expected to be submitted as a multipart form post that
	// includes the UploadFormData from the authorization as well as a "file" field with the file itself.
	// Upload authorizations are time limited and expire approximately at the AuthorizationExpiresAt listed
	// in the authorization. Uploads are also limited to a content size indicated by MaxUploadSize.
	AuthorizeUpload() (*model.UploadAuthorization, error)

	// MaxAttachmentSize reports the maximum attachment size supported by this upload manager.
	MaxAttachmentSize() int64
}

Manager is an interface for a facility that can authorize uploads to an attachment storage service like S3.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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