cloudstack

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MPL-2.0 Imports: 18 Imported by: 1

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

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

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