cloudstack

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2015 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const UnlimitedResourceID = "-1"

CloudStack uses a "special" ID of -1 to define an unlimited resource

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

func Retry added in v0.6.1

func Retry(n int, f RetryFunc) (interface{}, error)

Retry is a wrapper around a RetryFunc that will retry a function n times or until it succeeds.

Types

type Config

type Config struct {
	APIURL      string
	APIKey      string
	SecretKey   string
	HTTPGETOnly bool
	Timeout     int64
}

Config is the configuration structure used to instantiate a new CloudStack client.

func (*Config) NewClient

func (c *Config) NewClient() (*cloudstack.CloudStackClient, error)

NewClient returns a new CloudStack client.

type RetryFunc added in v0.6.1

type RetryFunc func() (interface{}, error)

RetryFunc is the function retried n times

Jump to

Keyboard shortcuts

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