~juju-qa/ubuntu/xenial/juju/2.0-rc2

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/provider/joyent/credentials.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
        "github.com/juju/errors"
8
8
 
9
9
        "github.com/juju/juju/cloud"
 
10
        "github.com/juju/juju/environs"
 
11
)
 
12
 
 
13
const (
 
14
        credAttrSDCUser    = "sdc-user"
 
15
        credAttrSDCKeyID   = "sdc-key-id"
 
16
        credAttrPrivateKey = "private-key"
 
17
        credAttrAlgorithm  = "algorithm"
 
18
 
 
19
        algorithmDefault = "rsa-sha256"
10
20
)
11
21
 
12
22
const (
49
59
func (environProviderCredentials) DetectCredentials() (*cloud.CloudCredential, error) {
50
60
        return nil, errors.NotFoundf("credentials")
51
61
}
 
62
 
 
63
// FinalizeCredential is part of the environs.ProviderCredentials interface.
 
64
func (environProviderCredentials) FinalizeCredential(_ environs.FinalizeCredentialContext, args environs.FinalizeCredentialParams) (*cloud.Credential, error) {
 
65
        return &args.Credential, nil
 
66
}