-
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.
Merge pull request #5 from Holmusk/nitin/blob-storage
Changes include: - APIs for uploading (PUT), fetching (GET) and deleting (DELETE) blobs. GET method for blob service does not support streaming retrievals at the moment. PUT method for blob service also does not support chunked uploads at the moment. - API for generating user delegation Shared Access Signagture (SAS). - Drop GHC 9.0.2 from CI - Specify linux distribution for CI
- Loading branch information
Showing
22 changed files
with
882 additions
and
36 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SRC=$(shell find azure-auth/ azure-key-vault/ azure-blob-storage/ -type f -name '*.hs') | ||
|
||
.PHONY: format | ||
format: $(SRC) | ||
# we use fourmolu v16 | ||
fourmolu --mode inplace $^ |
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,5 @@ | ||
# Revision history for azure-blob-storage | ||
|
||
## 0.1.0.0 -- YYYY-mm-dd | ||
|
||
* First version. Released on an unsuspecting world. |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Holmusk | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,8 @@ | ||
module Main where | ||
|
||
import qualified Blob (someFunc) | ||
|
||
main :: IO () | ||
main = do | ||
putStrLn "Hello, Haskell!" | ||
Blob.someFunc |
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,78 @@ | ||
cabal-version: 3.0 | ||
name: azure-blob-storage | ||
version: 0.1.0.0 | ||
license: MIT | ||
license-file: LICENSE | ||
synopsis: Boilerplace/startkit for azure in Haskell (using servant) | ||
description: This provides from useful functionalities for starting out with Azure in Haskell. | ||
This includes authentication, Key vault, Blob storage and email communication related APIs. | ||
author: Holmusk | ||
maintainer: tech@holmusk.com | ||
category: Azure | ||
build-type: Simple | ||
extra-doc-files: CHANGELOG.md | ||
tested-with: GHC == 9.2.8 | ||
GHC == 9.4.8 | ||
GHC == 9.6.3 | ||
GHC == 9.8.2 | ||
|
||
common common-options | ||
ghc-options: -Wall | ||
-Wincomplete-uni-patterns | ||
-Wincomplete-record-updates | ||
-Wcompat | ||
-Widentities | ||
-Wredundant-constraints | ||
-fhide-source-paths | ||
-Wpartial-fields | ||
-Wunrecognised-pragmas | ||
-Wmissing-deriving-strategies | ||
-Wunticked-promoted-constructors | ||
-Winvalid-haddock | ||
-Woperator-whitespace | ||
-Wredundant-bang-patterns | ||
-Wunused-packages | ||
build-depends: base >= 4.7 && <5 | ||
default-language: GHC2021 | ||
default-extensions: DataKinds | ||
DerivingStrategies | ||
DerivingVia | ||
LambdaCase | ||
NoImportQualifiedPost | ||
NoGeneralisedNewtypeDeriving | ||
OverloadedStrings | ||
OverloadedLabels | ||
RecordWildCards | ||
TypeFamilies | ||
ViewPatterns | ||
if os(linux) | ||
ghc-options: -optl-fuse-ld=gold | ||
ld-options: -fuse-ld=gold | ||
|
||
library | ||
import: common-options | ||
exposed-modules: Azure.Blob.DeleteBlob | ||
Azure.Blob.GetBlob | ||
Azure.Blob.PutBlob | ||
Azure.Blob.Types | ||
Azure.Blob.SharedAccessSignature | ||
Azure.Blob.UserDelegationKey | ||
Azure.Blob.Utils | ||
build-depends: azure-auth | ||
, aeson | ||
, base64-bytestring | ||
, bytestring | ||
, cryptohash-sha256 | ||
, http-client-tls | ||
, http-media | ||
, http-types | ||
, servant | ||
, servant-client | ||
, servant-xml ^>= 1.0.3 | ||
, xmlbf | ||
, text | ||
, time | ||
, unliftio | ||
, unordered-containers | ||
hs-source-dirs: src | ||
default-language: Haskell2010 |
Oops, something went wrong.