github.com/mwhudson/juju@v0.0.0-20160512215208-90ff01f3497f/provider/lxd/credentials.go (about) 1 // Copyright 2016 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 // +build go1.3 5 6 package lxd 7 8 import ( 9 "github.com/juju/juju/cloud" 10 ) 11 12 type environProviderCredentials struct{} 13 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 return map[cloud.AuthType]cloud.CredentialSchema{cloud.EmptyAuthType: {}} 20 } 21 22 // DetectCredentials is part of the environs.ProviderCredentials interface. 23 func (environProviderCredentials) DetectCredentials() (*cloud.CloudCredential, error) { 24 return cloud.NewEmptyCloudCredential(), nil 25 }