Versions in this module Expand all Collapse all v1 v1.5.0-1 Jun 24, 2023 v1.2.1 Mar 20, 2023 Changes in this version + func Create(client *gophercloud.ServiceClient, opts tokens.AuthOptionsBuilder) (r tokens.CreateResult) + func ListAccessTokenRoles(client *gophercloud.ServiceClient, userID string, id string) pagination.Pager + func ListAccessTokens(client *gophercloud.ServiceClient, userID string) pagination.Pager + func ListConsumers(client *gophercloud.ServiceClient) pagination.Pager + type AccessToken struct + AuthorizingUserID string + ConsumerID string + ExpiresAt *time.Time + ID string + ProjectID string + func ExtractAccessTokens(r pagination.Page) ([]AccessToken, error) + func (r *AccessToken) UnmarshalJSON(b []byte) error + type AccessTokenRole struct + DomainID string + ID string + Name string + func ExtractAccessTokenRoles(r pagination.Page) ([]AccessTokenRole, error) + type AccessTokenRolesPage struct + func (r AccessTokenRolesPage) IsEmpty() (bool, error) + func (r AccessTokenRolesPage) NextPageURL() (string, error) + type AccessTokensPage struct + func (r AccessTokensPage) IsEmpty() (bool, error) + func (r AccessTokensPage) NextPageURL() (string, error) + type AuthOptions struct + AllowReauth bool + OAuthConsumerKey string + OAuthConsumerSecret string + OAuthNonce string + OAuthSignatureMethod SignatureMethod + OAuthTimestamp *time.Time + OAuthToken string + OAuthTokenSecret string + func (opts AuthOptions) CanReauth() bool + func (opts AuthOptions) ToTokenV3CreateMap(map[string]interface{}) (map[string]interface{}, error) + func (opts AuthOptions) ToTokenV3HeadersMap(headerOpts map[string]interface{}) (map[string]string, error) + func (opts AuthOptions) ToTokenV3ScopeMap() (map[string]interface{}, error) + type AuthorizeTokenOpts struct + Roles []Role + func (opts AuthorizeTokenOpts) ToOAuth1AuthorizeTokenMap() (map[string]interface{}, error) + type AuthorizeTokenOptsBuilder interface + ToOAuth1AuthorizeTokenMap func() (map[string]interface{}, error) + type AuthorizeTokenResult struct + func AuthorizeToken(client *gophercloud.ServiceClient, id string, opts AuthorizeTokenOptsBuilder) (r AuthorizeTokenResult) + func (r AuthorizeTokenResult) Extract() (*AuthorizedToken, error) + type AuthorizedToken struct + OAuthVerifier string + type Consumer struct + Description string + ID string + Secret string + func ExtractConsumers(r pagination.Page) ([]Consumer, error) + type ConsumersPage struct + func (c ConsumersPage) IsEmpty() (bool, error) + func (c ConsumersPage) NextPageURL() (string, error) + type CreateAccessTokenOpts struct + OAuthConsumerKey string + OAuthConsumerSecret string + OAuthNonce string + OAuthSignatureMethod SignatureMethod + OAuthTimestamp *time.Time + OAuthToken string + OAuthTokenSecret string + OAuthVerifier string + func (opts CreateAccessTokenOpts) ToOAuth1CreateAccessTokenHeaders(method, u string) (map[string]string, error) + type CreateAccessTokenOptsBuilder interface + ToOAuth1CreateAccessTokenHeaders func(string, string) (map[string]string, error) + type CreateConsumerOpts struct + Description string + func (opts CreateConsumerOpts) ToOAuth1CreateConsumerMap() (map[string]interface{}, error) + type CreateConsumerOptsBuilder interface + ToOAuth1CreateConsumerMap func() (map[string]interface{}, error) + type CreateConsumerResult struct + func CreateConsumer(client *gophercloud.ServiceClient, opts CreateConsumerOptsBuilder) (r CreateConsumerResult) + func (c CreateConsumerResult) Extract() (*Consumer, error) + type DeleteConsumerResult struct + func DeleteConsumer(client *gophercloud.ServiceClient, id string) (r DeleteConsumerResult) + type GetAccessTokenResult struct + func GetAccessToken(client *gophercloud.ServiceClient, userID string, id string) (r GetAccessTokenResult) + func (r GetAccessTokenResult) Extract() (*AccessToken, error) + type GetAccessTokenRoleResult struct + func GetAccessTokenRole(client *gophercloud.ServiceClient, userID string, id string, roleID string) (r GetAccessTokenRoleResult) + func (r GetAccessTokenRoleResult) Extract() (*AccessTokenRole, error) + type GetConsumerResult struct + func GetConsumer(client *gophercloud.ServiceClient, id string) (r GetConsumerResult) + func (c GetConsumerResult) Extract() (*Consumer, error) + type OAuth1 struct + AccessTokenID string + ConsumerID string + type RequestTokenOpts struct + OAuthConsumerKey string + OAuthConsumerSecret string + OAuthNonce string + OAuthSignatureMethod SignatureMethod + OAuthTimestamp *time.Time + RequestedProjectID string + func (opts RequestTokenOpts) ToOAuth1RequestTokenHeaders(method, u string) (map[string]string, error) + type RequestTokenOptsBuilder interface + ToOAuth1RequestTokenHeaders func(string, string) (map[string]string, error) + type RevokeAccessTokenResult struct + func RevokeAccessToken(client *gophercloud.ServiceClient, userID string, id string) (r RevokeAccessTokenResult) + type Role struct + ID string + Name string + type SignatureMethod string + const HMACSHA1 + const OAuth1TokenContentType + const PLAINTEXT + type Token struct + OAuthExpiresAt *time.Time + OAuthToken string + OAuthTokenSecret string + type TokenExt struct + OAuth1 OAuth1 + type TokenResult struct + Body []byte + func CreateAccessToken(client *gophercloud.ServiceClient, opts CreateAccessTokenOptsBuilder) (r TokenResult) + func RequestToken(client *gophercloud.ServiceClient, opts RequestTokenOptsBuilder) (r TokenResult) + func (r TokenResult) Extract() (*Token, error) + type UpdateConsumerOpts struct + Description string + func (opts UpdateConsumerOpts) ToOAuth1UpdateConsumerMap() (map[string]interface{}, error) + type UpdateConsumerResult struct + func UpdateConsumer(client *gophercloud.ServiceClient, id string, opts UpdateConsumerOpts) (r UpdateConsumerResult) + func (c UpdateConsumerResult) Extract() (*Consumer, error)