github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/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  	return map[cloud.AuthType]cloud.CredentialSchema{cloud.EmptyAuthType: {}}
    17  }
    18  
    19  // DetectCredentials is part of the environs.ProviderCredentials interface.
    20  func (environProviderCredentials) DetectCredentials() (*cloud.CloudCredential, error) {
    21  	return cloud.NewEmptyCloudCredential(), nil
    22  }