Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("upload object not found")
Functions ¶
This section is empty.
Types ¶
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
func (*Local) Save ¶
func (s *Local) Save(_ context.Context, body io.Reader, _ SaveOptions) (SavedObject, error)
type R2 ¶
type R2 struct {
// contains filtered or unexported fields
}
func (*R2) Save ¶
func (s *R2) Save(ctx context.Context, body io.Reader, options SaveOptions) (SavedObject, error)
type SaveOptions ¶
type SaveOptions struct {
ContentType string
}
type SavedObject ¶
type Store ¶
type Store interface {
Save(ctx context.Context, body io.Reader, options SaveOptions) (SavedObject, error)
Delete(ctx context.Context, path string) error
// Returned errors are pre-commit; a failed committed stream must be aborted.
ServeHTTP(w http.ResponseWriter, r *http.Request, object Object) error
}
Click to show internal directories.
Click to hide internal directories.