This repository was archived by the owner on Oct 18, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +34
-4
lines changed Expand file tree Collapse file tree 1 file changed +34
-4
lines changed Original file line number Diff line number Diff line change 1
- # go-services-azblob
2
-
3
1
[ ![ Build Status] ( https://github.com/beyondstorage/go-service-azblob/workflows/Unit%20Test/badge.svg?branch=master )] ( https://github.com/beyondstorage/go-service-azblob/actions?query=workflow%3A%22Unit+Test%22 )
4
2
[ ![ Integration Tests] ( https://teamcity.beyondstorage.io/app/rest/builds/buildType:(id:Services_GoServiceAzblob_IntegrationTests)/statusIcon )] ( https://teamcity.beyondstorage.io/buildConfiguration/Services_GoServiceAzblob_IntegrationTests )
5
3
[ ![ License] ( https://img.shields.io/badge/license-apache%20v2-blue.svg )] ( https://github.com/Xuanwo/storage/blob/master/LICENSE )
6
- [ ![ go storage dev] ( https://img.shields.io/matrix/go-service-azblob:aos.dev.svg?server_fqdn=chat.aos.dev&label=%23go-service-azblob%3Aaos.dev&logo=matrix )] ( https://matrix.to/#/#go-service-azblob:aos.dev )
4
+ [ ![ ] ( https://img.shields.io/matrix/beyondstorage@go-storage:matrix.org.svg?logo=matrix )] ( https://matrix.to/#/#beyondstorage@go-storage:matrix.org )
5
+
6
+ # go-services-azblob
7
+
8
+ [ Azure Blob Storage] ( https://docs.microsoft.com/en-us/azure/storage/blobs/ ) service support for [ go-storage] ( https://github.com/beyondstorage/go-storage ) .
9
+
10
+ ## Install
11
+
12
+ ``` go
13
+ go get github.com /beyondstorage/go -service-azblob/v2
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ ``` go
19
+ import (
20
+ " log"
21
+
22
+ _ " github.com/beyondstorage/go-service-azblob/v2"
23
+ " github.com/beyondstorage/go-storage/v4/services"
24
+ )
25
+
26
+ func main () {
27
+ store , err := services.NewStoragerFromString (" azblob://container_name/path/to/workdir?credential=hmac:<account_name>:<account_key>&endpoint=https:<account_name>.<endpoint_suffix>" )
28
+ if err != nil {
29
+ log.Fatal (err)
30
+ }
31
+
32
+ // Write data from io.Reader into hello.txt
33
+ n , err := store.Write (" hello.txt" , r, length)
34
+ }
35
+ ```
7
36
8
- azblob services support for [ go-storage] ( https://github.com/beyondstorage/go-storage )
37
+ - See more examples in [ go-storage-example] ( https://github.com/beyondstorage/go-storage-example ) .
38
+ - Read [ more docs] ( https://beyondstorage.io/docs/go-storage/services/azblob ) about go-service-azblob.
You can’t perform that action at this time.
0 commit comments