Documentation ¶
Index ¶
- 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 s3iface.S3API, bucket, file string, writer io.WriterAt) (int64, error)
- func EmptyBucket(svc s3iface.S3API, bucket string) error
- func GetAWSSession() (*session.Session, error)
- func GetAWSSessionFromStorage(opts storage.S3) (*session.Session, error)
- func IsFileNotFoundError(err error) bool
- func ListObjects(svc *s3.S3, bucket string) (*s3.ListObjectsOutput, error)
- func S3Stat(svc *s3.S3, bucket, filename string) (*s3.Object, error)
- func UploadFileToS3(sess client.ConfigProvider, fr io.ReadSeeker, bucket, filename string) error
- type FileNotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func GetAWSSession ¶
func GetAWSSessionFromStorage ¶ added in v0.3.0
func IsFileNotFoundError ¶ added in v0.4.0
func ListObjects ¶ added in v0.3.0
func UploadFileToS3 ¶ added in v0.3.0
func UploadFileToS3(sess client.ConfigProvider, fr io.ReadSeeker, bucket, filename string) error
Types ¶
type FileNotFoundError ¶
type FileNotFoundError struct {
// contains filtered or unexported fields
}
func NewFileNotFoundErrorf ¶ added in v0.4.0
func NewFileNotFoundErrorf(args ...string) *FileNotFoundError
func (*FileNotFoundError) Error ¶ added in v0.4.0
func (f *FileNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.