github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/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 // user project id 15 ProjectId string 16 17 ProjectName string 18 19 // region 20 Region string 21 22 // cloud service domain 23 Domain string 24 DomainID string 25 26 // cloud service domain for BSS 27 BssDomain string 28 BssDomainID string 29 30 AccessKey string // Access Key 31 SecretKey string // Secret key 32 SecurityToken string // Security token (part of temporary AK/SK) 33 34 // AgencyName is the name of agency 35 AgencyName string 36 37 // AgencyDomainName is the name of domain who created the agency 38 AgencyDomainName string 39 40 // DelegatedProject is the name of delegated project 41 DelegatedProject string 42 } 43 44 // GetIdentityEndpoint implements the method of AKSKAuthOptions 45 func (opts AKSKAuthOptions) GetIdentityEndpoint() string { 46 return opts.IdentityEndpoint 47 }