service

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const MinutesToExpireSignedURL = 15

Variables

This section is empty.

Functions

func GetKey added in v1.0.2

func GetKey(filePath string) string

Types

type IService

type IService interface {
	ListBuckets() (string, error)
	CreateBucket(name string, isPublic bool) (string, error)
	PutObjectsAsync(bucket string, filenames []string, outCh chan string, errCh chan error)
	PutObjects(bucket string, filePaths []string) (output []string, errArr []error)
	ListObjects(bucket string) (string, error)
	GetObject(bucket, key, path string) error
	DeleteObject(bucket, key string) error
	DeleteBucket(bucket string) error
	AssignURL(bucket, key string) (string, error)
}

func New

func New(config *config.AWS) (IService, error)

Jump to

Keyboard shortcuts

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