traefik/vendor/github.com/exoscale/egoscale/init.go

22 lines
406 B
Go
Raw Normal View History

2017-02-07 21:33:23 +00:00
package egoscale
import (
"crypto/tls"
"net/http"
)
func NewClient(endpoint string, apiKey string, apiSecret string) *Client {
cs := &Client{
client: &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: &tls.Config{InsecureSkipVerify: false},
},
},
endpoint: endpoint,
apiKey: apiKey,
apiSecret: apiSecret,
}
return cs
}