Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Region = Text
- getLocation :: Bucket -> Minio Region
- getService :: Minio [BucketInfo]
- data ListObjectsResult = ListObjectsResult {
- lorHasMore :: Bool
- lorNextToken :: Maybe Text
- lorObjects :: [ObjectInfo]
- lorCPrefixes :: [Text]
- listObjects' :: Bucket -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Int -> Minio ListObjectsResult
- headBucket :: Bucket -> Minio Bool
- getObject' :: Bucket -> Object -> Query -> [Header] -> Minio ([Header], ResumableSource Minio ByteString)
- headObject :: Bucket -> Object -> Minio ObjectInfo
- putBucket :: Bucket -> Region -> Minio ()
- type ETag = Text
- putObjectSingle :: Bucket -> Object -> [Header] -> Handle -> Int64 -> Int64 -> Minio ETag
- copyObjectSingle :: Bucket -> Object -> CopyPartSource -> [Header] -> Minio (ETag, UTCTime)
- type UploadId = Text
- type PartTuple = (PartNumber, ETag)
- data Payload
- type PartNumber = Int16
- data CopyPartSource = CopyPartSource {}
- newMultipartUpload :: Bucket -> Object -> [Header] -> Minio UploadId
- putObjectPart :: Bucket -> Object -> UploadId -> PartNumber -> [Header] -> Payload -> Minio PartTuple
- copyObjectPart :: Bucket -> Object -> CopyPartSource -> UploadId -> PartNumber -> [Header] -> Minio (ETag, UTCTime)
- completeMultipartUpload :: Bucket -> Object -> UploadId -> [PartTuple] -> Minio ETag
- abortMultipartUpload :: Bucket -> Object -> UploadId -> Minio ()
- data ListUploadsResult = ListUploadsResult {
- lurHasMore :: Bool
- lurNextKey :: Maybe Text
- lurNextUpload :: Maybe Text
- lurUploads :: [(Object, UploadId, UTCTime)]
- lurCPrefixes :: [Text]
- listIncompleteUploads' :: Bucket -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Int -> Minio ListUploadsResult
- data ListPartsResult = ListPartsResult {
- lprHasMore :: Bool
- lprNextPart :: Maybe Int
- lprParts :: [ObjectPartInfo]
- listIncompleteParts' :: Bucket -> Object -> UploadId -> Maybe Text -> Maybe Text -> Minio ListPartsResult
- deleteBucket :: Bucket -> Minio ()
- deleteObject :: Bucket -> Object -> Minio ()
Documentation
Represents a region TODO: This could be a Sum Type with all defined regions for AWS.
Listing buckets
getService :: Minio [BucketInfo] Source #
Fetch all buckets from the service.
Listing objects
data ListObjectsResult Source #
Represents result from a listing of objects in a bucket.
ListObjectsResult | |
|
listObjects' :: Bucket -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Int -> Minio ListObjectsResult Source #
List objects in a bucket matching prefix up to delimiter, starting from nextToken.
Retrieving buckets
Retrieving objects
getObject' :: Bucket -> Object -> Query -> [Header] -> Minio ([Header], ResumableSource Minio ByteString) Source #
GET an object from the service and return the response headers and a conduit source for the object content
headObject :: Bucket -> Object -> Minio ObjectInfo Source #
Get metadata of an object.
Creating buckets and objects
putObjectSingle :: Bucket -> Object -> [Header] -> Handle -> Int64 -> Int64 -> Minio ETag Source #
PUT an object into the service. This function performs a single PUT object call, and so can only transfer objects upto 5GiB.
copyObjectSingle :: Bucket -> Object -> CopyPartSource -> [Header] -> Minio (ETag, UTCTime) Source #
Performs server-side copy of an object that is upto 5GiB in size. If the object is greater than 5GiB, this function throws the error returned by the server.
Multipart Upload APIs
type PartTuple = (PartNumber, ETag) Source #
A type to represent a part-number and etag.
Represents different kinds of payload that are used with S3 API requests.
type PartNumber = Int16 Source #
A type alias to represent a part-number for multipart upload
data CopyPartSource Source #
CopyPartSource | |
|
newMultipartUpload :: Bucket -> Object -> [Header] -> Minio UploadId Source #
Create a new multipart upload.
putObjectPart :: Bucket -> Object -> UploadId -> PartNumber -> [Header] -> Payload -> Minio PartTuple Source #
PUT a part of an object as part of a multipart upload.
copyObjectPart :: Bucket -> Object -> CopyPartSource -> UploadId -> PartNumber -> [Header] -> Minio (ETag, UTCTime) Source #
Performs server-side copy of an object or part of an object as an upload part of an ongoing multi-part upload.
completeMultipartUpload :: Bucket -> Object -> UploadId -> [PartTuple] -> Minio ETag Source #
Complete a multipart upload.
data ListUploadsResult Source #
Represents result from a listing of incomplete uploads to a bucket.
ListUploadsResult | |
|
listIncompleteUploads' :: Bucket -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Int -> Minio ListUploadsResult Source #
List incomplete multipart uploads.
data ListPartsResult Source #
Represents result from a listing of object parts of an ongoing multipart upload.
ListPartsResult | |
|
listIncompleteParts' :: Bucket -> Object -> UploadId -> Maybe Text -> Maybe Text -> Minio ListPartsResult Source #
List parts of an ongoing multipart upload.
Deletion APIs
deleteBucket :: Bucket -> Minio () Source #
DELETE a bucket from the service.