Documentation ¶
Index ¶
- Constants
- func GetFormat(provider string) v1.CredentialFormat
- type AWS
- func (c AWS) AccessKeyID() string
- func (c *AWS) AddFlags(fs *pflag.FlagSet)
- func (c AWS) Format() v1.CredentialFormat
- func (c AWS) IsValid() (bool, error)
- func (c *AWS) Load(filename string) error
- func (c *AWS) LoadFromEnv()
- func (c AWS) Region() string
- func (c AWS) RequiredFlags() []string
- func (c AWS) SecretAccessKey() string
- type Azure
- func (c *Azure) AddFlags(fs *pflag.FlagSet)
- func (c Azure) ClientID() string
- func (c Azure) ClientSecret() string
- func (_ Azure) Format() v1.CredentialFormat
- func (c Azure) IsValid() (bool, error)
- func (c *Azure) LoadFromEnv()
- func (_ Azure) RequiredFlags() []string
- func (c Azure) SubscriptionID() string
- func (c Azure) TenantID() string
- type AzureStorage
- type CommonSpec
- func (c CommonSpec) IsValid(cf v1.CredentialFormat) (bool, error)
- func (c *CommonSpec) Load(filename string) error
- func (c *CommonSpec) LoadFromEnv(cf v1.CredentialFormat)
- 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 ( AWSRegion = "region" 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 ¶
func GetFormat ¶
func GetFormat(provider string) v1.CredentialFormat
Types ¶
type AWS ¶
type AWS struct { CommonSpec // contains filtered or unexported fields }
func (AWS) AccessKeyID ¶
func (AWS) Format ¶
func (c AWS) Format() v1.CredentialFormat
func (*AWS) LoadFromEnv ¶
func (c *AWS) LoadFromEnv()
func (AWS) RequiredFlags ¶
func (AWS) SecretAccessKey ¶
type Azure ¶
type Azure struct { CommonSpec // contains filtered or unexported fields }
func (Azure) ClientSecret ¶
func (Azure) Format ¶
func (_ Azure) Format() v1.CredentialFormat
func (*Azure) LoadFromEnv ¶
func (c *Azure) LoadFromEnv()
func (Azure) RequiredFlags ¶
func (Azure) SubscriptionID ¶
type AzureStorage ¶
type AzureStorage struct { CommonSpec // contains filtered or unexported fields }
func (AzureStorage) Account ¶
func (c AzureStorage) Account() string
func (*AzureStorage) AddFlags ¶
func (c *AzureStorage) AddFlags(fs *pflag.FlagSet)
func (AzureStorage) Format ¶
func (_ AzureStorage) Format() v1.CredentialFormat
func (AzureStorage) Key ¶
func (c AzureStorage) Key() string
func (AzureStorage) RequiredFlags ¶
func (_ AzureStorage) RequiredFlags() []string
type CommonSpec ¶
type CommonSpec api.CredentialSpec
func LoadCredentialDataFromJson ¶
func LoadCredentialDataFromJson(provider string, fileName string) (CommonSpec, error)
func (CommonSpec) IsValid ¶
func (c CommonSpec) IsValid(cf v1.CredentialFormat) (bool, error)
func (*CommonSpec) Load ¶
func (c *CommonSpec) Load(filename string) error
func (*CommonSpec) LoadFromEnv ¶
func (c *CommonSpec) LoadFromEnv(cf v1.CredentialFormat)
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 // contains filtered or unexported fields }
func (*DigitalOcean) AddFlags ¶
func (c *DigitalOcean) AddFlags(fs *pflag.FlagSet)
func (DigitalOcean) Format ¶
func (_ DigitalOcean) Format() v1.CredentialFormat
func (DigitalOcean) IsValid ¶
func (c DigitalOcean) IsValid() (bool, error)
func (*DigitalOcean) LoadFromEnv ¶
func (c *DigitalOcean) LoadFromEnv()
func (DigitalOcean) RequiredFlags ¶
func (c DigitalOcean) RequiredFlags() []string
func (DigitalOcean) Token ¶
func (c DigitalOcean) Token() string
type GCE ¶
type GCE struct { CommonSpec // contains filtered or unexported fields }
func (GCE) Format ¶
func (_ GCE) Format() v1.CredentialFormat
func (*GCE) LoadFromEnv ¶
func (c *GCE) LoadFromEnv()
func (GCE) RequiredFlags ¶
func (GCE) ServiceAccount ¶
type Hetzner ¶
type Hetzner struct {
CommonSpec
}
type Linode ¶
type Linode struct { CommonSpec // contains filtered or unexported fields }
func (Linode) Format ¶
func (_ Linode) Format() v1.CredentialFormat
func (*Linode) LoadFromEnv ¶
func (c *Linode) LoadFromEnv()
func (Linode) RequiredFlags ¶
type Ovh ¶
type Ovh struct {
CommonSpec
}
type Packet ¶
type Packet struct { CommonSpec // contains filtered or unexported fields }
func (Packet) Format ¶
func (_ Packet) Format() v1.CredentialFormat
func (*Packet) LoadFromEnv ¶
func (c *Packet) LoadFromEnv()
func (Packet) RequiredFlags ¶
type Scaleway ¶
type Scaleway struct { CommonSpec // contains filtered or unexported fields }
func (Scaleway) Format ¶
func (_ Scaleway) Format() v1.CredentialFormat
func (*Scaleway) LoadFromEnv ¶
func (c *Scaleway) LoadFromEnv()
func (Scaleway) Organization ¶
func (Scaleway) RequiredFlags ¶
type Softlayer ¶
type Softlayer struct {
CommonSpec
}
type Swift ¶
type Swift struct {
CommonSpec
}
func (Swift) StorageURL ¶
func (Swift) TenantAuthURL ¶
func (Swift) TenantDomain ¶
func (Swift) TenantName ¶
type Vultr ¶
type Vultr struct { CommonSpec // contains filtered or unexported fields }
func (Vultr) Format ¶
func (_ Vultr) Format() v1.CredentialFormat
func (*Vultr) LoadFromEnv ¶
func (c *Vultr) LoadFromEnv()
func (Vultr) RequiredFlags ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.