forked from chnsz/golangsdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
auth_aksk_options.go
49 lines (38 loc) · 1.36 KB
/
auth_aksk_options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package golangsdk
// AKSKAuthOptions presents the required information for AK/SK auth
type AKSKAuthOptions struct {
// IdentityEndpoint specifies the HTTP endpoint that is required to work with
// the Identity API of the appropriate version. While it's ultimately needed by
// all of the identity services, it will often be populated by a provider-level
// function.
//
// The IdentityEndpoint is typically referred to as the "auth_url" or
// "OS_AUTH_URL" in the information provided by the cloud operator.
IdentityEndpoint string `json:"-"`
// region
Region string
// IAM user project id and name
ProjectId string
ProjectName string
// IAM account name and id
Domain string
DomainID string
// cloud service domain for BSS
BssDomain string
BssDomainID string
AccessKey string //Access Key
SecretKey string //Secret key
SecurityToken string //Security Token for temporary Access Key
// AgencyNmae is the name of agnecy
AgencyName string
// AgencyDomainName is the name of domain who created the agency
AgencyDomainName string
// DelegatedProject is the name of delegated project
DelegatedProject string
// whether using the customer catalog, defaults to false
WithUserCatalog bool
}
// GetIdentityEndpoint implements the method of AuthOptionsProvider
func (opts AKSKAuthOptions) GetIdentityEndpoint() string {
return opts.IdentityEndpoint
}