cloudstack

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2017 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

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