1
// Copyright 2016 Canonical Ltd.
2
// Licensed under the AGPLv3, see LICENCE file for details.
9
"github.com/juju/juju/cloud"
12
type environProviderCredentials struct{}
14
// CredentialSchemas is part of the environs.ProviderCredentials interface.
15
func (environProviderCredentials) CredentialSchemas() map[cloud.AuthType]cloud.CredentialSchema {
16
// TODO (anastasiamac 2016-04-14) When/If this value changes,
17
// verify that juju/juju/cloud/clouds.go#BuiltInClouds
18
// with lxd type are up to-date.
19
// TODO(wallyworld) update BuiltInClouds to match when we actually take notice of TLSAuthType
20
return map[cloud.AuthType]cloud.CredentialSchema{
21
cloud.EmptyAuthType: {},
22
cloud.CertificateAuthType: {
24
cfgClientCert, cloud.CredentialAttr{Description: "The client cert used for connecting to a LXD host machine."},
26
cfgClientKey, cloud.CredentialAttr{Description: "The client key used for connecting to a LXD host machine."},
28
cfgServerPEMCert, cloud.CredentialAttr{Description: "The certificate of the LXD server on the host machine."},
34
// DetectCredentials is part of the environs.ProviderCredentials interface.
35
func (environProviderCredentials) DetectCredentials() (*cloud.CloudCredential, error) {
36
return cloud.NewEmptyCloudCredential(), nil