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