Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ExoscaleAPIKey identifies the key in which the API Key of the exoscale.com is expected in a Secret. ExoscaleAPIKey = "EXOSCALE_API_KEY" // ExoscaleAPISecret identifies the secret in which the API Secret of the exoscale.com is expected in a Secret. ExoscaleAPISecret = "EXOSCALE_API_SECRET" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExoscaleConnector ¶ added in v0.2.0
type ExoscaleConnector struct { ApiKey string ApiSecret string Exoscale *exoscalesdk.Client }
func OpenExoscaleClient ¶ added in v0.2.0
func OpenExoscaleClient(ctx context.Context, kube client.Client, providerConfigRef string, opts ...exoscalesdk.ClientOpt) (*ExoscaleConnector, error)
OpenExoscaleClient fetches the ProviderConfig given by the name, fetches the API secret and returns a ExoscaleConnector with an initialized client.
Click to show internal directories.
Click to hide internal directories.