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

Commit

Permalink
docs: Add a baget for integration tests and modified README (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
abyss-w authored Sep 8, 2021
1 parent 35ffbc6 commit 1e61afb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## go-service-obs
[![Build Status](https://github.com/beyondstorage/go-service-obs/workflows/Unit%20Test/badge.svg?branch=master)](https://github.com/beyondstorage/go-service-obs/actions?query=workflow%3A%22Unit+Test%22)
[![Integration Tests](https://teamcity.beyondstorage.io/app/rest/builds/buildType:(id:Services_Obs_IntegrationTests)/statusIcon)](https://teamcity.beyondstorage.io/buildConfiguration/Services_Obs_IntegrationTests)
[![License](https://img.shields.io/badge/license-apache%20v2-blue.svg)](https://github.com/Xuanwo/storage/blob/master/LICENSE)
[![](https://img.shields.io/matrix/beyondstorage@go-storage:matrix.org.svg?logo=matrix)](https://matrix.to/#/#beyondstorage@go-storage:matrix.org)

obs service support for [go-storage](https://github.com/beyondstorage/go-storage)
# go-services-obs

OBS(Huawei Object Storage Service) service support for [go-storage](https://github.com/beyondstorage/go-storage).

## Install

```go
go get github.com/beyondstorage/go-service-obs
```
4 changes: 2 additions & 2 deletions service.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ func (s *Service) get(ctx context.Context, name string, opt pairServiceGet) (sto
func (s *Service) list(ctx context.Context, opt pairServiceList) (sti *StoragerIterator, err error) {
input := &storagePageStatus{}

return NewStoragerIterator(ctx, s.nexStoragePage, input), nil
return NewStoragerIterator(ctx, s.nextStoragePage, input), nil
}

func (s *Service) nexStoragePage(ctx context.Context, page *StoragerPage) error {
func (s *Service) nextStoragePage(ctx context.Context, page *StoragerPage) error {
input := &obs.ListBucketsInput{
QueryLocation: true,
}
Expand Down

0 comments on commit 1e61afb

Please sign in to comment.