Skip to content

Commit 36d923f

Browse files
authored
Merge pull request #39 from IBM/prajwal-jarali-202412230930
Added support for Toronto, Tokyo and Osaka regions
2 parents 81bd82c + a8a8ecc commit 36d923f

File tree

6 files changed

+17
-5
lines changed

6 files changed

+17
-5
lines changed

.secrets.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "^.secrets.baseline$|go.sum|vendor|.cra/.cveignore",
44
"lines": null
55
},
6-
"generated_at": "2024-11-15T06:30:13Z",
6+
"generated_at": "2024-12-23T09:31:23Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# IBM Cloud App Configuration Go server SDK 0.5.4
1+
# IBM Cloud App Configuration Go server SDK 0.5.5
22

33
IBM Cloud App Configuration SDK is used to perform feature flag and property evaluation based on the configuration on
44
IBM Cloud App Configuration service.
@@ -79,6 +79,9 @@ using **`AppConfiguration.GetInstance()`**. [See this example below](#fetching-t
7979
- `AppConfiguration.REGION_AU_SYD` for Sydney
8080
- `AppConfiguration.REGION_US_EAST` for Washington DC
8181
- `AppConfiguration.REGION_EU_DE` for Frankfurt
82+
- `AppConfiguration.REGION_CA_TOR` for Toronto
83+
- `AppConfiguration.REGION_JP_TOK` for Tokyo
84+
- `AppConfiguration.REGION_JP_OSA` for Osaka
8285
- guid : Instance Id of the App Configuration service. Obtain it from the service credentials section of the App
8386
Configuration dashboard.
8487
- apikey : ApiKey of the App Configuration service. Obtain it from the service credentials section of the App

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- In the [IBM Cloud catalog](https://cloud.ibm.com/catalog#services), search **App Configuration** and
99
select [App Configuration](https://cloud.ibm.com/catalog/services/app-configuration). The service configuration screen
1010
opens.
11-
- **Select a region** - Currently, Dallas (us-south), London (eu-gb), Sydney (au-syd), Washington DC (us-east) and Frankfurt (eu-de) regions are supported.
11+
- **Select a region** - Currently, Dallas (us-south), London (eu-gb), Sydney (au-syd), Washington DC (us-east), Frankfurt (eu-de), Toronto (ca-tor), Tokyo (jp-tok) and Osaka (jp-osa) regions are supported.
1212
- Select a pricing plan, resource group and configure your resource with a service name, or use the preset name.
1313
- Click **Create**. A new service instance is created and the App Configuration console displayed.
1414

examples/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module examples
33
go 1.16
44

55
require (
6-
github.com/IBM/appconfiguration-go-sdk v0.5.4
6+
github.com/IBM/appconfiguration-go-sdk v0.5.5
77
github.com/gorilla/mux v1.8.0
88
github.com/joho/godotenv v1.5.1
99
)

lib/AppConfiguration.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ const REGION_US_EAST = "us-east"
6262
// REGION_EU_DE : Frankfurt Region
6363
const REGION_EU_DE = "eu-de"
6464

65+
// REGION_CA_TOR : Toronto Region
66+
const REGION_CA_TOR = "ca-tor"
67+
68+
// REGION_JP_TOK : Tokyo Region
69+
const REGION_JP_TOK = "jp-tok"
70+
71+
// REGION_JP_OSA : Osaka Region
72+
const REGION_JP_OSA = "jp-osa"
73+
6574
// GetInstance : Get App Configuration Instance
6675
func GetInstance() *AppConfiguration {
6776
log.Debug(messages.RetrieveingAppConfig)

lib/internal/constants/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const DefaultEntityID = "$$null$$"
2626
const DefaultUsageLimit = 10
2727

2828
// UserAgent specifies the user agent name
29-
const UserAgent = "appconfiguration-go-sdk/0.5.4"
29+
const UserAgent = "appconfiguration-go-sdk/0.5.5"
3030

3131
// ConfigurationFile : Name of file to which configurations will be written
3232
const ConfigurationFile = "appconfiguration.json"

0 commit comments

Comments
 (0)