Versions in this module Expand all Collapse all v0 v0.17.0 Apr 30, 2024 v0.16.0 Nov 9, 2023 Changes in this version + const AliyunConfigPath + const AzureCredentialsPath + const DOConfigPath + const ESXConfigPath + const GCPConfigPath + const PacketConfigPath + func GoogleClientFromJSONKey(jsonKey []byte, scope ...string) (*http.Client, error) + func GoogleClientFromKeyFile(path string, scope ...string) (*http.Client, error) + func GoogleServiceClient() *http.Client + func GoogleServiceTokenSource() oauth2.TokenSource + func GoogleTokenSourceFromJSONKey(jsonKey []byte, scope ...string) (oauth2.TokenSource, error) + func ReadAliyunConfig(path string) (map[string]AliyunProfile, error) + func ReadDOConfig(path string) (map[string]DOProfile, error) + func ReadESXConfig(path string) (map[string]ESXProfile, error) + func ReadPacketConfig(path string) (map[string]PacketProfile, error) + type AliyunConfig struct + Profiles []AliyunProfile + type AliyunProfile struct + AccessKeyID string + AccessKeySecret string + Name string + Region string + type AzureCredentials struct + ClientID string + ClientSecret string + SubscriptionID string + TenantID string + func ReadAzureCredentials(path string) (AzureCredentials, error) + type DOProfile struct + AccessToken string + type ESXProfile struct + Password string + Server string + User string + type PacketProfile struct + ApiKey string + Project string