blob

package
v0.0.0-...-360a0c1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	PublicURL(bucket, name string) (string, error)
	Put(ctx context.Context, bucket, name, mimeType string, reader io.Reader) error
	Delete(ctx context.Context, bucket, name string) error
}

func WithInMemoryBackend

func WithInMemoryBackend(publicURL string) Store

func WithR2Backend

func WithR2Backend(endpoint, accessKeyID, secretAccessKey, publicURL string) (Store, error)

Jump to

Keyboard shortcuts

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