Documentation ¶
Index ¶
- type AssetStorageConfig
- type NoStorage
- func (_ *NoStorage) CreateBucket(ctx context.Context, name, location string) error
- func (_ *NoStorage) GetObject(ctx context.Context, bucketName, objectName string) (io.Reader, func() (*domain.AssetInfo, error), error)
- func (_ *NoStorage) GetObjectInfo(ctx context.Context, bucketName, objectName string) (*domain.AssetInfo, error)
- func (_ *NoStorage) GetObjectPresignedURL(ctx context.Context, bucketName, objectName string, expiration time.Duration) (*url.URL, error)
- func (_ *NoStorage) ListBuckets(ctx context.Context) ([]*domain.BucketInfo, error)
- func (_ *NoStorage) ListObjectInfos(ctx context.Context, bucketName, prefix string, recursive bool) ([]*domain.AssetInfo, error)
- func (_ *NoStorage) NewStorage() (static.Storage, error)
- func (_ *NoStorage) PutObject(ctx context.Context, bucketName, objectName, contentType string, ...) (*domain.AssetInfo, error)
- func (_ *NoStorage) RemoveBucket(ctx context.Context, name string) error
- func (_ *NoStorage) RemoveObject(ctx context.Context, bucketName, objectName string) error
- func (_ *NoStorage) RemoveObjects(ctx context.Context, bucketName, path string, recursive bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetStorageConfig ¶
func (*AssetStorageConfig) UnmarshalJSON ¶
func (c *AssetStorageConfig) UnmarshalJSON(data []byte) error
type NoStorage ¶
type NoStorage struct{}
func (*NoStorage) CreateBucket ¶
func (*NoStorage) GetObjectInfo ¶
func (*NoStorage) GetObjectPresignedURL ¶
func (*NoStorage) ListBuckets ¶
func (*NoStorage) ListObjectInfos ¶
func (*NoStorage) RemoveBucket ¶
func (*NoStorage) RemoveObject ¶
Click to show internal directories.
Click to hide internal directories.