storage

package
v0.0.0-...-0941746 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	BasePath() string
	CopyObject(ctx context.Context, from, to string) error
	DeleteObject(ctx context.Context, key string) error
	GetObject(ctx context.Context, key string) (io.ReadCloser, error)
	GetObjectSize(ctx context.Context, key string) (int64, error)
	// GetPresignedUploadUrl(ctx context.Context, key string, size uint64) (string, error)
	PutObject(ctx context.Context, key, contentType string, size int64, object io.Reader) error
	DeleteObjectsWithPrefix(ctx context.Context, prefix string) (err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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