credential

package
v0.0.0-...-7759ae7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 AWS

type AWS struct {
	CommonSpec
}

func NewAWS

func NewAWS() *AWS

func (AWS) AccessKeyID

func (c AWS) AccessKeyID() string

func (*AWS) Load

func (c *AWS) Load(filename string) error

func (AWS) SecretAccessKey

func (c AWS) SecretAccessKey() string

type Azure

type Azure struct {
	CommonSpec
}

func (Azure) ClientID

func (c Azure) ClientID() string

func (Azure) ClientSecret

func (c Azure) ClientSecret() string

func (Azure) SubscriptionID

func (c Azure) SubscriptionID() string

func (Azure) TenantID

func (c Azure) TenantID() string

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 GCE

type GCE struct {
	CommonSpec
}

func NewGCE

func NewGCE() *GCE

func (*GCE) Load

func (c *GCE) Load(filename string) error

func (GCE) ProjectID

func (c GCE) ProjectID() string

func (GCE) ServiceAccount

func (c GCE) ServiceAccount() string

type Hetzner

type Hetzner struct {
	CommonSpec
}

func (Hetzner) Password

func (c Hetzner) Password() string

func (Hetzner) Username

func (c Hetzner) Username() string

type Linode

type Linode struct {
	CommonSpec
}

func (Linode) APIToken

func (c Linode) APIToken() string

type Ovh

type Ovh struct {
	CommonSpec
}

func (Ovh) Password

func (c Ovh) Password() string

func (Ovh) TenantID

func (c Ovh) TenantID() string

func (Ovh) Username

func (c Ovh) Username() string

type Packet

type Packet struct {
	CommonSpec
}

func (Packet) APIKey

func (c Packet) APIKey() string

func (Packet) ProjectID

func (c Packet) ProjectID() string

type Scaleway

type Scaleway struct {
	CommonSpec
}

func (Scaleway) Organization

func (c Scaleway) Organization() string

func (Scaleway) Token

func (c Scaleway) Token() string

type Softlayer

type Softlayer struct {
	CommonSpec
}

func (Softlayer) APIKey

func (c Softlayer) APIKey() string

func (Softlayer) Username

func (c Softlayer) Username() string

type Swift

type Swift struct {
	CommonSpec
}

func (Swift) AuthToken

func (c Swift) AuthToken() string

func (Swift) Domain

func (c Swift) Domain() string

func (Swift) Key

func (c Swift) Key() string

func (Swift) Region

func (c Swift) Region() string

func (Swift) StorageURL

func (c Swift) StorageURL() string

func (Swift) TenantAuthURL

func (c Swift) TenantAuthURL() string

func (Swift) TenantDomain

func (c Swift) TenantDomain() string

func (Swift) TenantId

func (c Swift) TenantId() string

func (Swift) TenantName

func (c Swift) TenantName() string

func (Swift) TrustId

func (c Swift) TrustId() string

func (Swift) Username

func (c Swift) Username() string

type Vultr

type Vultr struct {
	CommonSpec
}

func (Vultr) Token

func (c Vultr) Token() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL