Documentation
¶
Index ¶
- func IsReservedPath(path string) bool
- type BlobAPIError
- type BlobHandler
- func (h *BlobHandler) DeleteObjects(ctx *gin.Context)
- func (h *BlobHandler) DownloadObjectsPresigned(ctx *gin.Context)
- func (h *BlobHandler) ListObjects(ctx *gin.Context)
- func (h *BlobHandler) Upload(ctx *gin.Context)
- func (h *BlobHandler) UploadACL(ctx *gin.Context)
- func (h *BlobHandler) UploadComplete(ctx *gin.Context)
- func (h *BlobHandler) UploadMultipart(ctx *gin.Context)
- func (h *BlobHandler) UploadPresigned(ctx *gin.Context)
- type BlobURL
- type DeleteRequest
- type DeleteResponse
- type PresignURLRequest
- type PresignURLResponse
- type UploadRequest
- type UploadResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReservedPath ¶ added in v0.6.1
IsReservedPath checks if a path contains reserved system paths
Types ¶
type BlobAPIError ¶
type BlobAPIError struct {
api.SyftAPIError
Key string `json:"key"`
}
func NewBlobAPIError ¶
func NewBlobAPIError(code string, message string, key string) *BlobAPIError
func (*BlobAPIError) Error ¶
func (e *BlobAPIError) Error() string
type BlobHandler ¶
type BlobHandler struct {
// contains filtered or unexported fields
}
func New ¶
func New(blob *blob.BlobService, acl *acl.ACLService) *BlobHandler
func (*BlobHandler) DeleteObjects ¶
func (h *BlobHandler) DeleteObjects(ctx *gin.Context)
func (*BlobHandler) DownloadObjectsPresigned ¶
func (h *BlobHandler) DownloadObjectsPresigned(ctx *gin.Context)
func (*BlobHandler) ListObjects ¶
func (h *BlobHandler) ListObjects(ctx *gin.Context)
func (*BlobHandler) Upload ¶
func (h *BlobHandler) Upload(ctx *gin.Context)
func (*BlobHandler) UploadACL ¶
func (h *BlobHandler) UploadACL(ctx *gin.Context)
func (*BlobHandler) UploadComplete ¶
func (h *BlobHandler) UploadComplete(ctx *gin.Context)
func (*BlobHandler) UploadMultipart ¶
func (h *BlobHandler) UploadMultipart(ctx *gin.Context)
func (*BlobHandler) UploadPresigned ¶
func (h *BlobHandler) UploadPresigned(ctx *gin.Context)
type DeleteRequest ¶
type DeleteRequest struct {
Keys []string `json:"keys" binding:"required,min=1"`
}
type DeleteResponse ¶
type DeleteResponse struct {
Deleted []string `json:"deleted"`
Errors []*BlobAPIError `json:"errors"`
}
type PresignURLRequest ¶
type PresignURLRequest struct {
Keys []string `json:"keys" binding:"required,min=1"`
}
type PresignURLResponse ¶
type PresignURLResponse struct {
URLs []*BlobURL `json:"urls"`
Errors []*BlobAPIError `json:"errors"`
}
type UploadRequest ¶
type UploadRequest struct {
Key string `form:"key" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.