How to Build on the Cloud with the ProfitBricks Go SDK

ProfitBricks have just launched an SDK for Go, one of the hottest languages right now. Go is the language used to contend with distributed systems or transient environments. But, as Google indicates, the broader goal with Go is to meet the challenges of scalable software development across numerous users and years; Go is meant to make programmers more productive. Read on to learn more about the ProfitBricks Go SDK.

Why Go?

Go is being adopted at a phenomenal pace by startups and open source projects as the new de facto language to collaborateGo-Language-Code-ProfitBricks-SDK in. This is being driven in large part by the paradigm shift towards Docker and containers. Docker and almost its entire ecosystem is authored in Go. Some have called Go the programming language for the cloud. The Go SDK allows developers to immediately take advantage of ProfitBricks as their infrastructure.

Overview

The Go library exposes all functionality found in the REST API. You can find full documentation on the various aspects of the API here and browse the repository here. The library tries to follow conventions any Go developer might expect.

Code Samples

Once you’ve followed our getting started guide you should have the library available in your environment.


The following examples illustrates various ways you can work with your Virtual Data Center.

 You can take advantage of distinct features found in the ProfitBricks offering such as updating cores and memory independently of each other.

Or, create servers:

Or a volume:

Once you’ve followed our getting started guide you should have the library available in your environment.

DevOps HomepageThe Go SDK library creates a powerful interface to the REST API. It is the first release we are building in Go with plans for Docker Machine next. So, stay tuned at the DevOps Central. We’d love to hear from you and, as always, feel free to contribute or send us anything else. Or, sign up for our DevOps 33% discount program for developers and operations pros.