Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit 1d03b26

Browse files
authored
docs: Update README (#51)
1 parent 09f7072 commit 1d03b26

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

README.md

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,38 @@
1-
# go-services-azblob
2-
31
[![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)
42
[![Integration Tests](https://teamcity.beyondstorage.io/app/rest/builds/buildType:(id:Services_GoServiceAzblob_IntegrationTests)/statusIcon)](https://teamcity.beyondstorage.io/buildConfiguration/Services_GoServiceAzblob_IntegrationTests)
53
[![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+
```
736

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.

0 commit comments

Comments
 (0)