github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/provider/manual/credentials.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package manual
     5  
     6  import (
     7  	"github.com/juju/juju/cloud"
     8  )
     9  
    10  type environProviderCredentials struct{}
    11  
    12  // CredentialSchemas is part of the environs.ProviderCredentials interface.
    13  func (environProviderCredentials) CredentialSchemas() map[cloud.AuthType]cloud.CredentialSchema {
    14  	return map[cloud.AuthType]cloud.CredentialSchema{cloud.EmptyAuthType: {}}
    15  }
    16  
    17  // DetectCredentials is part of the environs.ProviderCredentials interface.
    18  func (environProviderCredentials) DetectCredentials() (*cloud.CloudCredential, error) {
    19  	return cloud.NewEmptyCloudCredential(), nil
    20  }