diff --git a/README.md b/README.md index ac730ae..9d49c6f 100644 --- a/README.md +++ b/README.md @@ -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) \ No newline at end of file +# 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 +``` diff --git a/service.go b/service.go index 6ae2125..1de3ba9 100644 --- a/service.go +++ b/service.go @@ -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, }