Documentation
¶
Index ¶
- func NewBlobGetHandler(blobs blobstore.Blobstore) handler.Func
- func NewBlobPutHandler(presigner presigner.RequestPresigner, allocs allocationstore.AllocationStore, ...) handler.Func
- type BlobService
- type Blobs
- type Option
- func WithAcceptanceStore(acceptanceStore acceptancestore.AcceptanceStore) Option
- func WithAccess(access access.Access) Option
- func WithAllocationStore(allocationStore allocationstore.AllocationStore) Option
- func WithBlobstore(bs blobstore.Blobstore) Option
- func WithDSAllocationStore(allocsDatastore datastore.Datastore) Option
- func WithLogLevel(level string) Option
- func WithPresigner(presigner presigner.RequestPresigner) Option
- func WithPublicURLAccess(publicURL url.URL) Option
- func WithPublicURLPresigner(id principal.Signer, publicURL url.URL) Option
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlobPutHandler ¶
func NewBlobPutHandler(presigner presigner.RequestPresigner, allocs allocationstore.AllocationStore, 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 WithAllocationStore ¶
func WithAllocationStore(allocationStore allocationstore.AllocationStore) Option
func WithBlobstore ¶
func WithDSAllocationStore ¶
func WithLogLevel ¶
WithLogLevel changes the log level for the claims subsystem.
func WithPresigner ¶
func WithPresigner(presigner presigner.RequestPresigner) Option
func WithPublicURLAccess ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(presigner presigner.RequestPresigner, allocs allocationstore.AllocationStore, blobs blobstore.Blobstore) (*Server, error)
func (*Server) RegisterRoutes ¶ added in v0.0.12
Click to show internal directories.
Click to hide internal directories.