bucket

package
v0.0.0-...-effae83 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsConfig

type AwsConfig struct {
	Config     *aws.Config
	BucketDown string
	BucketUp   string
}

type Bucket

type Bucket struct {
	// contains filtered or unexported fields
}

func New

func New(typeBucket TypeBucket, cfg any) (bucket *Bucket, err error)

func (*Bucket) Delete

func (bucket *Bucket) Delete(key string) error

func (*Bucket) Download

func (bucket *Bucket) Download(src, dest string) (file *os.File, err error)

func (*Bucket) Upload

func (bucket *Bucket) Upload(file io.Reader, key string) error

type IBucket

type IBucket interface {
	Upload(io.Reader, string) error
	Download(string, string) (*os.File, error)
	Delete(string) error
}

type TypeBucket

type TypeBucket int
const (
	Aws TypeBucket = iota
)

Jump to

Keyboard shortcuts

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