Documentation
¶
Index ¶
- func AssetKey(identityID, assetID string) string
- type Attrs
- type FakeStore
- func (s *FakeStore) Delete(ctx context.Context, ref ObjectRef) error
- func (s *FakeStore) Get(ctx context.Context, ref ObjectRef) (io.ReadCloser, Attrs, error)
- func (s *FakeStore) Head(ctx context.Context, ref ObjectRef) (Attrs, error)
- func (s *FakeStore) PresignPut(ctx context.Context, req PresignPutRequest) (PresignedPut, error)
- func (s *FakeStore) Put(ctx context.Context, ref ObjectRef, body io.Reader, opts PutOptions) (Attrs, error)
- type FilesystemStore
- func (s *FilesystemStore) Delete(ctx context.Context, ref ObjectRef) error
- func (s *FilesystemStore) Get(ctx context.Context, ref ObjectRef) (io.ReadCloser, Attrs, error)
- func (s *FilesystemStore) Head(ctx context.Context, ref ObjectRef) (Attrs, error)
- func (s *FilesystemStore) PresignPut(ctx context.Context, req PresignPutRequest) (PresignedPut, error)
- func (s *FilesystemStore) Put(ctx context.Context, ref ObjectRef, body io.Reader, opts PutOptions) (Attrs, error)
- type ObjectRef
- type PresignPutRequest
- type PresignedPut
- type PutOptions
- type S3Config
- type S3Store
- func (s *S3Store) ConfigureBrowserUploadCORS(ctx context.Context, bucket string) error
- func (s *S3Store) Delete(ctx context.Context, ref ObjectRef) error
- func (s *S3Store) Get(ctx context.Context, ref ObjectRef) (io.ReadCloser, Attrs, error)
- func (s *S3Store) Head(ctx context.Context, ref ObjectRef) (Attrs, error)
- func (s *S3Store) PresignPut(ctx context.Context, req PresignPutRequest) (PresignedPut, error)
- func (s *S3Store) Put(ctx context.Context, ref ObjectRef, body io.Reader, opts PutOptions) (Attrs, error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeStore ¶
type FakeStore struct {
// contains filtered or unexported fields
}
func (*FakeStore) PresignPut ¶
func (s *FakeStore) PresignPut(ctx context.Context, req PresignPutRequest) (PresignedPut, error)
type FilesystemStore ¶
type FilesystemStore struct {
// contains filtered or unexported fields
}
func NewFilesystem ¶
func NewFilesystem(root string) *FilesystemStore
func (*FilesystemStore) Delete ¶
func (s *FilesystemStore) Delete(ctx context.Context, ref ObjectRef) error
func (*FilesystemStore) Get ¶
func (s *FilesystemStore) Get(ctx context.Context, ref ObjectRef) (io.ReadCloser, Attrs, error)
func (*FilesystemStore) PresignPut ¶
func (s *FilesystemStore) PresignPut(ctx context.Context, req PresignPutRequest) (PresignedPut, error)
type PresignPutRequest ¶
type PresignedPut ¶
type PutOptions ¶
type S3Store ¶
type S3Store struct {
// contains filtered or unexported fields
}
func (*S3Store) ConfigureBrowserUploadCORS ¶
func (*S3Store) PresignPut ¶
func (s *S3Store) PresignPut(ctx context.Context, req PresignPutRequest) (PresignedPut, error)
type Store ¶
type Store interface {
PresignPut(context.Context, PresignPutRequest) (PresignedPut, error)
Put(context.Context, ObjectRef, io.Reader, PutOptions) (Attrs, error)
Head(context.Context, ObjectRef) (Attrs, error)
Get(context.Context, ObjectRef) (io.ReadCloser, Attrs, error)
Delete(context.Context, ObjectRef) error
}
Click to show internal directories.
Click to hide internal directories.