From 1bc5f497bb7c4f842862b362913381e033e93ade Mon Sep 17 00:00:00 2001 From: Fangzhou Xu Date: Thu, 21 Apr 2016 20:00:51 -0700 Subject: [PATCH] change from stackforge to openstack Change-Id: I232a8c125d1b1c5de30df47a255c294afb1b9b64 --- .gitignore | 4 +++- .gitreview | 2 +- README.md | 6 +++--- examples/00-authentication.go | 2 +- examples/10-objectstore.go | 4 ++-- examples/30-image-v1.go | 4 ++-- identity/v2/unused-auth.go | 2 +- image/v1/image.go | 4 ++-- image/v1/image_test.go | 8 ++++---- objectstorage/v1/objectstorage.go | 4 ++-- objectstorage/v1/objectstorage_test.go | 2 +- openstack/session_test.go | 4 ++-- util/rfc8601DateTime_test.go | 4 ++-- util/util_test.go | 4 ++-- 14 files changed, 28 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index b9d7e8f..a70dff7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *.json *.sublime-project -*.sublime-workspace \ No newline at end of file +*.sublime-workspace +*.swp +.DS_Store diff --git a/.gitreview b/.gitreview index 14381c7..5c75f60 100644 --- a/.gitreview +++ b/.gitreview @@ -1,4 +1,4 @@ [gerrit] host=review.openstack.org port=29418 -project=stackforge/golang-client.git +project=openstack/golang-client.git diff --git a/README.md b/README.md index 32a4751..4d462aa 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ OpenStack Golang Client NOTE(dtroyer) Apr 2015: This repo is under heavy revision as it is being revived. -`stackforge/golang-client` is an implementation of [OpenStack] +`openstack/golang-client` is an implementation of [OpenStack] (http://www.openstack.org/) API client in [Go language](http://golang.org). The code follows OpenStack licensing and uses the Stackforge infrastructure for hosting. It currently implements [Identity Service v2] @@ -31,7 +31,7 @@ Code maturity is considered experimental. Installation ------------ -Use `go get git.openstack.org/stackforge/golang-client.git`. Or alternatively, +Use `go get git.openstack.org/openstack/golang-client.git`. Or alternatively, download or clone the repository. The lib was developed and tested on go 1.3. No external dependencies, so far. @@ -79,4 +79,4 @@ Coding Style The source code is automatically formatted to follow `go fmt` by the [IDE] (https://code.google.com/p/liteide/). And where pragmatic, the source code follows this general [coding style] -(http://slamet.neocities.org/coding-style.html). \ No newline at end of file +(http://slamet.neocities.org/coding-style.html). diff --git a/examples/00-authentication.go b/examples/00-authentication.go index 2222be8..7d62347 100644 --- a/examples/00-authentication.go +++ b/examples/00-authentication.go @@ -19,7 +19,7 @@ import ( // "git.openstack.org/stackforge/golang-client.git/identity/v2" "time" - "git.openstack.org/stackforge/golang-client.git/openstack" + "git.openstack.org/openstack/golang-client.git/openstack" ) // Authentication examples. diff --git a/examples/10-objectstore.go b/examples/10-objectstore.go index 5fff8b9..a613776 100644 --- a/examples/10-objectstore.go +++ b/examples/10-objectstore.go @@ -22,8 +22,8 @@ import ( "net/http" "time" - "git.openstack.org/stackforge/golang-client.git/objectstorage/v1" - "git.openstack.org/stackforge/golang-client.git/openstack" + "git.openstack.org/openstack/golang-client.git/objectstorage/v1" + "git.openstack.org/openstack/golang-client.git/openstack" ) func main() { diff --git a/examples/30-image-v1.go b/examples/30-image-v1.go index 49ae777..e131a0e 100644 --- a/examples/30-image-v1.go +++ b/examples/30-image-v1.go @@ -19,8 +19,8 @@ import ( "net/http" "time" - "git.openstack.org/stackforge/golang-client.git/image/v1" - "git.openstack.org/stackforge/golang-client.git/openstack" + "git.openstack.org/openstack/golang-client.git/image/v1" + "git.openstack.org/openstack/golang-client.git/openstack" ) // Image examples. diff --git a/identity/v2/unused-auth.go b/identity/v2/unused-auth.go index 36afeaa..0c97493 100644 --- a/identity/v2/unused-auth.go +++ b/identity/v2/unused-auth.go @@ -23,7 +23,7 @@ import ( "strings" "time" - "git.openstack.org/stackforge/golang-client.git/openstack" + "git.openstack.org/openstack/golang-client.git/openstack" ) type Auth struct { diff --git a/image/v1/image.go b/image/v1/image.go index bcd46f0..6bc3f16 100644 --- a/image/v1/image.go +++ b/image/v1/image.go @@ -30,8 +30,8 @@ import ( "net/http" "net/url" - "git.openstack.org/stackforge/golang-client.git/openstack" - "git.openstack.org/stackforge/golang-client.git/util" + "git.openstack.org/openstack/golang-client.git/openstack" + "git.openstack.org/openstack/golang-client.git/util" ) // Service is a client service that can make diff --git a/image/v1/image_test.go b/image/v1/image_test.go index e49e7cb..3a4bd60 100644 --- a/image/v1/image_test.go +++ b/image/v1/image_test.go @@ -21,10 +21,10 @@ import ( "strings" "testing" - "git.openstack.org/stackforge/golang-client.git/image/v1" - "git.openstack.org/stackforge/golang-client.git/openstack" - "git.openstack.org/stackforge/golang-client.git/testUtil" - "git.openstack.org/stackforge/golang-client.git/util" + "git.openstack.org/openstack/golang-client.git/image/v1" + "git.openstack.org/openstack/golang-client.git/openstack" + "git.openstack.org/openstack/golang-client.git/testUtil" + "git.openstack.org/openstack/golang-client.git/util" ) var tokn = "eaaafd18-0fed-4b3a-81b4-663c99ec1cbb" diff --git a/objectstorage/v1/objectstorage.go b/objectstorage/v1/objectstorage.go index 51444bb..79f38c0 100644 --- a/objectstorage/v1/objectstorage.go +++ b/objectstorage/v1/objectstorage.go @@ -20,8 +20,8 @@ import ( "net/url" "strconv" - "git.openstack.org/stackforge/golang-client.git/openstack" - "git.openstack.org/stackforge/golang-client.git/util" + "git.openstack.org/openstack/golang-client.git/openstack" + "git.openstack.org/openstack/golang-client.git/util" ) var zeroByte = &([]byte{}) //pointer to empty []byte diff --git a/objectstorage/v1/objectstorage_test.go b/objectstorage/v1/objectstorage_test.go index dd34587..debbaed 100644 --- a/objectstorage/v1/objectstorage_test.go +++ b/objectstorage/v1/objectstorage_test.go @@ -16,7 +16,7 @@ package objectstorage_test import ( "errors" - "git.openstack.org/stackforge/golang-client.git/objectstorage/v1" + "git.openstack.org/openstack/golang-client.git/objectstorage/v1" "io/ioutil" "net/http" "net/http/httptest" diff --git a/openstack/session_test.go b/openstack/session_test.go index 0b5ee91..3c9ed33 100644 --- a/openstack/session_test.go +++ b/openstack/session_test.go @@ -20,8 +20,8 @@ import ( "net/http" "testing" - "git.openstack.org/stackforge/golang-client.git/openstack" - "git.openstack.org/stackforge/golang-client.git/testUtil" + "git.openstack.org/openstack/golang-client.git/openstack" + "git.openstack.org/openstack/golang-client.git/testUtil" ) type TestStruct struct { diff --git a/util/rfc8601DateTime_test.go b/util/rfc8601DateTime_test.go index a88fbbd..afd4dec 100644 --- a/util/rfc8601DateTime_test.go +++ b/util/rfc8601DateTime_test.go @@ -19,8 +19,8 @@ import ( "testing" "time" - "git.openstack.org/stackforge/golang-client.git/testUtil" - "git.openstack.org/stackforge/golang-client.git/util" + "git.openstack.org/openstack/golang-client.git/testUtil" + "git.openstack.org/openstack/golang-client.git/util" ) var testValue = `{"created_at":"2014-09-29T14:44:31"}` diff --git a/util/util_test.go b/util/util_test.go index 2fd190c..62e1c5a 100644 --- a/util/util_test.go +++ b/util/util_test.go @@ -23,8 +23,8 @@ import ( "strconv" "testing" - "git.openstack.org/stackforge/golang-client.git/testUtil" - "git.openstack.org/stackforge/golang-client.git/util" + "git.openstack.org/openstack/golang-client.git/testUtil" + "git.openstack.org/openstack/golang-client.git/util" ) var token = "2350971-5716-8165"