blob

package
v0.8.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsReservedPath added in v0.6.1

func IsReservedPath(path string) bool

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 BlobURL

type BlobURL struct {
	Key string `json:"key"`
	Url string `json:"url"`
}

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"`
}

type UploadResponse

type UploadResponse struct {
	Key          string `json:"key"`
	Version      string `json:"version"`
	ETag         string `json:"etag"`
	Size         int64  `json:"size"`
	LastModified string `json:"lastModified"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL