-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0bea6a
commit d30d752
Showing
8 changed files
with
36 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
module Azure.Blob | ||
( | ||
-- ** Variants to fetch a blob object | ||
( -- ** Variants to fetch a blob object | ||
getBlobObject | ||
, getBlobObjectEither | ||
|
||
-- ** Variants to upload a blob to Blob storage | ||
-- ** Variants to upload a blob to Blob storage | ||
, putBlobObject | ||
, putBlobObjectEither | ||
|
||
-- ** Variants for deleting a blob object | ||
-- ** Variants for deleting a blob object | ||
, deleteBlobObject | ||
, deleteBlobObjectEither | ||
|
||
-- ** Generating a Shared Access Signature URI | ||
-- ** Generating a Shared Access Signature URI | ||
, generateSas | ||
|
||
-- ** Types for dealing with Blob storage functions | ||
-- ** Types for dealing with Blob storage functions | ||
, AccountName (..) | ||
, ContainerName (..) | ||
, BlobName (..) | ||
) where | ||
|
||
import Azure.Blob.PutBlob | ||
import Azure.Blob.GetBlob | ||
import Azure.Blob.DeleteBlob | ||
import Azure.Blob.GetBlob | ||
import Azure.Blob.PutBlob | ||
import Azure.Blob.SharedAccessSignature | ||
import Azure.Blob.Types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module Azure.Blob.Utils | ||
( blobStorageResourceUrl | ||
, mkBlobHostUrl | ||
) where | ||
|
||
import Azure.Blob.Types (AccountName (..)) | ||
import Data.Text (Text) | ||
|
||
import qualified Data.Text as Text | ||
|
||
blobStorageResourceUrl :: Text | ||
blobStorageResourceUrl = "https://storage.azure.com/" | ||
|
||
mkBlobHostUrl :: AccountName -> String | ||
mkBlobHostUrl (AccountName accountName) = Text.unpack accountName <> ".blob.core.windows.net" |