From 088f14907c34a77a82bafbb99e4f9fade9840ba2 Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Thu, 5 Jun 2014 14:10:43 -0400 Subject: [PATCH] Move the service handling to be versioned. implements blueprint golang-multi-version Change-Id: I77e31118a64140b5d1780725c0a35e2f5d55221c --- examples/00-authentication.go | 2 +- examples/10-objectstore.go | 4 ++-- identity/{ => v2}/auth.go | 0 objectstorage/{ => v1}/objectstorage.go | 0 objectstorage/{ => v1}/objectstorage_test.go | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename identity/{ => v2}/auth.go (100%) rename objectstorage/{ => v1}/objectstorage.go (100%) rename objectstorage/{ => v1}/objectstorage_test.go (99%) diff --git a/examples/00-authentication.go b/examples/00-authentication.go index 39ba637..8ac8d66 100644 --- a/examples/00-authentication.go +++ b/examples/00-authentication.go @@ -16,7 +16,7 @@ package main import ( "fmt" - "git.openstack.org/stackforge/golang-client.git/identity" + "git.openstack.org/stackforge/golang-client.git/identity/v2" "time" ) diff --git a/examples/10-objectstore.go b/examples/10-objectstore.go index 94823d3..12d9897 100644 --- a/examples/10-objectstore.go +++ b/examples/10-objectstore.go @@ -18,8 +18,8 @@ import ( "bytes" "encoding/json" "fmt" - "git.openstack.org/stackforge/golang-client.git/identity" - "git.openstack.org/stackforge/golang-client.git/objectstorage" + "git.openstack.org/stackforge/golang-client.git/identity/v2" + "git.openstack.org/stackforge/golang-client.git/objectstorage/v1" "io/ioutil" "time" ) diff --git a/identity/auth.go b/identity/v2/auth.go similarity index 100% rename from identity/auth.go rename to identity/v2/auth.go diff --git a/objectstorage/objectstorage.go b/objectstorage/v1/objectstorage.go similarity index 100% rename from objectstorage/objectstorage.go rename to objectstorage/v1/objectstorage.go diff --git a/objectstorage/objectstorage_test.go b/objectstorage/v1/objectstorage_test.go similarity index 99% rename from objectstorage/objectstorage_test.go rename to objectstorage/v1/objectstorage_test.go index 21071e8..02bfc51 100644 --- a/objectstorage/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" + "git.openstack.org/stackforge/golang-client.git/objectstorage/v1" "io/ioutil" "net/http" "net/http/httptest"