storage

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader added in v0.44.0

type Downloader interface {
	// Download downloads a file.
	// Returns content, content type and error if the download fails.
	Download(ctx context.Context, name string) ([]byte, string, error)
}

type Signer

type Signer interface {
	// GetSignedURL returns a signed URL, and an error if the operation fails.
	GetSignedURL(context.Context, string, time.Duration) (string, error)
}

type Storage added in v0.43.0

type Storage interface {
	Signer
	Uploader
	Downloader
}

type Uploader

type Uploader interface {
	// Upload uploads a file.
	// Returns an error if the upload fails.
	Upload(context.Context, string, io.ReadSeeker) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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