storage

package
v0.0.0-...-488514f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageClient

type StorageClient struct {
	// contains filtered or unexported fields
}
var PublicBucket *StorageClient

func NewS3Client

func NewS3Client(cfg *cfg.S3Config) (*StorageClient, error)

func (*StorageClient) Delete

func (s *StorageClient) Delete(directory, filename string) error

func (*StorageClient) Replace

func (s *StorageClient) Replace(directory string, filename string, body io.Reader) error

func (*StorageClient) Upload

func (s *StorageClient) Upload(directory string, filename string, body io.Reader) error

Jump to

Keyboard shortcuts

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