blobs

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0, MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlobGetHandler

func NewBlobGetHandler(blobs blobstore.Blobstore) handler.Func

Types

type BlobService

type BlobService struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*BlobService, error)

func (*BlobService) Acceptances added in v0.0.18

func (b *BlobService) Acceptances() acceptancestore.AcceptanceStore

func (*BlobService) Access

func (b *BlobService) Access() access.Access

func (*BlobService) Allocations

func (b *BlobService) Allocations() allocationstore.AllocationStore

func (*BlobService) Presigner

func (b *BlobService) Presigner() presigner.RequestPresigner

func (*BlobService) Store

func (b *BlobService) Store() blobstore.Blobstore

type Blobs

type Blobs interface {
	// Blobs is the storage interface for blobs.
	Store() blobstore.Blobstore
	// Allocations is a store for received blob allocations.
	Allocations() allocationstore.AllocationStore
	// Acceptances is a store that records accepted blobs.
	Acceptances() acceptancestore.AcceptanceStore
	// Presigner provides an interface to allow signed request access to upload blobs.
	Presigner() presigner.RequestPresigner
	// Access provides an interface to allowing public access to download blobs.
	Access() access.Access
}

type Option

type Option func(*options) error

func WithAcceptanceStore added in v0.0.18

func WithAcceptanceStore(acceptanceStore acceptancestore.AcceptanceStore) Option

func WithAccess

func WithAccess(access access.Access) Option

func WithAllocationStore

func WithAllocationStore(allocationStore allocationstore.AllocationStore) Option

func WithBlobstore

func WithBlobstore(bs blobstore.Blobstore) Option

func WithDSAllocationStore

func WithDSAllocationStore(allocsDatastore datastore.Datastore) Option

func WithLogLevel

func WithLogLevel(level string) Option

WithLogLevel changes the log level for the claims subsystem.

func WithPresigner

func WithPresigner(presigner presigner.RequestPresigner) Option

func WithPublicURLAccess

func WithPublicURLAccess(publicURL url.URL) Option

func WithPublicURLPresigner

func WithPublicURLPresigner(id principal.Signer, publicURL url.URL) Option

type Server

type Server struct {
	// contains filtered or unexported fields
}

func (*Server) RegisterRoutes added in v0.0.12

func (srv *Server) RegisterRoutes(e *echo.Echo)

Jump to

Keyboard shortcuts

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