storage

package
v0.43.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 Downloaded added in v0.43.0

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

type Signer

type Signer interface {
	// GetSignedURL returns a signed URL. The URL is valid for the given duration
	GetSignedURL(context.Context, string, time.Duration) (string, error)
}

type Storage added in v0.43.0

type Storage interface {
	Signer
	Uploader
	Downloaded
}

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