gocloud

package module
v0.0.0-...-f0f9b94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2017 License: Apache-2.0 Imports: 0 Imported by: 8

README

Gocloud

Build Status

Disclaimer

  • This is still a heavy work in progress. THINGS WILL CHANGE!
  • See the cli tool available in gocloud (e.g. gocloud/ec2.go) for examples.

Goal

This should become a collection of golang libraries for all our beloved cloud service APIs (similar to fog).

I know that rackspace started gophercloud but somehow I could not find anything I could already use. So why not start my own?

CLI tool

Installation
make
Usage

Running gocloud without any arguments will give you a list of currently supported actions

make
gocloud 

You can e.g. list your currently running ec2 instances with

gocloud aws ec2 instances describe

You will get an error message if there are any environment variables not set. (all credentials are provided through ENV variables).

Contribute

All pull requests which make the api/code more consistent, dry, feature complete, etc. are always welcome.

Documentation

Index

Constants

View Source
const EUR = "EUR"
View Source
const USD = "USD"

Variables

This section is empty.

Functions

This section is empty.

Types

type Plan

type Plan struct {
	Name           string
	MemoryInMB     int
	Cores          int
	DiskInGB       int
	TrafficInTB    int
	Cpu            string
	HyperThreading bool
	Price          *Price
}

func (*Plan) PricePerCore

func (plan *Plan) PricePerCore() *Price

func (*Plan) PricePerGbRam

func (plan *Plan) PricePerGbRam() *Price

type Price

type Price struct {
	Amount   float64
	Currency string
	PerHour  bool
	Setup    float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL