Update module to point to opendev

This patch updates documentation and the go-redfish module to change
references of 'github.com/Nordix/' to 'opendev.org/airship/'

Change-Id: I9ceddcb8a6ed6c888a3f6e143ada730718999100
This commit is contained in:
Alexander Hughes 2020-01-09 16:48:00 +00:00 committed by Dmitry Ukov
parent 3963d2eafe
commit 3ab47e28ba
8 changed files with 34 additions and 12 deletions

21
.gitignore vendored Normal file
View File

@ -0,0 +1,21 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
bin/
# Test binary, build wiith `go test -c`
*.test
# Output of the go coverage tool
*.out
.coverage/
# Various user specific files
.DS_Store
.idea/
.vimrc
*.swp
.vscode/

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.opendev.org
port=29418
project=airship/go-redfish.git

View File

@ -1,7 +1,7 @@
.PHONY: code-gen
code-gen:
rm -rf client
openapi-generator generate -i ./spec/openapi.yaml -g go --package-name "client" --git-repo-id go-redfish/client --git-user-id Nordix -o client/ -p enumClassPrefix=true
openapi-generator generate -i ./spec/openapi.yaml -g go --package-name "client" --git-repo-id go-redfish/client --git-user-id airship --git-host opendev.org -o client/ -p enumClassPrefix=true
mkdir -p api
go run api_generator.go | gofmt > api/service_interface.go
go generate api/service_interface.go

View File

@ -12,7 +12,7 @@ To use `go-redfish` library in go code, you just need to import the library as b
import (
"fmt"
redfish "github.com/Nordix/go-redfish/client"
redfish "opendev.org/airship/go-redfish/client"
)
```
@ -28,7 +28,7 @@ cfg := &redfish.Configuration{
redfishApi := redfish.NewAPIClient(cfg).DefaultApi
```
Use `redfishApi` to interact with redfish server. This object contains get, set and list functions for different redfish resources. There are loose validations on the client side for the required paramaters of a certain API. In case of any error e.g. missing a required parameter; then server will generate the error. To see the available actions for API endpoints see [Endpoint Reference](https://github.com/Nordix/go-redfish/tree/master/client#documentation-for-api-endpoints) and [Model Definitions](https://github.com/Nordix/go-redfish/tree/master/client#documentation-for-models). See following examples for different operations.
Use `redfishApi` to interact with redfish server. This object contains get, set and list functions for different redfish resources. There are loose validations on the client side for the required paramaters of a certain API. In case of any error e.g. missing a required parameter; then server will generate the error. To see the available actions for API endpoints see [Endpoint Reference](https://opendev.org/airship/go-redfish/tree/master/client#documentation-for-api-endpoints) and [Model Definitions](https://opendev.org/airship/go-redfish/tree/master/client#documentation-for-models). See following examples for different operations.
## Examples ##

View File

@ -5,7 +5,7 @@ package mocks
import (
context "context"
client "github.com/Nordix/go-redfish/client"
client "opendev.org/airship/go-redfish/client"
http "net/http"

View File

@ -4,7 +4,7 @@ import (
"context"
"net/http"
client "github.com/Nordix/go-redfish/client"
client "opendev.org/airship/go-redfish/client"
)
//go:generate mockery -name=RedfishAPI -output ./mocks

View File

@ -4,7 +4,7 @@ import (
"fmt"
"reflect"
. "github.com/Nordix/go-redfish/client"
. "opendev.org/airship/go-redfish/client"
)
func main() {
@ -16,7 +16,7 @@ import (
"context"
"net/http"
client "github.com/Nordix/go-redfish/client"
client "opendev.org/airship/go-redfish/client"
)
//go:generate mockery -name=RedfishAPI -output ./mocks

View File

@ -1,8 +1,5 @@
module github.com/Nordix/go-redfish/client
module opendev.org/airship/go-redfish/client
require (
github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6
golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a
)
require golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a
go 1.13