Documentation ¶
Index ¶
- Constants
- type AWS
- type Azure
- type AzureStorage
- type CommonSpec
- func (c CommonSpec) IsValid() (bool, error)
- func (c *CommonSpec) Load(filename string) error
- func (c *CommonSpec) LoadFromEnv()
- func (c *CommonSpec) LoadFromJSON(filename string) error
- func (c CommonSpec) String() string
- func (c CommonSpec) ToMaskedMap() map[string]string
- func (c CommonSpec) ToRawMap() map[string]string
- type DigitalOcean
- type GCE
- type Hetzner
- type Linode
- type Ovh
- type Packet
- type Scaleway
- type Softlayer
- type Swift
- func (c Swift) AuthToken() string
- func (c Swift) Domain() string
- func (c Swift) Key() string
- func (c Swift) Region() string
- func (c Swift) StorageURL() string
- func (c Swift) TenantAuthURL() string
- func (c Swift) TenantDomain() string
- func (c Swift) TenantId() string
- func (c Swift) TenantName() string
- func (c Swift) TrustId() string
- func (c Swift) Username() string
- type Vultr
Constants ¶
View Source
const ( AWSAccessKeyID = "accessKeyID" AWSSecretAccessKey = "secretAccessKey" AzureClientID = "clientID" AzureClientSecret = "clientSecret" AzureStorageAccount = "account" AzureStorageKey = "key" AzureSubscriptionID = "subscriptionID" AzureTenantID = "tenantID" DigitalOceanToken = "token" GCEServiceAccount = "serviceAccount" GCEProjectID = "projectID" HertznerPassword = "password" HertznerUsername = "username" LinodeAPIToken = "token" PacketAPIKey = "apiKey" PacketProjectID = "projectID" ScalewayOrganization = "organization" ScalewayToken = "token" SoftlayerAPIKey = "apiKey" SoftlayerUsername = "username" SwiftUsername = "username" SwiftKey = "key" SwiftTenantName = "tenantName" SwiftTenantAuthURL = "tenantAuthURL" SwiftDomain = "domain" SwiftRegion = "region" SwiftTenantId = "tenantID" SwiftTenantDomain = "tenantDomain" SwiftTrustId = "trustID" SwiftStorageURL = "storageURL" SwiftAuthToken = "authToken" VultrAPIToken = "token" OvhUsername = "username" OvhPassword = "password" OvhTenantID = "tenantID" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Azure ¶
type Azure struct {
CommonSpec
}
func (Azure) ClientSecret ¶
func (Azure) SubscriptionID ¶
type AzureStorage ¶
type AzureStorage struct {
CommonSpec
}
func (AzureStorage) Account ¶
func (c AzureStorage) Account() string
func (AzureStorage) Key ¶
func (c AzureStorage) Key() string
type CommonSpec ¶
type CommonSpec api.CredentialSpec
func LoadCredentialDataFromJson ¶
func LoadCredentialDataFromJson(provider string, fileName string) (CommonSpec, error)
func (CommonSpec) IsValid ¶
func (c CommonSpec) IsValid() (bool, error)
func (*CommonSpec) Load ¶
func (c *CommonSpec) Load(filename string) error
func (*CommonSpec) LoadFromEnv ¶
func (c *CommonSpec) LoadFromEnv()
func (*CommonSpec) LoadFromJSON ¶
func (c *CommonSpec) LoadFromJSON(filename string) error
func (CommonSpec) String ¶
func (c CommonSpec) String() string
func (CommonSpec) ToMaskedMap ¶
func (c CommonSpec) ToMaskedMap() map[string]string
func (CommonSpec) ToRawMap ¶
func (c CommonSpec) ToRawMap() map[string]string
type DigitalOcean ¶
type DigitalOcean struct {
CommonSpec
}
func (DigitalOcean) Token ¶
func (c DigitalOcean) Token() string
type Hetzner ¶
type Hetzner struct {
CommonSpec
}
type Linode ¶
type Linode struct {
CommonSpec
}
type Ovh ¶
type Ovh struct {
CommonSpec
}
type Packet ¶
type Packet struct {
CommonSpec
}
type Softlayer ¶
type Softlayer struct {
CommonSpec
}
type Swift ¶
type Swift struct {
CommonSpec
}
func (Swift) StorageURL ¶
func (Swift) TenantAuthURL ¶
func (Swift) TenantDomain ¶
func (Swift) TenantName ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.