Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PluginFlags ¶
PluginFlags returns CLI flags contributed by all registered attachment store plugins.
Types ¶
type AttachmentStore ¶
type AttachmentStore interface {
// Store writes file data and returns storage key, size, and SHA256.
Store(ctx context.Context, data io.Reader, maxSize int64, contentType string) (*FileStoreResult, error)
// Retrieve returns a reader for the stored file.
Retrieve(ctx context.Context, storageKey string) (io.ReadCloser, error)
// Delete removes the stored file.
Delete(ctx context.Context, storageKey string) error
// GetSignedURL returns a time-limited signed download URL, if supported.
GetSignedURL(ctx context.Context, storageKey string, expiry time.Duration) (*url.URL, error)
}
AttachmentStore defines the interface for file storage backends.
type FileStoreResult ¶
FileStoreResult is the result of a file store operation.
Click to show internal directories.
Click to hide internal directories.