Documentation
¶
Index ¶
- Variables
- func BucketExists(svc *s3.S3, bucketname string) (bool, error)
- func CreateBucket(svc *s3.S3, bucket string) error
- func DeleteBucket(svc *s3.S3, bucket string) error
- func DeleteFile(svc *s3.S3, bucket, filename string) error
- func Diag(params ...interface{})
- func DownloadFile(svc *s3.S3, bucket, file string, writer io.WriterAt) (int64, error)
- func EmptyBucket(svc *s3.S3, bucket string) error
- func GetAWSSession() (*session.Session, error)
- func GetAWSSessionFromStorage(opts storage.S3) (*session.Session, error)
- func ListObjects(svc *s3.S3, bucket string) (*s3.ListObjectsOutput, error)
- func S3Stat(svc *s3.S3, bucket, filename string) (*s3.Object, error)
- func UploadFileToS3(sess *session.Session, fr io.Reader, bucket, filename string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FileNotFoundError = fmt.Errorf("File not found")
)
Functions ¶
func DownloadFile ¶
func GetAWSSession ¶
func GetAWSSessionFromStorage ¶ added in v0.3.0
func ListObjects ¶ added in v0.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.