Safe Haskell | None |
---|---|
Language | Haskell98 |
- headObject :: Address -> AWS (Maybe HeadObjectResponse)
- exists :: Address -> AWS Bool
- existsPrefix :: Address -> AWS Bool
- getSize :: Address -> AWS (Maybe Int)
- size :: Address -> AWS (Maybe Bytes)
- sizeRecursively :: Address -> AWS [Sized Address]
- delete :: Address -> AWS ()
- concatMultipart :: WriteMode -> Int -> [Address] -> Address -> ExceptT ConcatError AWS ()
- copy :: Address -> Address -> ExceptT CopyError AWS ()
- copyWithMode :: WriteMode -> Address -> Address -> ExceptT CopyError AWS ()
- copyMultipart :: Address -> Address -> Int -> Int -> Int -> ExceptT CopyError AWS ()
- sync :: Address -> Address -> Int -> ExceptT SyncError AWS ()
- syncWithMode :: SyncMode -> Address -> Address -> Int -> ExceptT SyncError AWS ()
- move :: Address -> Address -> ExceptT CopyError AWS ()
- upload :: FilePath -> Address -> ExceptT UploadError AWS ()
- uploadWithMode :: WriteMode -> FilePath -> Address -> ExceptT UploadError AWS ()
- uploadRecursive :: FilePath -> Address -> Int -> ExceptT UploadError AWS ()
- uploadRecursiveWithMode :: WriteMode -> FilePath -> Address -> Int -> ExceptT UploadError AWS ()
- multipartUpload :: FilePath -> Address -> Integer -> Integer -> Int -> ExceptT UploadError AWS ()
- uploadSingle :: FilePath -> Address -> AWS ()
- write :: Address -> Text -> AWS WriteResult
- writeWithMode :: WriteMode -> Address -> Text -> AWS WriteResult
- read :: Address -> AWS (Maybe Text)
- getObjects :: Address -> AWS ([Key], [Key])
- getObjectsRecursively :: Address -> AWS [Object]
- listObjects :: Address -> AWS ([Address], [Address])
- list :: Address -> AWS [Address]
- listRecursively :: Address -> AWS [Address]
- download :: Address -> FilePath -> ExceptT DownloadError AWS ()
- downloadWithMode :: WriteMode -> Address -> FilePath -> ExceptT DownloadError AWS ()
- downloadSingle :: Address -> FilePath -> ExceptT DownloadError AWS ()
- downloadWithRange :: Address -> Int -> Int -> FilePath -> AWS ()
- multipartDownload :: Address -> FilePath -> Int -> Integer -> Int -> ExceptT DownloadError AWS ()
- downloadRecursive :: Address -> FilePath -> ExceptT DownloadError AWS ()
- downloadRecursiveWithMode :: WriteMode -> Address -> FilePath -> ExceptT DownloadError AWS ()
- createMultipartUpload :: Address -> AWS Text
- listMultipartParts :: Address -> Text -> AWS [Part]
- listMultiparts :: Bucket -> AWS [MultipartUpload]
- listOldMultiparts :: Bucket -> AWS [MultipartUpload]
- listOldMultiparts' :: Bucket -> Int -> AWS [MultipartUpload]
- abortMultipart :: Bucket -> MultipartUpload -> AWS ()
- abortMultipart' :: Address -> Text -> AWS ()
- filterOld :: UTCTime -> MultipartUpload -> Bool
- filterNDays :: Int -> UTCTime -> MultipartUpload -> Bool
- grantReadAccess :: Address -> ReadGrant -> AWS ()
- chunkFilesBySize :: Int -> Int64 -> [(FilePath, Int64)] -> [[(FilePath, Int64)]]
Operations
Existence
headObject :: Address -> AWS (Maybe HeadObjectResponse) Source #
Retrieves the HeadObjectResponse
. Handles any 404 response by converting to Maybe.
Size
Delete
Copy
concatMultipart :: WriteMode -> Int -> [Address] -> Address -> ExceptT ConcatError AWS () Source #
Recursive copy
Move
Upload
uploadWithMode :: WriteMode -> FilePath -> Address -> ExceptT UploadError AWS () Source #
uploadRecursive :: FilePath -> Address -> Int -> ExceptT UploadError AWS () Source #
uploadRecursiveWithMode :: WriteMode -> FilePath -> Address -> Int -> ExceptT UploadError AWS () Source #
multipartUpload :: FilePath -> Address -> Integer -> Integer -> Int -> ExceptT UploadError AWS () Source #
Write
writeWithMode :: WriteMode -> Address -> Text -> AWS WriteResult Source #
Read
List
listObjects :: Address -> AWS ([Address], [Address]) Source #
Return a tuple of the prefixes and keys at the provided S3 Address.
Download
downloadWithMode :: WriteMode -> Address -> FilePath -> ExceptT DownloadError AWS () Source #
downloadSingle :: Address -> FilePath -> ExceptT DownloadError AWS () Source #
multipartDownload :: Address -> FilePath -> Int -> Integer -> Int -> ExceptT DownloadError AWS () Source #
downloadRecursive :: Address -> FilePath -> ExceptT DownloadError AWS () Source #
downloadRecursiveWithMode :: WriteMode -> Address -> FilePath -> ExceptT DownloadError AWS () Source #
Multipart
listMultiparts :: Bucket -> AWS [MultipartUpload] Source #
listOldMultiparts :: Bucket -> AWS [MultipartUpload] Source #
listOldMultiparts' :: Bucket -> Int -> AWS [MultipartUpload] Source #
abortMultipart :: Bucket -> MultipartUpload -> AWS () Source #
Filter
filterNDays :: Int -> UTCTime -> MultipartUpload -> Bool Source #