package cloudstack import "github.com/xanzy/go-cloudstack/cloudstack" // Config is the configuration structure used to instantiate a // new CloudStack client. type Config struct { ApiURL string ApiKey string SecretKey string Timeout int64 } // Client() returns a new CloudStack client. func (c *Config) NewClient() (*cloudstack.CloudStackClient, error) { cs := cloudstack.NewAsyncClient(c.ApiURL, c.ApiKey, c.SecretKey, false) cs.AsyncTimeout(c.Timeout) return cs, nil }