All Projects → IBM-Cloud → bluemix-go

IBM-Cloud / bluemix-go

Licence: Apache-2.0 License
Go library for accessing the Bluemix API

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to bluemix-go

Nodejs Mean Stack
Solution tutorial: Modern Web Application using MEAN stack on IBM Cloud
Stars: ✭ 37 (+0%)
Mutual labels:  cloud-foundry, bluemix
Todo Apps
Sample ToDo application (various languages) running on IBM Cloud
Stars: ✭ 195 (+427.03%)
Mutual labels:  cloud-foundry, bluemix
swift-buildpack
IBM Cloud buildpack for Swift
Stars: ✭ 33 (-10.81%)
Mutual labels:  cloud-foundry, bluemix
GPU-Kubernetes-Guide
How to setup a production-grade Kubernetes GPU cluster on Paperspace in 10 minutes for $10
Stars: ✭ 34 (-8.11%)
Mutual labels:  k8s-cluster
paas-docker-cloudfoundry-tools
No description or website provided.
Stars: ✭ 30 (-18.92%)
Mutual labels:  cloud-foundry
cf-tools
Useful shell scripts for Cloud Foundry API v2
Stars: ✭ 22 (-40.54%)
Mutual labels:  cloud-foundry
Fiori-for-iOS-Roadshow-2019
A collection of materials for the joined SAP and Apple Roadshow event.
Stars: ✭ 12 (-67.57%)
Mutual labels:  cloud-foundry
stackdriver-tools
Stackdriver Nozzle for Cloud Foundry Loggregator, Host Monitoring Agents BOSH Release
Stars: ✭ 22 (-40.54%)
Mutual labels:  cloud-foundry
cds-pg
PostgreSQL adapter for SAP CDS (CAP)
Stars: ✭ 84 (+127.03%)
Mutual labels:  cloud-foundry
cloud-cf-helloworld-nodejs
A "Hello World" application for Cloud Foundry using a simple RESTful API in Node.js with persistency in PostgreSQL and SAPUI5 UIs.
Stars: ✭ 45 (+21.62%)
Mutual labels:  cloud-foundry
cf exporter
Cloud Foundry Prometheus Exporter
Stars: ✭ 21 (-43.24%)
Mutual labels:  cloud-foundry
multi-master-kubernetes
Multi-master Kubernetes cluster on Exoscale
Stars: ✭ 65 (+75.68%)
Mutual labels:  k8s-cluster
cloud-native-workshop
1 day workshop to learn Spring Boot + Spring Cloud + Pivotal Cloud Foundry
Stars: ✭ 37 (+0%)
Mutual labels:  cloud-foundry
vault-boshrelease
No description or website provided.
Stars: ✭ 29 (-21.62%)
Mutual labels:  cloud-foundry
logsearch-boshrelease
A BOSH-scalable ELK release
Stars: ✭ 45 (+21.62%)
Mutual labels:  cloud-foundry
cloud-cf-espm
A reference application showcasing an end-to-end development scenario in Java on SAP BTP, Cloud Foundry environment.
Stars: ✭ 14 (-62.16%)
Mutual labels:  cloud-foundry
omnia
An open-source toolkit for deploying and managing high performance clusters for HPC, AI, and data analytics workloads.
Stars: ✭ 128 (+245.95%)
Mutual labels:  k8s-cluster
k8s-graph
Visualize your Kubernetes (k8s) cluster
Stars: ✭ 23 (-37.84%)
Mutual labels:  k8s-cluster
hackathon-prep-material
Getting ready for a Bluemix hackathon? Here is some great material to get you started.
Stars: ✭ 26 (-29.73%)
Mutual labels:  bluemix
cf-workshop
Cloud Foundry Workshop
Stars: ✭ 36 (-2.7%)
Mutual labels:  cloud-foundry

IBM Cloud SDK for Go

Build Status GoDoc

bluemix-go provides the Go implementation for operating the IBM Cloud platform, which is based on the Cloud Foundry API.

Installing

  1. Install the SDK using the following command
go get github.com/IBM-Cloud/bluemix-go
  1. Update the SDK to the latest version using the following command
go get -u github.com/IBM-Cloud/bluemix-go

Using the SDK

You must have a working IBM Cloud account to use the APIs. Sign up if you don't have one.

The SDK has examples folder which cites few examples on how to use the SDK. First you need to create a session.

import "github.com/IBM-Cloud/bluemix-go/session"

func main(){

    s := session.New()
    .....
}

Creating session in this way creates a default configuration which reads the value from the environment variables. You must export the following environment variables.

  • IBMID - This is the IBM ID
  • IBMID_PASSWORD - This is the password for the above ID

OR

  • IC_API_KEY/IBMCLOUD_API_KEY - This is the Bluemix API Key. Login to IBMCloud to create one if you don't already have one. See instructions below for creating an API Key.

The default region is us_south. You can override it in the Config struct. You can also provide the value via environment variables; either via IC_REGION or IBMCLOUD_REGION. Valid regions are -

  • us-south
  • us-east
  • eu-gb
  • eu-de
  • au-syd
  • jp-tok

The maximum retries is 3. You can override it in the Config struct. You can also provide the value via environment variable; via MAX_RETRIES

Creating an IBM Cloud API Key

First, navigate to the IBM Cloud console and use the Manage toolbar to access IAM.

Access IAM from the Manage toolbar

On the left, click "IBM Cloud API Keys"

Click IBM Cloud API Keys

Press "Create API Key"

Press Create API Key

Pick a name and description for your key

Set name and description

You have created a key! Press the eyeball to show the key. Copy or save it because keys can't be displayed or downloaded twice.

Your key is now created

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].